nuclear@24: csrc = $(wildcard src/*.c) $(wildcard vmath/*.c) $(wildcard drawtext/*.c) nuclear@1: ccsrc = $(wildcard src/*.cc) $(wildcard vmath/*.cc) 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@28: inc = -I. -Ivmath -Idrawtext `pkg-config --cflags freetype2` nuclear@24: nuclear@24: CFLAGS = -pedantic $(warn) $(dbg) $(opt) $(inc) nuclear@28: CXXFLAGS = $(CFLAGS) $(cxx11_cflags) nuclear@38: LDFLAGS = $(cxx11_ldflags) $(libgl) -lm -lassimp -limago -lpsys `pkg-config --libs freetype2` nuclear@1: nuclear@1: ifeq ($(shell uname -s), Darwin) nuclear@1: libgl = -framework OpenGL -framework GLUT -lglew nuclear@1: else nuclear@1: libgl = -lGL -lGLU -lglut -lGLEW 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