aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-10-23 14:11:24 +0200
committerJakob Odersky <jodersky@gmail.com>2014-10-23 14:11:24 +0200
commit4dfb70b68137b23747d321702ee5dc720287b73e (patch)
tree8482273030e41e04c90738f09c0c89ce9d432455 /Makefile
downloadmaverick-4dfb70b68137b23747d321702ee5dc720287b73e.tar.gz
maverick-4dfb70b68137b23747d321702ee5dc720287b73e.tar.bz2
maverick-4dfb70b68137b23747d321702ee5dc720287b73e.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bb9ca92
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+TARGET=controller
+
+all: $(TARGET) $(TARGET)-static
+
+
+$(TARGET): $(TARGET).o
+ gcc -Wall -o $@ $< `sdl2-config --libs`
+
+$(TARGET)-static: $(TARGET).o
+ gcc -Wall -o $@ $< `sdl2-config --static-libs`
+
+
+%.o: %.c
+ gcc -Wall `sdl2-config --cflags` -o $@ -c $<
+
+clean:
+ rm -f *.o
+ rm -f $(TARGET)
+ rm -f $(TARGET)-static \ No newline at end of file