rayzor
annotate GNUmakefile @ 5:5fcf72837b69
fixed the dosemu bit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 06 Apr 2014 02:43:24 +0300 |
parents | |
children | 70e332156d02 |
rev | line source |
---|---|
nuclear@5 | 1 modelobj = src/main.o src/min3d.o src/m3drast.o src/logger.o |
nuclear@5 | 2 rendobj = src/rend.o src/vmath.o |
nuclear@5 | 3 scnobj = src/scene.o src/object.o |
nuclear@5 | 4 sysobj = src/dosemu/dosemu.o |
nuclear@5 | 5 obj = $(modelobj) $(rendobj) $(scnobj) $(sysobj) |
nuclear@5 | 6 dep = $(obj:.o=.d) |
nuclear@5 | 7 bin = rayzor |
nuclear@5 | 8 |
nuclear@5 | 9 dbg = -g |
nuclear@5 | 10 #opt = -O3 -ffast-math |
nuclear@5 | 11 inc = -Isrc -Isrc/stl -Isrc/dosemu |
nuclear@5 | 12 |
nuclear@5 | 13 CFLAGS = -pedantic -Wall $(dbg) $(opt) `pkg-config --cflags sdl` $(inc) |
nuclear@5 | 14 CXXFLAGS = $(CFLAGS) |
nuclear@5 | 15 LDFLAGS = `pkg-config --libs sdl` -lm |
nuclear@5 | 16 |
nuclear@5 | 17 $(bin): $(obj) |
nuclear@5 | 18 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@5 | 19 |
nuclear@5 | 20 -include $(dep) |
nuclear@5 | 21 |
nuclear@5 | 22 %.d: %.c |
nuclear@5 | 23 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@5 | 24 |
nuclear@5 | 25 %.d: %.cc |
nuclear@5 | 26 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@5 | 27 |
nuclear@5 | 28 .PHONY: clean |
nuclear@5 | 29 clean: |
nuclear@5 | 30 rm -f $(obj) $(bin) |
nuclear@5 | 31 |
nuclear@5 | 32 .PHONY: cleandep |
nuclear@5 | 33 cleandep: |
nuclear@5 | 34 rm -f $(dep) |