3dphotoshoot

view 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
line source
1 root = .
2 include $(root)/proj.mk
4 src += $(wildcard $(root)/src/pc/*.c)
5 obj = $(src:.c=.o) $(ccsrc:.cc=.o)
7 ifeq ($(shell uname -s), Darwin)
8 libgl = -framework OpenGL -framework GLUT -lGLEW
9 else
10 libgl = -lGL -lGLU -lglut -lGLEW
11 endif
13 CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths)
14 CFLAGS = $(CXXFLAGS)
15 LDFLAGS = $(libpaths) $(libs) $(libgl) -ldl -lpthread
17 $(bin): $(obj)
18 $(CXX) -o $@ $(obj) $(LDFLAGS)
20 .PHONY: clean
21 clean:
22 rm -f $(obj) $(bin)