From df6a25599abac84f0f736b3029024cdd500bc106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Mon, 18 Oct 2010 23:31:35 +0200 Subject: Weird effect. --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..892125d --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +DEBUG = -O0 -ggdb -g3 +DEBUG = -O3 +CFLAGS = -Wall -pedantic -std=gnu99 $(DEBUG) +LDFLAGS = -lGL -lGLU -lglut +BINARY = ray +VERSION = 0.1 +PREFIX = /usr/local +OBJECTS = $(BINARY).o + +all: $(BINARY) + +clean: + rm -f $(BINARY).o $(BINARY) + +install: all + mkdir -p $(PREFIX)/bin + cp -f $(BINARY) $(PREFIX)/bin/$(BINARY) + chmod 755 $(PREFIX)/bin/$(BINARY) + mkdir -p $(PREFIX)/man/man1 + sed "s/VERSION/$(VERSION)/g" < $(BINARY).1 > $(PREFIX)/man/man1/$(BINARY).1 + chmod 644 $(PREFIX)/man/man1/$(BINARY).1 + +uninstall: + rm -f $(BINARY) $(PREFIX)/bin/$(BINARY) -- cgit v1.2.3