dungeon_crawler

annotate prototype/Makefile.in @ 57:508540dae114

build crap
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 21 Sep 2012 01:05:35 +0300
parents aa9e28670ae2
children aa86119e3295
rev   line source
nuclear@47 1 csrc = $(wildcard src/*.c) \
nuclear@47 2 $(wildcard vmath/*.c) \
nuclear@48 3 $(wildcard drawtext/*.c) \
nuclear@48 4 $(wildcard kdtree/*.c)
nuclear@47 5
nuclear@47 6 ccsrc = $(wildcard src/*.cc) \
nuclear@47 7 $(wildcard src/audio/*.cc) \
nuclear@47 8 $(wildcard vmath/*.cc)
nuclear@47 9
nuclear@1 10 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o)
nuclear@1 11 dep = $(obj:.o=.d)
nuclear@1 12 bin = proto
nuclear@1 13
nuclear@17 14 warn = -Wall -Wno-format-extra-args -Wno-char-subscripts
nuclear@17 15
nuclear@48 16 inc = -I. -Isrc -Ivmath -Idrawtext -Ikdtree `pkg-config --cflags freetype2`
nuclear@24 17
nuclear@57 18 CFLAGS = -pedantic $(warn) $(dbg) $(prof) $(opt) $(inc)
nuclear@28 19 CXXFLAGS = $(CFLAGS) $(cxx11_cflags)
nuclear@57 20 LDFLAGS = $(cxx11_ldflags) $(prof) $(libgl) $(libal) -lvorbisfile -lm -lassimp -limago -lpsys `pkg-config --libs freetype2`
nuclear@1 21
nuclear@1 22 ifeq ($(shell uname -s), Darwin)
nuclear@1 23 libgl = -framework OpenGL -framework GLUT -lglew
nuclear@47 24 libal = -framework OpenAL
nuclear@1 25 else
nuclear@1 26 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@47 27 libal = -lopenal
nuclear@1 28 endif
nuclear@1 29
nuclear@14 30 $(bin): $(obj) Makefile
nuclear@1 31 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@1 32
nuclear@1 33 -include $(dep)
nuclear@1 34
nuclear@1 35 %.d: %.c
nuclear@1 36 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@1 37
nuclear@1 38 %.d: %.cc
nuclear@1 39 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@1 40
nuclear@1 41 .PHONY: clean
nuclear@1 42 clean:
nuclear@1 43 rm -f $(obj) $(bin) $(dep)
nuclear@12 44
nuclear@12 45 include build/macapp.mk