nuclear@5: modelobj = src/main.o src/min3d.o src/m3drast.o src/logger.o nuclear@5: rendobj = src/rend.o src/vmath.o nuclear@5: scnobj = src/scene.o src/object.o nuclear@5: sysobj = src/dosemu/dosemu.o nuclear@5: obj = $(modelobj) $(rendobj) $(scnobj) $(sysobj) nuclear@5: dep = $(obj:.o=.d) nuclear@5: bin = rayzor nuclear@5: nuclear@5: dbg = -g nuclear@5: #opt = -O3 -ffast-math nuclear@5: inc = -Isrc -Isrc/stl -Isrc/dosemu nuclear@5: nuclear@5: CFLAGS = -pedantic -Wall $(dbg) $(opt) `pkg-config --cflags sdl` $(inc) nuclear@5: CXXFLAGS = $(CFLAGS) nuclear@5: LDFLAGS = `pkg-config --libs sdl` -lm nuclear@5: nuclear@5: $(bin): $(obj) nuclear@5: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@5: nuclear@5: -include $(dep) nuclear@5: nuclear@5: %.d: %.c nuclear@5: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@5: nuclear@5: %.d: %.cc nuclear@5: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@5: nuclear@5: .PHONY: clean nuclear@5: clean: nuclear@5: rm -f $(obj) $(bin) nuclear@5: nuclear@5: .PHONY: cleandep nuclear@5: cleandep: nuclear@5: rm -f $(dep)