rayzor

annotate 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
rev   line source
nuclear@10 1 baseobj = main.obj logger.obj screen.obj scrman.obj swapbuf.obj
nuclear@9 2 modelobj = modeller.obj min3d.obj m3drast.obj lines.obj
nuclear@9 3 rendobj = renderer.obj vmath.obj
nuclear@12 4 scnobj = scene.obj object.obj xfnode.obj
nuclear@0 5 sysobj = gfx.obj vbe.obj dpmi.obj timer.obj mouse.obj keyb.obj
nuclear@9 6 obj = $(baseobj) $(modelobj) $(rendobj) $(scnobj) $(sysobj)
nuclear@0 7 bin = rayzor.exe
nuclear@0 8
nuclear@10 9 opt = -5 -fp5 -otexan
nuclear@10 10 dbg = -d1
nuclear@6 11
nuclear@10 12 AS = nasm
nuclear@0 13 CC = wcc386
nuclear@0 14 CXX = wpp386
nuclear@10 15 ASFLAGS = -fobj
nuclear@10 16 CFLAGS = $(dbg) $(opt) -zq -bt=dos -Isrc\stl
nuclear@0 17 CXXFLAGS = $(CFLAGS)
nuclear@0 18 LD = wlink
nuclear@0 19
nuclear@0 20 $(bin): $(obj)
nuclear@0 21 %write objects.lnk file { $(obj) }
nuclear@6 22 $(LD) debug all name $@ @objects $(LDFLAGS)
nuclear@0 23
nuclear@10 24 .c: src
nuclear@10 25 .cc: src
nuclear@10 26 .asm: src
nuclear@0 27
nuclear@0 28 .c.obj: .autodepend
nuclear@0 29 $(CC) $(CFLAGS) $[*
nuclear@0 30
nuclear@0 31 .cc.obj: .autodepend
nuclear@0 32 $(CXX) $(CXXFLAGS) $[*
nuclear@0 33
nuclear@10 34 .asm.obj:
nuclear@10 35 $(AS) $(ASFLAGS) -o $@ $[*.asm
nuclear@10 36
nuclear@0 37 clean: .symbolic
nuclear@0 38 del *.obj
nuclear@0 39 del $(bin)