source: vendor/gzip/1.3.11/os2/Makefile.os2

Last change on this file was 3325, checked in by bird, 18 years ago

gzip 1.3.11

File size: 2.0 KB
Line 
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
6default:
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
14gcc:
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
21gccdyn:
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
28gccdebug:
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
37msc:
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
45mscdebug:
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
52DEFS = -DOS2 -DASMV
53
54OBJS = 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
62all: gzip.exe gzip.info gzip.doc
63
64gzip.exe: $(OBJS)
65 $(CC) -o $@ $(OBJS) $(LDFLAGS)
66
67gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
68util$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.h
69
70gzip$O unlzw$O: revision.h lzw.h
71
72bits$O unzip$O util$O zip$O: crypt.h
73
74match$O: match$S
75 $(AS) $@ match$S
76
77gzip.info: gzip.texi gpl.texinfo
78 makeinfo gzip.texi
79
80gzip.doc: gzip.1
81 groff -man gzip.1 > $@
Note: See TracBrowser for help on using the repository browser.