aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c4af998..6b819fb 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ include erlang.mk
SDL2_CFLAGS = $(shell sdl2-config --cflags)
CFLAGS += $(SDL2_CFLAGS)
# @todo -undefined dynamic_lookup on OSX?
-LDLIBS += -lSDL2 -lSDL2_image -lSDL2_ttf
+LDLIBS += $(shell sdl2-config --libs) -lSDL2_image -lSDL2_ttf
# Clean the environment before each CI builds.
@@ -42,9 +42,8 @@ ci-setup:: distclean-c_src-env
check:: cppcheck scan-build
cppcheck:
- $(gen_verbose) cppcheck -f -q --error-exitcode=2 \
- --enable=warning,style --inconclusive --std=posix \
- $(firstword $(SDL2_CFLAGS)) -U_System -USDL_CreateThread c_src/
+ $(gen_verbose) cppcheck -f -q --error-exitcode=2 --enable=warning,style --inconclusive \
+ -I$(DEPS_DIR)/nif_helpers $(firstword $(SDL2_CFLAGS)) -U_System -USDL_CreateThread c_src/
scan-build:
$(verbose) $(MAKE) clean
@@ -57,3 +56,7 @@ hello_sdl:: all
bullet_engine:: all
erlc -o examples/bullet_engine examples/bullet_engine/*.erl
cd examples/bullet_engine && ./start.sh
+
+duck_engine: all
+ erlc -o examples/duck_engine examples/duck_engine/*.erl
+ cd examples/duck_engine && ./start.sh