rayzor

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/GNUmakefile	Sun Apr 06 02:43:24 2014 +0300
     1.3 @@ -0,0 +1,34 @@
     1.4 +modelobj = src/main.o src/min3d.o src/m3drast.o src/logger.o
     1.5 +rendobj = src/rend.o src/vmath.o
     1.6 +scnobj = src/scene.o src/object.o
     1.7 +sysobj = src/dosemu/dosemu.o
     1.8 +obj = $(modelobj) $(rendobj) $(scnobj) $(sysobj)
     1.9 +dep = $(obj:.o=.d)
    1.10 +bin = rayzor
    1.11 +
    1.12 +dbg = -g
    1.13 +#opt = -O3 -ffast-math
    1.14 +inc = -Isrc -Isrc/stl -Isrc/dosemu
    1.15 +
    1.16 +CFLAGS = -pedantic -Wall $(dbg) $(opt) `pkg-config --cflags sdl` $(inc)
    1.17 +CXXFLAGS = $(CFLAGS)
    1.18 +LDFLAGS = `pkg-config --libs sdl` -lm
    1.19 +
    1.20 +$(bin): $(obj)
    1.21 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.22 +
    1.23 +-include $(dep)
    1.24 +
    1.25 +%.d: %.c
    1.26 +	@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.27 +
    1.28 +%.d: %.cc
    1.29 +	@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.30 +
    1.31 +.PHONY: clean
    1.32 +clean:
    1.33 +	rm -f $(obj) $(bin)
    1.34 +
    1.35 +.PHONY: cleandep
    1.36 +cleandep:
    1.37 +	rm -f $(dep)