OS X: support building with NO_X11 option

This commit is contained in:
Thomas BERNARD 2018-09-14 17:22:57 +02:00
parent 7cf404904c
commit 1d1be59ec1

View File

@ -217,6 +217,9 @@ endif
# these are for everyone
COPT = -D_DARWIN_C_SOURCE -D__macosx__ -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -std=c99 -g $(LUACOPT) $(SDLCOPT) $(TTFCOPT) -I/usr/include
ifeq ($(NO_X11),1)
COPT += -DNO_X11
endif
ifdef MACOSX_LION
LOPT = $(SDLLOPT) $(LUALOPT) -framework libpng14 -lz
else