From ecdf070d79d479655f2a75936845a454cbed84b3 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 2 Jan 2018 06:02:45 -0600 Subject: added install and uninstall and a Makefile to the root dir. --- hackvr_term/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'hackvr_term') 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" -- cgit v1.2.3