diff options
Diffstat (limited to 'Makefile.wat')
-rw-r--r-- | Makefile.wat | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/Makefile.wat b/Makefile.wat new file mode 100644 index 0000000..2a3b629 --- /dev/null +++ b/Makefile.wat | |||
@@ -0,0 +1,103 @@ | |||
1 | # Makefile for zlib | ||
2 | # Watcom 10a | ||
3 | |||
4 | # This version of the zlib makefile was adapted by Chris Young for use | ||
5 | # with Watcom 10a 32-bit protected mode flat memory model. It was created | ||
6 | # for use with POV-Ray ray tracer and you may choose to edit the CFLAGS to | ||
7 | # suit your needs but the -DMSDOS is required. | ||
8 | # -- Chris Young 76702.1655@compuserve.com | ||
9 | |||
10 | # To use, do "wmake -f makefile.wat" | ||
11 | |||
12 | # See zconf.h for details about the memory requirements. | ||
13 | |||
14 | # ------------- Watcom 10a ------------- | ||
15 | MODEL=-mf | ||
16 | CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS | ||
17 | CC=wcc386 | ||
18 | LD=wcl386 | ||
19 | LIB=wlib -b -c | ||
20 | LDFLAGS= | ||
21 | O=.obj | ||
22 | |||
23 | # variables | ||
24 | OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) | ||
25 | OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) | ||
26 | OBJ3=infutil$(O) inffast$(O) | ||
27 | OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O) | ||
28 | OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O) | ||
29 | OBJP3=infutil$(O)+inffast$(O) | ||
30 | |||
31 | all: test | ||
32 | |||
33 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | ||
34 | $(CC) $(CFLAGS) $*.c | ||
35 | |||
36 | compress.obj: compress.c zlib.h zconf.h | ||
37 | $(CC) $(CFLAGS) $*.c | ||
38 | |||
39 | crc32.obj: crc32.c zutil.h zlib.h zconf.h | ||
40 | $(CC) $(CFLAGS) $*.c | ||
41 | |||
42 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
43 | $(CC) $(CFLAGS) $*.c | ||
44 | |||
45 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
46 | $(CC) $(CFLAGS) $*.c | ||
47 | |||
48 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h & | ||
49 | infcodes.h infutil.h | ||
50 | $(CC) $(CFLAGS) $*.c | ||
51 | |||
52 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h & | ||
53 | infcodes.h inffast.h | ||
54 | $(CC) $(CFLAGS) $*.c | ||
55 | |||
56 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
57 | $(CC) $(CFLAGS) $*.c | ||
58 | |||
59 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
60 | $(CC) $(CFLAGS) $*.c | ||
61 | |||
62 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
63 | $(CC) $(CFLAGS) $*.c | ||
64 | |||
65 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
66 | $(CC) $(CFLAGS) $*.c | ||
67 | |||
68 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
69 | $(CC) $(CFLAGS) $*.c | ||
70 | |||
71 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
72 | $(CC) $(CFLAGS) $*.c | ||
73 | |||
74 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
75 | $(CC) $(CFLAGS) $*.c | ||
76 | |||
77 | example.obj: example.c zlib.h zconf.h | ||
78 | $(CC) $(CFLAGS) $*.c | ||
79 | |||
80 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
81 | $(CC) $(CFLAGS) $*.c | ||
82 | |||
83 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
84 | zlib.lib: $(OBJ1) $(OBJ2) $(OBJ3) | ||
85 | del zlib.lib | ||
86 | $(LIB) zlib.lib +$(OBJP1) | ||
87 | $(LIB) zlib.lib +$(OBJP2) | ||
88 | $(LIB) zlib.lib +$(OBJP3) | ||
89 | |||
90 | example.exe: example.obj zlib.lib | ||
91 | $(LD) $(LDFLAGS) example.obj zlib.lib | ||
92 | |||
93 | minigzip.exe: minigzip.obj zlib.lib | ||
94 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib | ||
95 | |||
96 | test: minigzip.exe example.exe | ||
97 | example | ||
98 | echo hello world | minigzip | minigzip -d >test | ||
99 | type test | ||
100 | |||
101 | #clean: | ||
102 | # del *.obj | ||
103 | # del *.exe | ||