Mercurial > ~darius > hgwebdir.cgi > paradise_server
comparison zlib/Makefile.msc @ 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 # Microsoft C 5.1 or later | |
3 | |
4 # To use, do "make makefile.msc" | |
5 # To compile in small model, set below: MODEL=-AS | |
6 | |
7 # If you wish to reduce the memory requirements (default 256K for big | |
8 # objects plus a few K), you can add to CFLAGS below: | |
9 # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | |
10 # See zconf.h for details about the memory requirements. | |
11 | |
12 # ------------- Microsoft C 5.1 and later ------------- | |
13 MODEL=-AL | |
14 CFLAGS=-Oait -Gs -nologo -W3 $(MODEL) | |
15 #-Ox generates bad code with MSC 5.1 | |
16 CC=cl | |
17 LD=link | |
18 LDFLAGS=/e/st:0x1000/noe | |
19 O=.obj | |
20 | |
21 # variables | |
22 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | |
23 trees$(O) | |
24 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | |
25 trees$(O) | |
26 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | |
27 infutil$(O) inffast$(O) | |
28 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | |
29 infutil$(O)+inffast$(O) | |
30 | |
31 adler32.obj: adler32.c zutil.h zlib.h zconf.h | |
32 $(CC) -c $(CFLAGS) $*.c | |
33 | |
34 compress.obj: compress.c zlib.h zconf.h | |
35 $(CC) -c $(CFLAGS) $*.c | |
36 | |
37 crc32.obj: crc32.c zutil.h zlib.h zconf.h | |
38 $(CC) -c $(CFLAGS) $*.c | |
39 | |
40 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | |
41 $(CC) -c $(CFLAGS) $*.c | |
42 | |
43 gzio.obj: gzio.c zutil.h zlib.h zconf.h | |
44 $(CC) -c $(CFLAGS) $*.c | |
45 | |
46 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | |
47 infcodes.h infutil.h | |
48 $(CC) -c $(CFLAGS) $*.c | |
49 | |
50 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | |
51 infcodes.h inffast.h | |
52 $(CC) -c $(CFLAGS) $*.c | |
53 | |
54 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | |
55 $(CC) -c $(CFLAGS) $*.c | |
56 | |
57 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | |
58 $(CC) -c $(CFLAGS) $*.c | |
59 | |
60 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | |
61 $(CC) -c $(CFLAGS) $*.c | |
62 | |
63 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | |
64 $(CC) -c $(CFLAGS) $*.c | |
65 | |
66 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | |
67 $(CC) -c $(CFLAGS) $*.c | |
68 | |
69 uncompr.obj: uncompr.c zlib.h zconf.h | |
70 $(CC) -c $(CFLAGS) $*.c | |
71 | |
72 zutil.obj: zutil.c zutil.h zlib.h zconf.h | |
73 $(CC) -c $(CFLAGS) $*.c | |
74 | |
75 example.obj: example.c zlib.h zconf.h | |
76 $(CC) -c $(CFLAGS) $*.c | |
77 | |
78 minigzip.obj: minigzip.c zlib.h zconf.h | |
79 $(CC) -c $(CFLAGS) $*.c | |
80 | |
81 # we must cut the command line to fit in the MS/DOS 128 byte limit: | |
82 zlib.lib: $(OBJ1) $(OBJ2) | |
83 del zlib.lib | |
84 lib zlib $(OBJ1); | |
85 lib zlib $(OBJ2); | |
86 | |
87 example.exe: example.obj zlib.lib | |
88 $(LD) $(LDFLAGS) example.obj,,,zlib.lib; | |
89 | |
90 minigzip.exe: minigzip.obj zlib.lib | |
91 $(LD) $(LDFLAGS) minigzip.obj,,,zlib.lib; | |
92 | |
93 test: example.exe minigzip.exe | |
94 example | |
95 echo hello world | minigzip | minigzip -d | |
96 | |
97 #clean: | |
98 # del *.obj | |
99 # del *.exe |