summaryrefslogtreecommitdiff
path: root/hackvr_term
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-01-02 06:02:45 -0600
committerepoch <epoch@hacking.allowed.org>2018-01-02 06:02:45 -0600
commitecdf070d79d479655f2a75936845a454cbed84b3 (patch)
tree423d8d30a2e90cb751348e5f8d50a57abaee6768 /hackvr_term
parent44d8f3acca9a236373df1ced55dd9ddaf76e5d2b (diff)
downloadhackvr-ecdf070d79d479655f2a75936845a454cbed84b3.tar.gz
hackvr-ecdf070d79d479655f2a75936845a454cbed84b3.zip
added install and uninstall and a Makefile to the root dir.
Diffstat (limited to 'hackvr_term')
-rw-r--r--hackvr_term/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/hackvr_term/Makefile b/hackvr_term/Makefile
index dd063f4..fb33227 100644
--- a/hackvr_term/Makefile
+++ b/hackvr_term/Makefile
@@ -1,6 +1,19 @@
-CFLAGS=-pedantic
+.PHONY: all clean install uninstall
-hackvr_term: hackvr_term.c libtmt/tmt.c
+all: hackvr_term
+
+hackvr_term.o: CFLAGS=-pedantic -Wall
+libtmt/tmt.o: CFLAGS=-pedantic
+
+hackvr_term: hackvr_term.o libtmt/tmt.o
clean:
+ rm *.o
+ rm */*.o
rm hackvr_term
+
+install:
+ install hackvr_term $(PREFIX)/bin/hackvr_term
+
+uninstall:
+ [ -e $(PREFIX)/bin/hackvr_term ] && rm -i $(PREFIX)/bin/hackvr_term || echo "nothing to uninstall"