aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c5521da..327282c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,17 @@
-.PHONY: all clean
+.PHONY: all clean termio
all: tetris
clean:
rm -f tetris
+termio: termio/.git termio/libtermio.a
+
+
tetris: $(wildcard *.c *.h) termio termio/libtermio.a
gcc -Wall -Wextra -std=c11 -O2 -fwrapv -o $@ $(filter %.c,$^) -Itermio termio/libtermio.a
-termio:
+termio/.git:
git submodule update --init --recursive
termio/libtermio.a: