blob: 8589821817a430bb6e71204878ddd65d742f3d22 (
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: tis100 tis100-curses
clean:
rm -f tis100 tis100-curses
tis100: tis100.c tpu.c util.c asm.c
$(CC) -o $@ $^ $(CFLAGS)
tis100-curses: tis100-curses.c tpu.c util.c asm.c
$(CC) -o $@ $^ $(CFLAGS) -lncursesw
install:
install -m755 tis100 tis100-curses -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
uninstall:
rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{tis100,tis100-curses}
.PHONY: all clean install uninstall
|