gradtool
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 PREFIX = /usr/local |
nuclear@0 | 2 obj = gradtool.o |
nuclear@0 | 3 bin = gradtool |
nuclear@0 | 4 |
nuclear@0 | 5 CFLAGS = -std=c89 -pedantic -Wall -g |
nuclear@0 | 6 LDFLAGS = -lglut -lGL |
nuclear@0 | 7 |
nuclear@0 | 8 $(bin): $(obj) |
nuclear@0 | 9 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 10 |
nuclear@0 | 11 .PHONY: clean |
nuclear@0 | 12 clean: |
nuclear@0 | 13 rm -f $(obj) $(bin) |
nuclear@0 | 14 |
nuclear@0 | 15 .PHONY: install |
nuclear@0 | 16 install: $(bin) |
nuclear@0 | 17 cp $(bin) $(PREFIX)/bin/$(bin) |
nuclear@0 | 18 |
nuclear@0 | 19 .PHONY: uninstall |
nuclear@0 | 20 uninstall: |
nuclear@0 | 21 rm -f $(PREFIX)/bin/$(bin) |