aboutsummaryrefslogtreecommitdiff
path: root/scripts/makefile.bc32
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2006-02-20 22:09:05 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-04-06 16:08:23 -0500
commit9c3ab681455e5dff1b9dd9c38299f1c06afa908b (patch)
tree9bf3736bba6429da2bb136f231095f97af6eba31 /scripts/makefile.bc32
parent917648ecb92f45537924b3c46a4a811b956c7023 (diff)
downloadlibpng-9c3ab681455e5dff1b9dd9c38299f1c06afa908b.tar.gz
Imported from libpng-1.2.9beta1.tar
Diffstat (limited to 'scripts/makefile.bc32')
-rw-r--r--scripts/makefile.bc3225
1 files changed, 13 insertions, 12 deletions
diff --git a/scripts/makefile.bc32 b/scripts/makefile.bc32
index 90b178bc7..04407dd17 100644
--- a/scripts/makefile.bc32
+++ b/scripts/makefile.bc32
@@ -17,14 +17,14 @@ CC=bcc32
LD=bcc32
LIB=tlib
-#TARGET_CPU=6
-# 3 = 386, 4 = 486, 5 = Pentium etc.
+# -3 = 386, -4 = 486, -5 = Pentium etc.
!ifndef TARGET_CPU
-TARGET_CPU=5
+#TARGET_CPU=-6
!endif
# Use this if you don't want Borland's fancy exception handling
-NOEHLIB=noeh32.lib
+# (Caution: doesn't work with CBuilderX)
+#NOEHLIB=noeh32.lib
!ifdef DEBUG
CDEBUG=-v
@@ -40,14 +40,14 @@ CDEBUG=$(CDEBUG) -N
LDEBUG=$(LDEBUG) -N
!endif
-# -X- turn on dependency generation in the object file
-# -w set all warnings on
# -O2 optimize for speed
-# -Z global optimization
-CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(CDEBUG)
+# -d merge duplicate strings
+# -k- turn off standard stack frame
+# -w display all warnings
+CFLAGS=-I$(ZLIB_DIR) -O2 -d -k- -w $(TARGET_CPU) $(CDEBUG)
# -M generate map file
-LDFLAGS=-M -L$(ZLIB_DIR) $(LDEBUG)
+LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
## Variables
@@ -138,14 +138,15 @@ $(LIBOBJS), libpng
|
-# Clean up anything else you want
+# Cleanup
clean:
-del *.obj
- -del *.exe
- -del *.lib
+ -del $(LIBNAME)
+ -del pngtest.exe
-del *.lst
-del *.map
-del *.tds
+ -del pngout.png
# End of makefile for libpng