nuclear@0: src = $(wildcard src/*.cc) $(wildcard src/audio/*.cc) nuclear@0: csrc = $(wildcard src/*.c) $(wildcard src/dsys/*.c) nuclear@0: obj = $(src:.cc=.o) $(csrc:.c=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@0: bin = halloween nuclear@0: nuclear@0: opt = -O2 nuclear@0: nuclear@0: CFLAGS = -pedantic -Wall -g $(opt) -Isrc nuclear@0: CXXFLAGS = -pedantic -Wall -g $(opt) -Isrc nuclear@0: LDFLAGS = -lGL -lGLU -lglut -lGLEW -lvmath -limago -lm -ldl -lpthread \ nuclear@0: -lvorbisfile -logg -lpthread -lopenal nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: -include $(dep) nuclear@0: nuclear@0: %.d: %.c nuclear@0: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@0: nuclear@0: %.d: %.cc nuclear@0: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@0: nuclear@0: .PHONY: cleandep nuclear@0: cleandep: nuclear@0: rm -f $(dep)