3dphotoshoot
annotate 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 |
rev | line source |
---|---|
nuclear@25 | 1 root = . |
nuclear@25 | 2 include $(root)/proj.mk |
nuclear@25 | 3 |
nuclear@25 | 4 src += $(wildcard $(root)/src/glut/*.c) |
nuclear@25 | 5 obj = $(src:.c=.o) $(ccsrc:.cc=.o) |
nuclear@25 | 6 |
nuclear@25 | 7 ifeq ($(shell uname -s), Darwin) |
nuclear@25 | 8 libgl = -framework OpenGL -framework GLUT |
nuclear@25 | 9 else |
nuclear@25 | 10 libgl = -lGL -lGLU -lglut |
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@25 | 15 LDFLAGS = $(libpaths) $(libs) $(libgl) |
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) |