Patch by Thomas Bernard to fix compilation on FreeBSD.

Thanks!

Fixes #50.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2017-01-03 18:25:35 +00:00
parent 0eaf3fce96
commit 9c6f343215
5 changed files with 14 additions and 6 deletions

View File

@@ -360,8 +360,15 @@ endif
# Compiles a regular linux executable for the native platform
BIN = ../bin/grafx2
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) $(shell pkg-config --cflags libpng) -D_XOPEN_SOURCE=700
LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT) $(shell pkg-config --libs libpng) $(LUALOPT) -lm
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM)
COPT += $(shell pkg-config --cflags libpng)
ifneq ($(PLATFORM), FreeBSD)
COPT += -D_XOPEN_SOURCE=700
endif
LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT)
LOPT += $(shell pkg-config --libs libpng)
LOPT += $(LUALOPT) -lm
LOPT += -liconv
CC = gcc
OBJDIR = ../obj/unix
FCLOPT = -lfontconfig