This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
libpng/scripts/makefile.bd32

77 lines
1.6 KiB
Plaintext
Raw Normal View History

1998-05-21 14:27:50 +00:00
# Makefile for png32bd.dll
2000-07-01 20:37:28 +00:00
# -------------------- 32-bit Borland C++ --------------------
1998-05-21 14:27:50 +00:00
# This makefile expects to find zlib.h and zlib32bd.lib in the
# $(ZLIBDIR) directory.
# The object files here are compiled with the "stdcall" calling convention.
# This DLL requires zlib32bd.lib to be compiled in the same way.
# Note that png32bd.dll exports the zlib functions adler32, crc32 and
# the deflate... and inflate... functions. It does not export the
# compress and uncompress functions, nor any of the gz... functions,
# since libpng does not call them.
2000-03-21 11:13:06 +00:00
.AUTODEPEND
ZLIBDIR=..\zlib
1998-05-21 14:27:50 +00:00
ZLIB=zlib32bd.lib
PNGDLL=png32bd.dll
2000-03-21 11:13:06 +00:00
PNGLIB=png32bd.lib
CC=bcc32
CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
-DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
#LINK=tlink32
#LINK=ilink32
LINK=bcc32
#LINKFLAGS= -Tpd -aa -c
LINKFLAGS= -WDE
IMPLIB=implib
1998-05-21 14:27:50 +00:00
2000-03-21 11:13:06 +00:00
# Use this if you don't want Borland's fancy exception handling
NOEHLIB=noeh32.lib
1998-05-21 14:27:50 +00:00
.c.obj:
2000-03-21 11:13:06 +00:00
$(CC) -c $(CFLAGS) $<
.c.exe:
$(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
OBJ1=png.obj pngerror.obj pngget.obj pngmem.obj pngpread.obj
OBJ2=pngread.obj pngrio.obj pngrtran.obj pngrutil.obj pngset.obj
1998-05-21 14:27:50 +00:00
OBJ3=pngtrans.obj pngwio.obj pngwrite.obj pngwtran.obj pngwutil.obj
all: $(PNGDLL)
2000-03-21 11:13:06 +00:00
test: pngtest.exe
pngtest
1998-05-21 14:27:50 +00:00
$(PNGDLL): $(OBJ1) $(OBJ2) $(OBJ3) $(ZLIBDIR)\$(ZLIB)
2000-03-21 11:13:06 +00:00
$(LINK) @&&|
$(LINKFLAGS)
-e$(PNGDLL)
$(OBJ1)
$(OBJ2)
1998-05-21 14:27:50 +00:00
$(OBJ3)
2000-03-21 11:13:06 +00:00
$(ZLIBDIR)\$(ZLIB)
$(NOEHLIB)
1998-05-21 14:27:50 +00:00
|
2000-03-21 11:13:06 +00:00
$(IMPLIB) -c $(@R).lib $@
# Clean up anything else you want
clean:
-del *.obj
-del *.dll
-del *.exe
-del *.lib
-del *.lst
-del *.map
-del *.tds
1998-05-21 14:27:50 +00:00
# End of makefile for png32bd.dll