summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@ping.uio.no>2010-10-18 23:31:35 +0200
committerMartin Stensgård <mastensg@ping.uio.no>2010-10-18 23:31:35 +0200
commitdf6a25599abac84f0f736b3029024cdd500bc106 (patch)
tree4540efe7b320af5d200a41ccdc0ac12630134f9a /Makefile
Weird effect.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
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)