]> git.cworth.org Git - gzip/blob - os2/Makefile.os2
Avoid creating an undersized buffer for the hufts table.
[gzip] / os2 / Makefile.os2
1 # Makefile for gzip (GNU zip), OS/2 version    -*- Indented-Text -*-
2 # Written by Kai Uwe Rommel <rommel@informatik.tu-muenchen.de>
3
4 # specialized version for OS/2
5
6 default:
7         @echo "Enter $(MAKE) -f makefile.os2 target"
8         @echo "where target is one of:"
9         @echo "   msc mscdebug gcc gccdyn gccdebug"
10
11 # compilation with emx 0.8f (gcc 2.3.3) or newer
12 #
13 # release version, statically linked C runtime
14 gcc:
15         $(MAKE) -f Makefile.os2 all \
16         CC="gcc -Zomf -Zsys" O=".obj" S=".S" \
17         AS="gcc -Zomf -xassembler-with-cpp -c -o" \
18         CFLAGS="-O" LDFLAGS="gzip.def -s"
19 #
20 # release version, dynamically linked C runtime
21 gccdyn:
22         $(MAKE) -f Makefile.os2 all \
23         CC="gcc -Zomf -Zmt" O=".obj" S=".S" \
24         AS="gcc -Zomf -xassembler-with-cpp -c -o" \
25         CFLAGS="-O" LDFLAGS="gzip.def -s"
26 #
27 # debugging version
28 gccdebug:
29         $(MAKE) -f Makefile.os2 all \
30         CC="gcc -g" O=".o" S=".S" \
31         AS="gcc -g -xassembler-with-cpp -c -o" \
32         CFLAGS="" LDFLAGS="gzip.def"
33
34 # compilation with MS C 6.00
35 #
36 # release version
37 msc:
38         $(MAKE) -f Makefile.os2 all \
39         CC="cl -nologo -AC" O=".obj" S=".asm" \
40         AS="ml -nologo -Zm -Cp -c -Fo" \
41         CFLAGS=" -W1 -Zap -J -G2s -Ocegit" \
42         LDFLAGS="-Lp -F 2000 setargv.obj gzip16.def -link /noe"
43 #
44 # debugging version
45 mscdebug:
46         $(MAKE) -f Makefile.os2 all \
47         CC="cl -nologo -AC -Zi" O=".obj" S=".asm" \
48         AS="ml -nologo -Zm -Zi -Cp -c -Fo" \
49         CFLAGS="-W1 -Zap -J -G2 -Od" \
50         LDFLAGS="-Lp -F 2000 setargv.obj gzip16.def -link /noe /exe"
51
52 DEFS  = -DOS2 -DASMV
53
54 OBJS = gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O util$O \
55        crypt$O lzw$O unlzw$O unpack$O unlzh$O getopt$O match$O
56
57 .SUFFIXES: .c $O
58
59 .c$O:
60         $(CC) $(CFLAGS) $(DEFS) -c $<
61
62 all: gzip.exe gzip.info gzip.doc
63
64 gzip.exe: $(OBJS)
65         $(CC) -o $@ $(OBJS) $(LDFLAGS)
66
67 gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
68 util$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.h
69
70 gzip$O unlzw$O: revision.h lzw.h
71
72 bits$O unzip$O util$O zip$O: crypt.h
73
74 match$O: match$S
75         $(AS) $@ match$S
76
77 gzip.info: gzip.texi gpl.texinfo
78         makeinfo gzip.texi
79
80 gzip.doc: gzip.1
81         groff -man gzip.1 > $@