aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-01-12 20:41:56 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-01-12 20:41:56 +1300
commit58bef85206c7cce153400e51b247e2476e9e65a4 (patch)
tree9e9856c8c554545c44834c89fe0086f9a36abf22 /Makefile
downloadtetris-58bef85206c7cce153400e51b247e2476e9e65a4.tar.xz
Initial commit of rough-arse Tetris
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..545347b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+include config.mk
+
+all: tetris
+
+tetris: tetris.o plot.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+clean:
+ rm -f tetris
+ find -name "*.o" -delete
+
+.PHONY: all clean