aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e3beecd8f3995038c6c7479fd8d9efd1e59447b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BIN=tetris

.PHONY: all clean install uninstall

all: $(BIN)

clean:
	rm -f $(BIN)

install: $(BIN)
	install $(BIN) /usr/local/bin

uninstall: $(BIN)
	rm -f /usr/local/bin/$(BIN)


$(BIN): $(wildcard *.c *.h) termio/.git 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