gradtool

annotate Makefile @ 2:3ac4d33e568f

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