]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.bd32
Corrected wxFileSystemHandler::GetRightLocation for the case
[wxWidgets.git] / src / png / scripts / makefile.bd32
CommitLineData
c6b71bff
GD
1# Makefile for png32bd.dll
2# -------------------- 32-bit Borland C++ --------------------
3
4# This makefile expects to find zlib.h and zlib32bd.lib in the
5# $(ZLIBDIR) directory.
6
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.
9
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.
14
15.AUTODEPEND
16
17ZLIBDIR=..\zlib
18ZLIB=zlib32bd.lib
19PNGDLL=png32bd.dll
20PNGLIB=png32bd.lib
21
22CC=bcc32
23CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
24 -DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
25#LINK=tlink32
26#LINK=ilink32
27LINK=bcc32
28#LINKFLAGS= -Tpd -aa -c
29LINKFLAGS= -WDE
30IMPLIB=implib
31
32# Use this if you don't want Borland's fancy exception handling
33NOEHLIB=noeh32.lib
34
35.c.obj:
36 $(CC) -c $(CFLAGS) $<
37
38.c.exe:
39 $(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
40
41
42OBJ1=png.obj pngerror.obj pngget.obj pngmem.obj pngpread.obj
43OBJ2=pngread.obj pngrio.obj pngrtran.obj pngrutil.obj pngset.obj
44OBJ3=pngtrans.obj pngwio.obj pngwrite.obj pngwtran.obj pngwutil.obj
45
46all: $(PNGDLL)
47
48test: pngtest.exe
49 pngtest
50
51
52$(PNGDLL): $(OBJ1) $(OBJ2) $(OBJ3) $(ZLIBDIR)\$(ZLIB)
53 $(LINK) @&&|
54$(LINKFLAGS)
55-e$(PNGDLL)
56$(OBJ1)
57$(OBJ2)
58$(OBJ3)
59$(ZLIBDIR)\$(ZLIB)
60$(NOEHLIB)
61|
62 $(IMPLIB) -c $(@R).lib $@
63
64
65# Clean up anything else you want
66clean:
67 -del *.obj
68 -del *.dll
69 -del *.exe
70 -del *.lib
71 -del *.lst
72 -del *.map
73 -del *.tds
74
75
76# End of makefile for png32bd.dll