2 # Borland C++ 4.5 (Note: All modules are compiled in C mode)
3 # Will work with C++ 4.02 also
4 # To build the library, do:
5 # "make -fmakefile.bor -DMODEL=m"
6 # or: "make -fmakefile.bor -DMODEL=l"
8 # ------------- Borland C++ 4.5 -------------
10 ### Absolutely necessary for this makefile to work
13 ## Useful user options
15 # Usually defined in builtins.mak or the environment
21 # Where zlib.h and zconf.h and zlib.lib are
29 # 2 = 286, 3 = 386, etc.
35 # Use this if you don't want Borland's fancy exception handling.
36 NOEHLIB=noeh$(MODEL).lib
53 ## Compiler, linker, and lib stuff
60 # -X- turns on dependency generation in the object file
61 # -w sets all warnings on
62 # -O2 optimize for speed
63 # -Z global optimization
64 CFLAGS=-O2 -Z -X- -w -I$(ZLIB_PATH) -$(TARGET_CPU) $(MODELARG) $(CDEBUG)
66 # -M generate map file
106 LIBNAME=libpng$(MODEL).lib
110 # Braces let make "batch" calls to the compiler,
111 # 2 calls instead of 12; space is important.
113 $(CC) $(CFLAGS) -c {$*.c }
116 $(CC) $(CFLAGS) $(LDFLAGS) $*.c
122 pngtest: pngtest$(MODEL).exe
133 pngread.obj: pngread.c
134 pngpread.obj: pngpread.c
135 pngrtran.obj: pngrtran.c
136 pngrutil.obj: pngrutil.c
137 pngerror.obj: pngerror.c
141 pngtrans.obj: pngtrans.c
142 pngwrite.obj: pngwrite.c
143 pngwtran.obj: pngwtran.c
144 pngwutil.obj: pngwutil.c
149 $(LIB) $(LIBNAME) @&&|
150 $(LIBOBJS), libpng$(MODEL)
154 pngtest$(MODEL).obj: pngtest.c
155 $(CC) $(CFLAGS) -opngtest$(MODEL) -c pngtest.c
157 pngtest$(MODEL).exe: pngtest$(MODEL).obj
158 $(CC) $(MODELARG) $(LDFLAGS) -L$(ZLIB_PATH) pngtest$(MODEL).obj $(LIBNAME) zlib$(MODEL).lib $(NOEHLIB)
161 # Clean up anything else you want
168 # End of makefile for libpng