summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Harley2020-01-25 03:46:47 +0000
committerTom Harley2020-01-25 03:46:47 +0000
commit345963739e1403477af80570c20ae4bb15f25079 (patch)
treeec826ca2793448764956b7a7990ab3fb06e29a27 /Makefile
parentInitial commit (diff)
downloadsdl-box-345963739e1403477af80570c20ae4bb15f25079.tar.gz
sdl-box-345963739e1403477af80570c20ae4bb15f25079.zip

Add proper SDL2 dependencies to Makefile

Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9877584..61824fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
-LDLIBS=-lSDL2
+CFLAGS = $(shell sdl2-config --cflags)
+CXXFLAGS = $(shell sdl2-config --cppflags)
+LDFLAGS = $(shell sdl2-config --ldflags)
+LDLIBS = $(shell sdl2-config --libs)
default: hmm