diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-07-24 00:43:33 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-07-24 00:43:33 +0200 |
| commit | d7865d956f9fe3a08ebe4429dce4428a9f74bc6c (patch) | |
| tree | afcc976934add55eed727a3f782eea8912646122 /Makefile | |
| download | tis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.tar.gz tis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.zip | |
Add initial rough outline
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b56cf29 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 + $(CC) -o $@ $^ $(CFLAGS) + +tis-curses: tis-curses.c tpu.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 |
