rayzor

annotate Makefile @ 19:252999cd1a3f

added reflection and refraction
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 00:59:37 +0300
parents be616b58df99
children
rev   line source
nuclear@15 1 baseobj = main.obj logger.obj screen.obj scrman.obj swapbuf.obj rbtree.obj
nuclear@9 2 modelobj = modeller.obj min3d.obj m3drast.obj lines.obj
nuclear@17 3 rendobj = renderer.obj vmath.obj raytrace.obj
nuclear@13 4 scnobj = scene.obj object.obj light.obj camera.obj snode.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)