aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f39a14c..7b23968 100644
--- a/Makefile
+++ b/Makefile
@@ -46,11 +46,12 @@ all: libraries executables
EXECUTABLES :=
LIBRARIES :=
-SDL_CONFIG ?= $(PREBUILT)/sdl/bin/sdl-config
+ifneq ($(SDL_CONFIG),)
SDL_LIBS := $(filter %.a,$(shell $(SDL_CONFIG) --static-libs))
$(foreach lib,$(SDL_LIBS), \
$(eval $(call copy-prebuilt-lib,$(lib))) \
)
+endif
clean: clean-intermediates
@@ -70,4 +71,4 @@ clean-config:
# include dependency information
DEPENDENCY_DIRS := $(sort $(DEPENDENCY_DIRS))
--include $(wildcard $(DEPENDENCY_DIRS:%=%/*.d)) \ No newline at end of file
+-include $(wildcard $(DEPENDENCY_DIRS:%=%/*.d))