blob: d950c5d212bd80c7916652c36fc168f8d621e8e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
PREFIX ?= /usr/local
BINDIR ?= /bin
CFLAGS = -Wunused-function -Wunused-variable -Wconversion -Wswitch
CFLAGS += -Og -g
all: tis-as tis-curses
clean:
rm -f tis-as tis-curses
tis-as: tis-as.c tpu.c util.c
$(CC) -o $@ $^ $(CFLAGS)
tis-curses: tis-curses.c tpu.c util.c
$(CC) -o $@ $^ $(CFLAGS) -lncursesw
install:
install -m755 tis-as tis-curses -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
uninstall:
rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{tis-as,tis-curses}
.PHONY: all clean install uninstall
|