aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-08-14 13:13:30 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-08-14 13:13:30 +0200
commit116364669abd97d6438092682c63b97248768a23 (patch)
treec61fdb64daaf5ad55138c4bf48f2c6e3ed853484 /Makefile
downloadosc-graphics-116364669abd97d6438092682c63b97248768a23.tar.gz
SDL App skeleton
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}