aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 327282c9a945143e15f9454b06cd6002369ce2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.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/.git:
	git submodule update --init --recursive

termio/libtermio.a:
	make -C termio