rayzor

view Makefile @ 16:4d87b0aafbb0

forgot to add the redblack tree
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Apr 2014 09:54:51 +0300
parents 964f8ea5f095
children 79609d482762
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
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)