aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..00f72ad
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC := gcc
+
+SDL_CFLAGS := $(shell sdl-config --cflags)
+SDL_LDFLAGS := $(shell sdl-config --libs)
+
+CFLAGS := -std=c99 -Wall -g -O0 \
+ $(SDL_CFLAGS)
+LDFLAGS := $(SDL_LDFLAGS)
+
+all : effect-pad
+
+effect-pad : effect-pad.o
+ $(CC) $(LDFLAGS) $^ -o $@
+
+clean:
+ $(RM) *.o effect-pad{,.exe}