Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver

just compile with
$ NO_X11=1 make
This commit is contained in:
Thomas Bernard
2018-07-20 12:26:52 +02:00
parent 6ec72f6b71
commit 88430bb92f
4 changed files with 15 additions and 8 deletions

View File

@@ -511,11 +511,18 @@ endif
LOPT = -lm
ifeq ($(API),sdl)
LOPT += $(shell sdl-config --libs) -lSDL_image
LOPT += -lX11
ifneq ($(NO_X11),1)
LOPT += -lX11
endif
endif
ifeq ($(API),sdl2)
LOPT += $(shell sdl2-config --libs) -lSDL2_image
LOPT += -lX11
ifneq ($(NO_X11),1)
LOPT += -lX11
endif
endif
ifeq ($(NO_X11),1)
COPT += -DNO_X11
endif
LOPT += $(TTFLOPT)
LOPT += $(shell pkg-config --libs libpng)