]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.bd32
fix build for watcom
[wxWidgets.git] / src / png / scripts / makefile.bd32
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
17 ZLIBDIR=..\zlib
18 ZLIB=zlib32bd.lib
19 PNGDLL=png32bd.dll
20 PNGLIB=png32bd.lib
21
22 CC=bcc32
23 CFLAGS= -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
27 LINK=bcc32
28 #LINKFLAGS= -Tpd -aa -c
29 LINKFLAGS= -WDE
30 IMPLIB=implib
31
32 # Use this if you don't want Borland's fancy exception handling
33 NOEHLIB=noeh32.lib
34
35 .c.obj:
36 $(CC) -c $(CFLAGS) $<
37
38 .c.exe:
39 $(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
40
41
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
45
46 all: $(PNGDLL)
47
48 test: 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
66 clean:
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