summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 62c5c54ead5f578d6fbdbe994fc63597460c753f (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
PREFIX ?= /usr/local
BINDIR ?= /bin

CFLAGS = -Wunused-function -Wunused-variable -Wconversion -Wswitch

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