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
14 ## Compiler, linker, librarian and other tools
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 CPPFLAGS=-I$(ZLIB_DIR)
48 CFLAGS=-O2 -d -k- -w $(TARGET_CPU) $(CDEBUG)
50 # -M generate map file
51 LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
53 # Pre-built configuration
54 # See scripts\pnglibconf.mak for more options
55 !ifndef PNGLIBCONF_H_PREBUILT
56 PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
97 # Braces let make "batch" calls to the compiler,
98 # 2 calls instead of 12; space is important.
100 $(CC) $(CPPFLAGS) $(CFLAGS) -c {$*.c }
103 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $*.c \
104 $(LIBNAME) zlib.lib $(NOEHLIB)
107 $(LD) $(LDFLAGS) $*.obj $(LIBNAME) zlib.lib $(NOEHLIB)
121 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
122 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
124 png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
125 pngerror.obj: pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
126 pngget.obj: pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
127 pngmem.obj: pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
128 pngpread.obj: pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
129 pngread.obj: pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
130 pngrio.obj: pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
131 pngrtran.obj: pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
132 pngrutil.obj: pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
133 pngset.obj: pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
134 pngtrans.obj: pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
135 pngwio.obj: pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
136 pngwrite.obj: pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
137 pngwtran.obj: pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
138 pngwutil.obj: pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
139 pngtest.obj: pngtest.c png.h pngconf.h pnglibconf.h
143 $(LIB) $(LIBNAME) @&&|
158 # End of makefile for libpng