rayzor

view Makefile @ 21:8c4859442200

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 20:52:05 +0300
parents be616b58df99
children
line source
1 baseobj = main.obj logger.obj screen.obj scrman.obj swapbuf.obj rbtree.obj
2 modelobj = modeller.obj min3d.obj m3drast.obj lines.obj
3 rendobj = renderer.obj vmath.obj raytrace.obj
4 scnobj = scene.obj object.obj light.obj camera.obj snode.obj
5 sysobj = gfx.obj vbe.obj dpmi.obj timer.obj mouse.obj keyb.obj
6 obj = $(baseobj) $(modelobj) $(rendobj) $(scnobj) $(sysobj)
7 bin = rayzor.exe
9 opt = -5 -fp5 -otexan
10 dbg = -d1
12 AS = nasm
13 CC = wcc386
14 CXX = wpp386
15 ASFLAGS = -fobj
16 CFLAGS = $(dbg) $(opt) -zq -bt=dos -Isrc\stl
17 CXXFLAGS = $(CFLAGS)
18 LD = wlink
20 $(bin): $(obj)
21 %write objects.lnk file { $(obj) }
22 $(LD) debug all name $@ @objects $(LDFLAGS)
24 .c: src
25 .cc: src
26 .asm: src
28 .c.obj: .autodepend
29 $(CC) $(CFLAGS) $[*
31 .cc.obj: .autodepend
32 $(CXX) $(CXXFLAGS) $[*
34 .asm.obj:
35 $(AS) $(ASFLAGS) -o $@ $[*.asm
37 clean: .symbolic
38 del *.obj
39 del $(bin)