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. --- src/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index b7aec54..5e233f7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,3 +1,5 @@ +.PHONY: all install clean uninstall + CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL -ffast-math #all: hackvr_headless hackvr_x11 hackvr_opengl slowcat ### when hackvr_opengl gets useful at all I'll start including it in default build. @@ -29,6 +31,16 @@ graphics_c2_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut graphics_cs_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut math.o: LDLIBS=-lm +install: + install hackvr $(PREFIX)/bin/hackvr + install hackvr_x11 $(PREFIX)/bin/hackvr_x11 + install slowcat $(PREFIX)/bin/slowcat + +uninstall: + rm $(PREFIX)/bin/hackvr + rm $(PREFIX)/bin/hackvr_x11 + rm $(PREFIX)/bin/slowcat + clean: rm -f hackvr rm -f hackvr_headless -- cgit v1.2.3