diff options
author | tron <tron@openttd.org> | 2006-11-07 15:53:20 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-11-07 15:53:20 +0000 |
commit | 1dd5dfd3b382a0904ce5eddab6032c7f658bac23 (patch) | |
tree | a98951c1f3df21c239fee4fd6d9c300e8661be30 /Makefile | |
parent | 9dfc42bb8400511b44fad5f2bc69bd9b6ecf8c16 (diff) | |
download | openttd-1dd5dfd3b382a0904ce5eddab6032c7f658bac23.tar.xz |
(svn r7100) Evaluate the necessary flags for SDL once per make run, not every time the CFLAGS/LIBS variables are used
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |