mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7100) Evaluate the necessary flags for SDL once per make run, not every time the CFLAGS/LIBS variables are used
This commit is contained in:
parent
c6b4834e10
commit
b92ccb7a98
8
Makefile
8
Makefile
@ -441,12 +441,14 @@ endif
|
||||
# SDL config
|
||||
ifdef WITH_SDL
|
||||
CDEFS += -DWITH_SDL
|
||||
CFLAGS += $(shell $(SDL_CONFIG) --cflags)
|
||||
CCFLAGS_SDL := $(shell $(SDL_CONFIG) --cflags)
|
||||
CFLAGS += $(CCFLAGS_SDL)
|
||||
ifdef STATIC
|
||||
LIBS += $(shell $(SDL_CONFIG) --static-libs)
|
||||
LDFLAGS_SDL := $(shell $(SDL_CONFIG) --static-libs)
|
||||
else
|
||||
LIBS += $(shell $(SDL_CONFIG) --libs)
|
||||
LDFLAGS_SDL := $(shell $(SDL_CONFIG) --libs)
|
||||
endif
|
||||
LIBS += $(LDFLAGS_SDL)
|
||||
endif
|
||||
|
||||
# zlib config
|
||||
|
Loading…
Reference in New Issue
Block a user