rayzor

view Makefile @ 11:fe94d9e986ae

optimized 16bpp swap_buffers
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 08:42:33 +0300
parents 70e332156d02
children d94a69933a71
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
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)