summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--hmm.c2
2 files changed, 5 insertions, 2 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
diff --git a/hmm.c b/hmm.c
index 1f6227a..a083e3a 100644
--- a/hmm.c
+++ b/hmm.c
@@ -1,4 +1,4 @@
-#include <SDL2/SDL.h>
+#include <SDL.h>
#define debug(...) fprintf(stderr, __VA_ARGS__)