rayzor

view 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 source
1 modelobj = src/main.o src/min3d.o src/m3drast.o src/logger.o
2 rendobj = src/rend.o src/vmath.o
3 scnobj = src/scene.o src/object.o
4 sysobj = src/dosemu/dosemu.o
5 obj = $(modelobj) $(rendobj) $(scnobj) $(sysobj)
6 dep = $(obj:.o=.d)
7 bin = rayzor
9 dbg = -g
10 #opt = -O3 -ffast-math
11 inc = -Isrc -Isrc/stl -Isrc/dosemu
13 CFLAGS = -pedantic -Wall $(dbg) $(opt) `pkg-config --cflags sdl` $(inc)
14 CXXFLAGS = $(CFLAGS)
15 LDFLAGS = `pkg-config --libs sdl` -lm
17 $(bin): $(obj)
18 $(CXX) -o $@ $(obj) $(LDFLAGS)
20 -include $(dep)
22 %.d: %.c
23 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
25 %.d: %.cc
26 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
28 .PHONY: clean
29 clean:
30 rm -f $(obj) $(bin)
32 .PHONY: cleandep
33 cleandep:
34 rm -f $(dep)