dungeon_crawler
annotate prototype/Makefile.in @ 72:a27528035e20
- re-organized the renderer classes a bit wrt final render-target
- implemented identity color-grading palette for now
- broke particle systems....
- removed multipass renderer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 19 Oct 2012 02:45:57 +0300 |
parents | aa86119e3295 |
children |
rev | line source |
---|---|
nuclear@47 | 1 csrc = $(wildcard src/*.c) \ |
nuclear@47 | 2 $(wildcard vmath/*.c) \ |
nuclear@67 | 3 $(wildcard imago2/*.c) \ |
nuclear@67 | 4 $(wildcard anim/*.c) \ |
nuclear@67 | 5 $(wildcard psys/*.c) \ |
nuclear@48 | 6 $(wildcard drawtext/*.c) \ |
nuclear@48 | 7 $(wildcard kdtree/*.c) |
nuclear@47 | 8 |
nuclear@47 | 9 ccsrc = $(wildcard src/*.cc) \ |
nuclear@47 | 10 $(wildcard src/audio/*.cc) \ |
nuclear@47 | 11 $(wildcard vmath/*.cc) |
nuclear@47 | 12 |
nuclear@1 | 13 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) |
nuclear@1 | 14 dep = $(obj:.o=.d) |
nuclear@1 | 15 bin = proto |
nuclear@1 | 16 |
nuclear@17 | 17 warn = -Wall -Wno-format-extra-args -Wno-char-subscripts |
nuclear@17 | 18 |
nuclear@67 | 19 inc = -I. -Isrc -Ivmath -Iimago2 -Idrawtext -Ikdtree `pkg-config --cflags freetype2` |
nuclear@24 | 20 |
nuclear@60 | 21 CFLAGS = -pedantic -fno-strict-aliasing $(warn) $(dbg) $(prof) $(opt) $(inc) |
nuclear@28 | 22 CXXFLAGS = $(CFLAGS) $(cxx11_cflags) |
nuclear@67 | 23 LDFLAGS = $(cxx11_ldflags) $(prof) $(libgl) $(libal) -lvorbisfile -lm -lassimp \ |
nuclear@67 | 24 -ljpeg -lpng -lz `pkg-config --libs freetype2` |
nuclear@1 | 25 |
nuclear@1 | 26 ifeq ($(shell uname -s), Darwin) |
nuclear@67 | 27 CC = clang |
nuclear@67 | 28 CXX = clang++ |
nuclear@1 | 29 libgl = -framework OpenGL -framework GLUT -lglew |
nuclear@47 | 30 libal = -framework OpenAL |
nuclear@1 | 31 else |
nuclear@1 | 32 libgl = -lGL -lGLU -lglut -lGLEW |
nuclear@47 | 33 libal = -lopenal |
nuclear@1 | 34 endif |
nuclear@1 | 35 |
nuclear@14 | 36 $(bin): $(obj) Makefile |
nuclear@1 | 37 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@1 | 38 |
nuclear@1 | 39 -include $(dep) |
nuclear@1 | 40 |
nuclear@1 | 41 %.d: %.c |
nuclear@1 | 42 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@1 | 43 |
nuclear@1 | 44 %.d: %.cc |
nuclear@1 | 45 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@1 | 46 |
nuclear@1 | 47 .PHONY: clean |
nuclear@1 | 48 clean: |
nuclear@1 | 49 rm -f $(obj) $(bin) $(dep) |
nuclear@12 | 50 |
nuclear@12 | 51 include build/macapp.mk |