librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/gebeck_regimport.git] / lib / zlib / contrib / delphi / zlibd32.mak
blob88fafa0b14d123fb81ef34d387031d622a38e1d2
1 # Makefile for zlib
2 # For use with Delphi and C++ Builder under Win32
3 # Updated for zlib 1.2.x by Cosmin Truta
5 # ------------ Borland C++ ------------
7 # This project uses the Delphi (fastcall/register) calling convention:
8 LOC = -DZEXPORT=__fastcall -DZEXPORTVA=__cdecl
10 CC = bcc32
11 LD = bcc32
12 AR = tlib
13 # do not use "-pr" in CFLAGS
14 CFLAGS = -a -d -k- -O2 $(LOC)
15 LDFLAGS =
18 # variables
19 ZLIB_LIB = zlib.lib
21 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
22 OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
23 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
24 OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
27 # targets
28 all: $(ZLIB_LIB) example.exe minigzip.exe
30 .c.obj:
31 $(CC) -c $(CFLAGS) $*.c
33 adler32.obj: adler32.c zlib.h zconf.h
35 compress.obj: compress.c zlib.h zconf.h
37 crc32.obj: crc32.c zlib.h zconf.h crc32.h
39 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
41 gzio.obj: gzio.c zutil.h zlib.h zconf.h
43 infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
44 inffast.h inffixed.h
46 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
47 inffast.h
49 inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
50 inffast.h inffixed.h
52 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
54 trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
56 uncompr.obj: uncompr.c zlib.h zconf.h
58 zutil.obj: zutil.c zutil.h zlib.h zconf.h
60 example.obj: example.c zlib.h zconf.h
62 minigzip.obj: minigzip.c zlib.h zconf.h
65 # For the sake of the old Borland make,
66 # the command line is cut to fit in the MS-DOS 128 byte limit:
67 $(ZLIB_LIB): $(OBJ1) $(OBJ2)
68 -del $(ZLIB_LIB)
69 $(AR) $(ZLIB_LIB) $(OBJP1)
70 $(AR) $(ZLIB_LIB) $(OBJP2)
73 # testing
74 test: example.exe minigzip.exe
75 example
76 echo hello world | minigzip | minigzip -d
78 example.exe: example.obj $(ZLIB_LIB)
79 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
81 minigzip.exe: minigzip.obj $(ZLIB_LIB)
82 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
85 # cleanup
86 clean:
87 -del *.obj
88 -del *.exe
89 -del *.lib
90 -del *.tds
91 -del zlib.bak
92 -del foo.gz