rayzor

diff Makefile @ 10:235c8b764c0b

optimized swap_buffers
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 08:03:52 +0300
parents 70e332156d02
children d94a69933a71
line diff
     1.1 --- a/Makefile	Thu Apr 10 02:31:31 2014 +0300
     1.2 +++ b/Makefile	Thu Apr 10 08:03:52 2014 +0300
     1.3 @@ -1,4 +1,4 @@
     1.4 -baseobj = main.obj logger.obj screen.obj scrman.obj
     1.5 +baseobj = main.obj logger.obj screen.obj scrman.obj swapbuf.obj
     1.6  modelobj = modeller.obj min3d.obj m3drast.obj lines.obj
     1.7  rendobj = renderer.obj vmath.obj
     1.8  scnobj = scene.obj object.obj
     1.9 @@ -6,11 +6,14 @@
    1.10  obj = $(baseobj) $(modelobj) $(rendobj) $(scnobj) $(sysobj)
    1.11  bin = rayzor.exe
    1.12  
    1.13 -#dbg = -d2
    1.14 +opt = -5 -fp5 -otexan
    1.15 +dbg = -d1
    1.16  
    1.17 +AS = nasm
    1.18  CC = wcc386
    1.19  CXX = wpp386
    1.20 -CFLAGS = $(dbg) -5 -fp5 -otexan -zq -bt=dos -Isrc\stl
    1.21 +ASFLAGS = -fobj
    1.22 +CFLAGS = $(dbg) $(opt) -zq -bt=dos -Isrc\stl
    1.23  CXXFLAGS = $(CFLAGS)
    1.24  LD = wlink
    1.25  
    1.26 @@ -18,8 +21,9 @@
    1.27  	%write objects.lnk file { $(obj) }
    1.28  	$(LD) debug all name $@ @objects $(LDFLAGS)
    1.29  
    1.30 -.c: src\
    1.31 -.cc: src\
    1.32 +.c: src
    1.33 +.cc: src
    1.34 +.asm: src
    1.35  
    1.36  .c.obj: .autodepend
    1.37  	$(CC) $(CFLAGS) $[*
    1.38 @@ -27,6 +31,9 @@
    1.39  .cc.obj: .autodepend
    1.40  	$(CXX) $(CXXFLAGS) $[*
    1.41  
    1.42 +.asm.obj:
    1.43 +	$(AS) $(ASFLAGS) -o $@ $[*.asm
    1.44 +
    1.45  clean: .symbolic
    1.46  	del *.obj
    1.47  	del $(bin)