3dphotoshoot

view Makefile @ 25:ac80210d5fbe

preparing a pc version for easier development of non-android-specifics
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:12:30 +0300
parents
children a460b1e5af4a
line source
1 root = .
2 include $(root)/proj.mk
4 src += $(wildcard $(root)/src/glut/*.c)
5 obj = $(src:.c=.o) $(ccsrc:.cc=.o)
7 ifeq ($(shell uname -s), Darwin)
8 libgl = -framework OpenGL -framework GLUT
9 else
10 libgl = -lGL -lGLU -lglut
11 endif
13 CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths)
14 CFLAGS = $(CXXFLAGS)
15 LDFLAGS = $(libpaths) $(libs) $(libgl)
17 $(bin): $(obj)
18 $(CXX) -o $@ $(obj) $(LDFLAGS)
20 .PHONY: clean
21 clean:
22 rm -f $(obj) $(bin)