gradtool

view Makefile @ 2:3ac4d33e568f

whitespace fix
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Oct 2015 01:48:18 +0300
parents 960cea2731c4
children
line source
1 PREFIX = /usr/local
2 obj = gradtool.o
3 bin = gradtool
5 CFLAGS = -pedantic -Wall -g
6 LDFLAGS = $(libgl)
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -framework GLUT
10 else
11 libgl = -lGL -lglut
12 endif
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)
21 .PHONY: install
22 install: $(bin)
23 cp $(bin) $(PREFIX)/bin/$(bin)