rayzor

view Makefile @ 12:d94a69933a71

lots of stuff, can't remember
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 12 Apr 2014 23:28:24 +0300
parents 235c8b764c0b
children 964f8ea5f095
line source
1 baseobj = main.obj logger.obj screen.obj scrman.obj swapbuf.obj
2 modelobj = modeller.obj min3d.obj m3drast.obj lines.obj
3 rendobj = renderer.obj vmath.obj
4 scnobj = scene.obj object.obj xfnode.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)