summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-07-24 00:43:33 +0200
committerLouis Burda <quent.burda@gmail.com>2023-07-24 00:43:33 +0200
commitd7865d956f9fe3a08ebe4429dce4428a9f74bc6c (patch)
treeafcc976934add55eed727a3f782eea8912646122 /Makefile
downloadtis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.tar.gz
tis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.zip
Add initial rough outline
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
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