2 # 32-bit Borland C++ (Note: All modules are compiled in C mode)
 
   3 # To build the library, do:
 
   4 #       "make -fmakefile.bc32"
 
   6 # -------------------- 32-bit Borland C++ --------------------
 
   8 ### Absolutely necessary for this makefile to work
 
  11 ## Where zlib.h, zconf.h and zlib.lib are
 
  15 ## Compiler, linker and lib stuff
 
  20 # -3 = 386, -4 = 486, -5 = Pentium etc.
 
  25 # Use this if you don't want Borland's fancy exception handling
 
  26 # (Caution: doesn't work with CBuilderX)
 
  43 # -O2 optimize for speed
 
  44 # -d  merge duplicate strings
 
  45 # -k- turn off standard stack frame
 
  46 # -w  display all warnings
 
  47 CFLAGS=-I$(ZLIB_DIR) -O2 -d -k- -w $(TARGET_CPU) $(CDEBUG)
 
  49 # -M  generate map file
 
  50 LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
 
  92 # Braces let make "batch" calls to the compiler,
 
  93 # 2 calls instead of 12; space is important.
 
  95         $(CC) $(CFLAGS) -c {$*.c }
 
  98         $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib.lib $(NOEHLIB)
 
 101         $(LD) $(LDFLAGS) $*.obj $(LIBNAME) zlib.lib $(NOEHLIB)
 
 118 pngerror.obj: pngerror.c
 
 121 pngpread.obj: pngpread.c
 
 122 pngread.obj: pngread.c
 
 124 pngrtran.obj: pngrtran.c
 
 125 pngrutil.obj: pngrutil.c
 
 127 pngtrans.obj: pngtrans.c
 
 129 pngwrite.obj: pngwrite.c
 
 130 pngwtran.obj: pngwtran.c
 
 131 pngwutil.obj: pngwutil.c
 
 136         $(LIB) $(LIBNAME) @&&|
 
 152 # End of makefile for libpng