diff options
-rw-r--r-- | Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,14 +1,20 @@ -.PHONY: all clean termio +BIN=tetris -all: tetris +.PHONY: all clean install uninstall + +all: $(BIN) clean: - rm -f tetris + rm -f $(BIN) + +install: $(BIN) + install $(BIN) /usr/local/bin -termio: termio/.git termio/libtermio.a +uninstall: $(BIN) + rm -f /usr/local/bin/$(BIN) -tetris: $(wildcard *.c *.h) termio termio/libtermio.a +$(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: |