deepstone
annotate Makefile.bcc @ 20:9c23bfe10745
optimization flags in the makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 21 Sep 2013 16:40:31 +0300 |
parents | 0e781cc43178 |
children |
rev | line source |
---|---|
nuclear@0 | 1 .AUTODEPEND |
nuclear@0 | 2 |
nuclear@0 | 3 obj = src\test.obj src\vga.obj src\timer.obj src\mouse.obj \ |
nuclear@2 | 4 src\mingl.obj src\mglrast.obj src\mglgen.obj \ |
nuclear@3 | 5 src\texture.obj src\palman.obj |
nuclear@0 | 6 bin = dos3d.exe |
nuclear@0 | 7 |
nuclear@0 | 8 CC = bcc |
nuclear@0 | 9 |
nuclear@20 | 10 # 386 instructions, x87 fpu code, large memory model, optimize for speed |
nuclear@20 | 11 CFLAGS = -3 -f287 -ml -O2 -G -Isrc |
nuclear@0 | 12 |
nuclear@0 | 13 $(bin): $(obj) |
nuclear@0 | 14 $(CC) @&&| |
nuclear@0 | 15 $(CFLAGS) -e$@ |
nuclear@0 | 16 $(obj) |
nuclear@0 | 17 | |
nuclear@0 | 18 |
nuclear@0 | 19 .SUFFIXES: .c .obj |
nuclear@0 | 20 |
nuclear@0 | 21 .c.obj: |
nuclear@0 | 22 $(CC) $(CFLAGS) -o$@ -c $< |
nuclear@0 | 23 |
nuclear@0 | 24 clean: |
nuclear@0 | 25 del src\*.obj |
nuclear@0 | 26 del $(bin) |