]> git.sesse.net Git - movit/commitdiff
Add a Makefile.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 10:11:20 +0000 (12:11 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 10:11:20 +0000 (12:11 +0200)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..8e35cfa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CC=gcc
+CFLAGS=-std=gnu99 -Wall
+LDFLAGS=-lSDL -lSDL_image -lGL
+
+test: test.o
+       $(CC) -o test test.o $(LDFLAGS)
+
+.o: .c
+       $(CC) $(CXXFLAGS) $(CCFLAGS) -o $@ $<
+
+clean:
+       $(RM) test test.o
+
+.PHONY: clean