goat3dgfx
annotate examples/viewscn/Makefile @ 34:3eb6c8f89fe1
merge
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Mar 2014 17:41:10 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@16 | 1 src = $(wildcard src/*.cc) |
nuclear@16 | 2 obj = $(src:.cc=.o) |
nuclear@16 | 3 bin = viewscn |
nuclear@16 | 4 |
nuclear@16 | 5 CXXFLAGS = -pedantic -Wall -g |
nuclear@16 | 6 LDFLAGS = $(libgl) -lgoat3dgfx -lvmath |
nuclear@16 | 7 |
nuclear@16 | 8 ifeq ($(shell uname -s), Darwin) |
nuclear@16 | 9 libgl = -framework OpenGL -framework GLUT -lGLEW |
nuclear@16 | 10 else |
nuclear@16 | 11 libgl = -lGL -lGLU -lglut -lGLEW |
nuclear@16 | 12 endif |
nuclear@16 | 13 |
nuclear@16 | 14 $(bin): $(obj) |
nuclear@16 | 15 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@16 | 16 |
nuclear@16 | 17 .PHONY: clean |
nuclear@16 | 18 clean: |
nuclear@16 | 19 rm -f $(obj) $(bin) |