aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
committerLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
commit1947c4d7f32272ec0c5b9295808cde4c9138995c (patch)
tree18afdcdfc3ea21167d84f7d57f09eb8542dc0fb9 /Makefile
parent3d3a8dcdc9a2f45888059e69587dd07c45aa856a (diff)
downloadesdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.gz
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.bz2
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.zip
Fix warnings in preparation for splitting nif_helpers out
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6cfe5df..f8d717b 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,12 @@ PROJECT_VERSION = 0.1.0
SDL2_LIBS_FILTER_OUT = -Wl,--no-undefined
SDL2_LIBS = $(filter-out $(SDL2_LIBS_FILTER_OUT),$(shell sdl2-config --static-libs))
+include erlang.mk
+
CFLAGS += $(shell sdl2-config --cflags)
# @todo -undefined dynamic_lookup on OSX?
LDLIBS += $(SDL2_LIBS) -lSDL2_image
-include erlang.mk
-
ifeq ($(PLATFORM),msys2)
CFLAGS += -I"$(C_SRC_DIR)/compat/"
endif