comparison zlib/Makefile.bor @ 10:1040ca591f2e

First entry of Paradise Server 2.9 patch 10 Beta
author darius
date Sat, 06 Dec 1997 04:37:18 +0000
parents
children
comparison
equal deleted inserted replaced
9:331055a97a9d 10:1040ca591f2e
1 # Makefile for zlib
2 # Borland C++ ************ UNTESTED ***********
3
4 # To use, do "make -fmakefile.bor"
5 # To compile in small model, set below: MODEL=-ms
6
7 # WARNING: the small model is supported but only for small values of
8 # MAX_WBITS and MAX_MEM_LEVEL. For example:
9 # -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
10 # If you wish to reduce the memory requirements (default 256K for big
11 # objects plus a few K), you can add to CFLAGS below:
12 # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
13 # See zconf.h for details about the memory requirements.
14
15 # ------------- Turbo C++, Borland C++ -------------
16 MODEL=-ml
17 CFLAGS=-O2 -Z $(MODEL)
18 CC=bcc
19 LD=bcc
20 LIB=tlib
21 # replace bcc with tcc for Turbo C++ 1.0
22 LDFLAGS=$(MODEL)
23 O=.obj
24
25 # variables
26 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
27 trees$(O)
28 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
29 trees$(O)
30 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
31 infutil$(O) inffast$(O)
32 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
33 infutil$(O)+inffast$(O)
34
35 all: test
36
37 adler32.obj: adler32.c zutil.h zlib.h zconf.h
38 $(CC) -c $(CFLAGS) $*.c
39
40 compress.obj: compress.c zlib.h zconf.h
41 $(CC) -c $(CFLAGS) $*.c
42
43 crc32.obj: crc32.c zutil.h zlib.h zconf.h
44 $(CC) -c $(CFLAGS) $*.c
45
46 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
47 $(CC) -c $(CFLAGS) $*.c
48
49 gzio.obj: gzio.c zutil.h zlib.h zconf.h
50 $(CC) -c $(CFLAGS) $*.c
51
52 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
53 infcodes.h infutil.h
54 $(CC) -c $(CFLAGS) $*.c
55
56 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
57 infcodes.h inffast.h
58 $(CC) -c $(CFLAGS) $*.c
59
60 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
61 $(CC) -c $(CFLAGS) $*.c
62
63 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
64 $(CC) -c $(CFLAGS) $*.c
65
66 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
67 $(CC) -c $(CFLAGS) $*.c
68
69 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
70 $(CC) -c $(CFLAGS) $*.c
71
72 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
73 $(CC) -c $(CFLAGS) $*.c
74
75 uncompr.obj: uncompr.c zlib.h zconf.h
76 $(CC) -c $(CFLAGS) $*.c
77
78 zutil.obj: zutil.c zutil.h zlib.h zconf.h
79 $(CC) -c $(CFLAGS) $*.c
80
81 example.obj: example.c zlib.h zconf.h
82 $(CC) -c $(CFLAGS) $*.c
83
84 minigzip.obj: minigzip.c zlib.h zconf.h
85 $(CC) -c $(CFLAGS) $*.c
86
87 # we must cut the command line to fit in the MS/DOS 128 byte limit:
88 zlib.lib: $(OBJ1) $(OBJ2)
89 del zlib.lib
90 $(LIB) zlib +$(OBJP1)
91 $(LIB) zlib +$(OBJP2)
92
93 example.exe: example.obj zlib.lib
94 $(LD) $(LDFLAGS) example.obj zlib.lib
95
96 minigzip.exe: minigzip.obj zlib.lib
97 $(LD) $(LDFLAGS) minigzip.obj zlib.lib
98
99 test: example.exe minigzip.exe
100 example
101 echo hello world | minigzip | minigzip -d
102
103 #clean:
104 # del *.obj
105 # del *.exe