1 # Makefile for png32bd.dll
2 # -------------------- 32-bit Borland C++ --------------------
4 # This makefile expects to find zlib.h and zlib32bd.lib in the
5 # $(ZLIBDIR) directory.
7 # The object files here are compiled with the "stdcall" calling convention.
8 # This DLL requires zlib32bd.lib to be compiled in the same way.
10 # Note that png32bd.dll exports the zlib functions adler32, crc32 and
11 # the deflate... and inflate... functions. It does not export the
12 # compress and uncompress functions, nor any of the gz... functions,
13 # since libpng does not call them.
23 CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
24 -DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
28 #LINKFLAGS= -Tpd -aa -c
32 # Use this if you don't want Borland's fancy exception handling
39 $(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
42 OBJ1=png.obj pngerror.obj pngget.obj pngmem.obj pngpread.obj
43 OBJ2=pngread.obj pngrio.obj pngrtran.obj pngrutil.obj pngset.obj
44 OBJ3=pngtrans.obj pngwio.obj pngwrite.obj pngwtran.obj pngwutil.obj
52 $(PNGDLL): $(OBJ1) $(OBJ2) $(OBJ3) $(ZLIBDIR)\$(ZLIB)
62 $(IMPLIB) -c $(@R).lib $@
65 # Clean up anything else you want
76 # End of makefile for png32bd.dll