added fix to Makefile to execute "sdl2-config" only once
[rocksndiamonds.git] / src / Makefile
index af907f8c342bd09e56be62056e8cd21e3cf9412f..126f07337755724a5d45a0c5f70da6f24b645359 100644 (file)
@@ -84,9 +84,9 @@ endif
 # $(info Using SDL version $(SDL_VERSION) [TARGET == $(TARGET)])
 
 ifeq ($(TARGET),sdl2)                  # compiling for SDL2 target
-SYS_CFLAGS = -DTARGET_SDL2 $(shell sdl2-config --cflags)
 SDL_LIBS = -lSDL2_image -lSDL2_mixer -lSDL2_net
-SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl2-config --libs)
+SYS_CFLAGS := -DTARGET_SDL2 $(shell sdl2-config --cflags)
+SYS_LDFLAGS := $(SDL_LIBS) $(shell sdl2-config --libs)
 endif