gradtool

diff Makefile @ 0:960cea2731c4

gradtool hg import (used to be in subversion, fuck subversion)
author John Tsiombikas <nuclear@mutantstargoat.com>
date Tue, 19 Jun 2012 05:30:45 +0300
parents
children c438411b801b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Jun 19 05:30:45 2012 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +PREFIX = /usr/local
     1.5 +obj = gradtool.o
     1.6 +bin = gradtool
     1.7 +
     1.8 +CFLAGS = -std=c89 -pedantic -Wall -g
     1.9 +LDFLAGS = -lglut -lGL
    1.10 +
    1.11 +$(bin): $(obj)
    1.12 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.13 +
    1.14 +.PHONY: clean
    1.15 +clean:
    1.16 +	rm -f $(obj) $(bin)
    1.17 +
    1.18 +.PHONY: install
    1.19 +install: $(bin)
    1.20 +	cp $(bin) $(PREFIX)/bin/$(bin)
    1.21 +
    1.22 +.PHONY: uninstall
    1.23 +uninstall:
    1.24 +	rm -f $(PREFIX)/bin/$(bin)