nuclear@9: baseobj = src/main.o src/logger.o src/screen.o src/scrman.o
nuclear@9: modelobj = src/modeller.o src/min3d.o src/m3drast.o src/lines.o
nuclear@9: rendobj = src/renderer.o src/vmath.o
nuclear@13: scnobj = src/scene.o src/object.o src/light.o src/camera.o src/snode.o
nuclear@5: sysobj = src/dosemu/dosemu.o
nuclear@9: obj = $(baseobj) $(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)
nuclear@9: 
nuclear@9: .PHONY: profile
nuclear@9: profile:
nuclear@9: 	$(MAKE) CFLAGS="$(CFLAGS) -O3 -pg" LDFLAGS="$(LDFLAGS) -pg"