3dphotoshoot

annotate Makefile @ 26:a460b1e5af4a

added GLUT frontend
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:55:05 +0300
parents ac80210d5fbe
children
rev   line source
nuclear@25 1 root = .
nuclear@25 2 include $(root)/proj.mk
nuclear@25 3
nuclear@26 4 src += $(wildcard $(root)/src/pc/*.c)
nuclear@25 5 obj = $(src:.c=.o) $(ccsrc:.cc=.o)
nuclear@25 6
nuclear@25 7 ifeq ($(shell uname -s), Darwin)
nuclear@26 8 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@25 9 else
nuclear@26 10 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@25 11 endif
nuclear@25 12
nuclear@25 13 CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths)
nuclear@25 14 CFLAGS = $(CXXFLAGS)
nuclear@26 15 LDFLAGS = $(libpaths) $(libs) $(libgl) -ldl -lpthread
nuclear@25 16
nuclear@25 17 $(bin): $(obj)
nuclear@25 18 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@25 19
nuclear@25 20 .PHONY: clean
nuclear@25 21 clean:
nuclear@25 22 rm -f $(obj) $(bin)