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
21 # 3 = 386, 4 = 486, 5 = Pentium etc.
26 # Use this if you don't want Borland's fancy exception handling
43 # -X- turn on dependency generation in the object file
44 # -w set all warnings on
45 # -O2 optimize for speed
46 # -Z global optimization
47 CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(CDEBUG)
49 # -M generate map file
50 LDFLAGS=-M -L$(ZLIB_DIR) $(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) @&&|
141 # Clean up anything else you want
151 # End of makefile for libpng