|
|
1.1 root 1: # Generated automatically from Makefile.in by configure.
2: # Makefile for gzip (GNU zip) -*- Indented-Text -*-
3: # Copyright (C) 1992-1993 Jean-loup Gailly and the Free Software Foundation
4:
5: # This program is free software; you can redistribute it and/or modify
6: # it under the terms of the GNU General Public License as published by
7: # the Free Software Foundation; either version 2, or (at your option)
8: # any later version.
9:
10: # This program is distributed in the hope that it will be useful,
11: # but WITHOUT ANY WARRANTY; without even the implied warranty of
12: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: # GNU General Public License for more details.
14:
15: # You should have received a copy of the GNU General Public License
16: # along with this program; if not, write to the Free Software
17: # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18:
19: # $Id: Makefile.in,v 0.14 1993/02/24 18:23:13 jloup Exp $
20:
21: #### Start of system configuration section. ####
22:
23:
24: srcdir = .
25: VPATH = .
26:
27: CC = cc -O
28: CPP = /lib/cpp -DNO_UNDERLINE
29:
30: #INSTALL = /usr/bbx/install -c
31: #INSTALL_PROGRAM = $(INSTALL)
32: #INSTALL_DATA = $(INSTALL) -m 644
33:
34: # Things you might add to DEFS (configure usually figures out what to do):
35: # -DDIRENT Use <dirent.h> for recursion (-r)
36: # -DSYSDIR Use <sys/dir.h> for recursion (-r)
37: # -DSYSNDIR Use <sys/ndir.h> for recursion (-r)
38: # -DNDIR Use <ndir.h> for recursion (-r)
39: # -DSTDC_HEADERS Use <stdlib.h>
40: # -DHAVE_UNISTD_H Use <unistd.h>
41: # -DNO_UTIME_H Don't use <utime.h>
42: # -DHAVE_SYSUTIME_H Use <sys/utime.h>
43: # -DNO_MEMORY_H Don't use <memory.h>. Not needed if STDC_HEADERS.
44: # -DNO_STRING_H Use strings.h, not string.h. Not needed if STDC_HEADERS
45: # -DRETSIGTYPE=int Define this if signal handlers must return an int.
46: # -DNO_SYMLINK OS defines S_IFLNK but does not support symbolic links
47: # -DNO_MULTIPLE_DOTS System does not allow file names with multiple dots
48: # -DNO_UTIME System does not support setting file modification time
49: # -DNO_CHOWN System does not support setting file owner
50: # -DNO_DIR System does not support readdir()
51: # -DPROTO Force function prototypes even if __STDC__ not defined
52: # -DASMV Use asm version match.S
53: # -DMSDOS MSDOS specific
54: # -DOS2 OS/2 specific
55: # -DVAXC Vax/VMS with Vax C compiler
56: # -DVMS Vax/VMS with gcc
57: # -DDEBUG Debug code
58: # -DDYN_ALLOC Use dynamic allocation of large data structures
59: # -DMAXSEG_64K Maximum array size is 64K (for 16 bit system)
60: # -DRECORD_IO read() and write() are rounded to record sizes.
61: # -DNO_STDIN_FSTAT fstat() is not available on stdin
62: # -DNO_SIZE_CHECK stat() does not give a reliable file size
63:
64: DESTDIR=/bin386/usr/bin/
65:
66: DEFS = -D_POSIX_1_SOURCE=2 -D_MINIX=1 \
67: -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -DVOID_CLOSEDIR=1 \
68: -DNO_UTIME -DHAVE_SYSUTIME_H
69: LIBS =
70: ALLOCA =
71:
72: # additional assembly sources for particular systems may be required.
73: #OBJA = match.o
74: OBJA =
75:
76: SEDCMD =
77:
78: CFLAGS = -DNO_ASM
79: # If you want debug on by default, define: CFLAGS=-g
80: LDFLAGS = $(CFLAGS)
81:
82: X=
83: # For OS/2 or MSDOS, use: X=.exe
84:
85: O=.o
86: # For OS/2 or MSDOS, use: O=.obj
87:
88: prefix = /usr
89: exec_prefix = ${prefix}
90:
91: bindir = $(exec_prefix)/bin
92: datadir = $(prefix)/lib
93: libdir = $(prefix)/lib
94: infodir = $(prefix)/info
95:
96: # Extension (not including `.') for the installed manual page filenames.
97: # If you change it to a value other than 1, you should also update
98: # zcat.1 and gunzip.1.
99: manext = 1
100: # Where to install the manual pages.
101: mandir = $(prefix)/man/man$(manext)
102:
103: #### End of system configuration section. ####
104:
105: SHELL = /bin/sh
106:
107: LOADLIBES = $(LIBS)
108:
109: TAR = tar
110:
111: SRCS = gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c crypt.c\
112: lzw.c unlzw.c unpack.c getopt.c alloca.c match.S makecrc.c zread.c
113:
114: OBJS = gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O util$O \
115: crypt$O lzw$O unlzw$O unpack$O getopt$O $(OBJA) $(ALLOCA)
116:
117: HDRS = gzip.h lzw.h tailor.h revision.h crypt.h getopt.h
118:
119: GENFILES = README NEWS INSTALL Makefile.in configure.in configure COPYING \
120: TODO THANKS ChangeLog $(SRCS) $(HDRS) zcmp.in zmore.in znew.in zdiff.in \
121: zforce.in gzexe.in gzip.1 gunzip.1 zcat.1 zcmp.1 zmore.1 znew.1 gzexe.1 \
122: zforce.1 gzip.doc algorithm.doc gzip.texi texinfo.tex gpl.texinfo gzip.info \
123: gzip-tar.patch
124:
125: msdosFILES = msdos/tailor.c msdos/match.asm msdos/gzip.prj msdos/doturboc.bat \
126: msdos/Makefile.msc msdos/Makefile.bor msdos/Makefile.djg
127:
128: os2FILES = os2/Makefile.os2
129:
130: vmsFILES = vms/Makefile.vms vms/makegzip.com vms/gzip.hlp
131:
132: amigaFILES = amiga/Makefile.sasc amiga/Makefile.gcc amiga/tailor.c \
133: amiga/utime.h
134:
135: atariFILES = atari/Makefile.st
136:
137: DISTFILES = $(GENFILES) $(msdosFILES) $(os2FILES) $(vmsFILES) $(amigaFILES) \
138: $(atariFILES)
139:
140: .c$O:
141: $(CC) -c $(DEFS) $(CFLAGS) $(CPPFLAGS) $<
142:
143: #.PHONY: default all force test check
144:
145: default: all
146: all: gzip$X zcmp zdiff zmore znew zforce gzexe
147: cp gzip $(DESTDIR)
148: chmog 511 bin bin $(DESTDIR)gzip
149: ln -f $(DESTDIR)gzip $(DESTDIR)gunzip
150: ln -f $(DESTDIR)gzip $(DESTDIR)unpack
151:
152: force:
153:
154: #### Start of specific targets section. ####
155: #
156: # 'configure' works only on Unix systems. For other systems able to make
157: # sense of this makefile, you can define target specific entries here.
158: # For other systems such as MSDOS, separate Makefiles are
159: # provided in subdirectories.
160:
161: # gcc with emx 0.8f kit:
162: os2_gcc:
163: $(MAKE) all CC=gcc CFLAGS="-O -DOS2" X=".exe"
164:
165: # Xenix 2.3.2 for 286:
166: xenix_286:
167: $(MAKE) all CFLAGS="-LARGE -M2l"
168:
169: # Coherent (with broken /bin/sh):
170: coherent:
171: $(MAKE) all OBJA=match.o DEFS=\
172: "-DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1"
173: cp gzip $(DESTDIR)
174: chmog 511 bin bin $(DESTDIR)gzip
175: ln $(DESTDIR)gzip $(DESTDIR)gunzip
176:
177: #### End of specific targets section. ####
178:
179: install: all gzip.info
180: for f in gzip$X zcmp zdiff zmore znew zforce gzexe; do \
181: $(INSTALL_PROGRAM) $${f} $(bindir)/$${f}; done
182: for f in gunzip$X zcat$X ; do \
183: rm -f $(bindir)/$${f}; ln $(bindir)/gzip$X $(bindir)/$${f}; done
184: -cd $(srcdir); \
185: for f in gzip gunzip zcat zcmp zmore znew zforce gzexe; do \
186: rm -f $(mandir)/$${f}.$(manext); \
187: $(INSTALL_DATA) $${f}.1 $(mandir)/$${f}.$(manext); done
188: -cd $(srcdir); for f in gzip.info* ; do $(INSTALL_DATA) $${f} \
189: $(infodir)/$${f}; done
190:
191: uninstall: force
192: -cd $(bindir); rm -f gzip$X gunzip$X zcat$X \
193: zcmp zdiff zmore znew zforce gzexe
194: -for f in gzip gunzip zcat zcmp zmore znew gzexe; do \
195: rm -f $(mandir)/$${f}.$(manext); done
196: -cd $(infodir); rm -f gzip.info*
197:
198: # install all files and replace compress (not recommended)
199: install_compress: install
200: -test -f $(bindir)/compress.old || \
201: mv $(bindir)/compress$X $(bindir)/compress.old
202: ln $(bindir)/gzip$X $(bindir)/compress$X
203: rm -f $(bindir)/uncompress$X
204: ln $(bindir)/gzip$X $(bindir)/uncompress$X
205:
206: test: check
207: check: all
208: ./gzip -5 < $(srcdir)/texinfo.tex > _gztest.z
209: @if test `wc -c < _gztest.z` -eq 30890; then \
210: true; \
211: else \
212: echo FAILED gzip test: incorrect size; \
213: fi
214: rm -f _gztest
215: ./gzip -d _gztest.z
216: @if cmp _gztest $(srcdir)/texinfo.tex; then \
217: echo gzip test OK; \
218: else \
219: echo FAILED gzip test: incorrect decompress; \
220: fi
221: rm -f _gztest*
222:
223: TAGS: $(SRCS) $(HDRS)
224: cd $(srcdir); etags $(SRCS) $(HDRS)
225:
226: Makefile: Makefile.in ./config.status
227: ./config.status
228:
229: ./config.status: configure
230: $(srcdir)/configure --srcdir=$(srcdir) --no-create
231:
232: configure: configure.in
233: @echo Warning: configure is out of date
234: # cd $(srcdir); autoconf
235:
236: clean:
237: rm -f *$O gzip$X gunzip$X zcat$X a.out core
238: rm -f zcmp zdiff zmore znew zforce gzexe _gztest*
239: rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
240: rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
241:
242: mostlyclean: clean
243:
244: distclean: clean
245: rm -f Makefile config.status
246:
247: realclean: distclean
248: rm -f TAGS gzip.info*
249:
250: dist: $(DISTFILES) Makefile
251: d=gzip-`sed -e '/VERSION/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
252: -e q revision.h` ; \
253: rm -rf $$d; \
254: mkdir $$d; chmod 777 $$d; ln $(GENFILES) $$d; \
255: mkdir $$d/msdos; chmod 777 $$d/msdos; ln $(msdosFILES) $$d/msdos; \
256: mkdir $$d/os2; chmod 777 $$d/os2; ln $(os2FILES) $$d/os2; \
257: mkdir $$d/vms; chmod 777 $$d/vms; ln $(vmsFILES) $$d/vms; \
258: mkdir $$d/amiga; chmod 777 $$d/amiga; ln $(amigaFILES) $$d/amiga; \
259: mkdir $$d/atari; chmod 777 $$d/atari; ln $(atariFILES) $$d/atari; \
260: $(TAR) chofz $$d.tar.z $$d ; \
261: rm -rf $$d
262:
263: zipdist: $(DISTFILES) Makefile
264: zip -u9T gzip`sed -e '/VERSION/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
265: -e s/[.]//g -e q revision.h` $(DISTFILES)
266:
267: # Actual build-related targets
268:
269: gzip$X: Makefile $(OBJS)
270: $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
271:
272: gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
273: util$O lzw$O unlzw$O unpack$O crypt$O: gzip.h tailor.h
274:
275: gzip$O unlzw$O: revision.h lzw.h
276:
277: bits$O unzip$O util$O zip$O: crypt.h
278:
279: gzip$O getopt$O: getopt.h
280:
281: match$O: match.S
282: $(CPP) $(srcdir)/match.S > _match.s
283: $(CC) -c _match.s
284: mv _match$O match$O
285: rm -f _match.s
286:
287: zcmp: zcmp.in
288: sed "$(SEDCMD)" $(srcdir)/zcmp.in > zcmp
289: chmod 755 zcmp
290:
291: zdiff: zdiff.in
292: sed "$(SEDCMD)" $(srcdir)/zdiff.in > zdiff
293: chmod 755 zdiff
294:
295: zmore: zmore.in
296: sed "$(SEDCMD)" $(srcdir)/zmore.in > zmore
297: chmod 755 zmore
298:
299: znew: znew.in
300: sed "$(SEDCMD)" $(srcdir)/znew.in > znew
301: chmod 755 znew
302:
303: zforce: zforce.in
304: sed "$(SEDCMD)" $(srcdir)/zforce.in > zforce
305: chmod 755 zforce
306:
307: gzexe: gzexe.in
308: sed "$(SEDCMD)" $(srcdir)/gzexe.in > gzexe
309: chmod 755 gzexe
310:
311: gzip.info: gzip.texi
312: cd $(srcdir); makeinfo gzip.texi
313:
314: gzip.dvi: gzip.texi
315: cd $(srcdir); texi2dvi gzip.texi
316:
317: gzip.doc: gzip.1
318: cd $(srcdir); nroff -man gzip.1 | col -b | uniq > gzip.doc
319:
320: # Prevent GNU make v3 from overflowing arg limit on SysV.
321: .NOEXPORT:
322:
323: # end of file
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.