3dphotoshoot

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Thu Jun 18 03:12:30 2015 +0300
     1.3 @@ -0,0 +1,22 @@
     1.4 +root = .
     1.5 +include $(root)/proj.mk
     1.6 +
     1.7 +src += $(wildcard $(root)/src/glut/*.c)
     1.8 +obj = $(src:.c=.o) $(ccsrc:.cc=.o)
     1.9 +
    1.10 +ifeq ($(shell uname -s), Darwin)
    1.11 +	libgl = -framework OpenGL -framework GLUT
    1.12 +else
    1.13 +	libgl = -lGL -lGLU -lglut
    1.14 +endif
    1.15 +
    1.16 +CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths)
    1.17 +CFLAGS = $(CXXFLAGS)
    1.18 +LDFLAGS = $(libpaths) $(libs) $(libgl)
    1.19 +
    1.20 +$(bin): $(obj)
    1.21 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.22 +
    1.23 +.PHONY: clean
    1.24 +clean:
    1.25 +	rm -f $(obj) $(bin)