nuclear@47: csrc = $(wildcard src/*.c) \ nuclear@47: $(wildcard vmath/*.c) \ nuclear@67: $(wildcard imago2/*.c) \ nuclear@67: $(wildcard anim/*.c) \ nuclear@67: $(wildcard psys/*.c) \ nuclear@48: $(wildcard drawtext/*.c) \ nuclear@48: $(wildcard kdtree/*.c) nuclear@47: nuclear@47: ccsrc = $(wildcard src/*.cc) \ nuclear@47: $(wildcard src/audio/*.cc) \ nuclear@47: $(wildcard vmath/*.cc) nuclear@47: nuclear@1: obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) nuclear@1: dep = $(obj:.o=.d) nuclear@1: bin = proto nuclear@1: nuclear@17: warn = -Wall -Wno-format-extra-args -Wno-char-subscripts nuclear@17: nuclear@67: inc = -I. -Isrc -Ivmath -Iimago2 -Idrawtext -Ikdtree `pkg-config --cflags freetype2` nuclear@24: nuclear@60: CFLAGS = -pedantic -fno-strict-aliasing $(warn) $(dbg) $(prof) $(opt) $(inc) nuclear@28: CXXFLAGS = $(CFLAGS) $(cxx11_cflags) nuclear@67: LDFLAGS = $(cxx11_ldflags) $(prof) $(libgl) $(libal) -lvorbisfile -lm -lassimp \ nuclear@67: -ljpeg -lpng -lz `pkg-config --libs freetype2` nuclear@1: nuclear@1: ifeq ($(shell uname -s), Darwin) nuclear@67: CC = clang nuclear@67: CXX = clang++ nuclear@1: libgl = -framework OpenGL -framework GLUT -lglew nuclear@47: libal = -framework OpenAL nuclear@1: else nuclear@1: libgl = -lGL -lGLU -lglut -lGLEW nuclear@47: libal = -lopenal nuclear@1: endif nuclear@1: nuclear@14: $(bin): $(obj) Makefile nuclear@1: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@1: nuclear@1: -include $(dep) nuclear@1: nuclear@1: %.d: %.c nuclear@1: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@1: nuclear@1: %.d: %.cc nuclear@1: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@1: nuclear@1: .PHONY: clean nuclear@1: clean: nuclear@1: rm -f $(obj) $(bin) $(dep) nuclear@12: nuclear@12: include build/macapp.mk