⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.djg

📁 linux下压缩工具:gzip-1.2.4
💻 DJG
字号:
# Makefile for gzip (GNU zip)    -*- Indented-Text -*-# Copyright (C) 1992-1993 Jean-loup Gailly and the Free Software Foundation# Modified for GNUish make/MS_SH200/DJGPP 1.09+ by Eric Backus# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.# $Id: Makefile.djg,v 1.3 1993/06/22 15:43:24 jloup Exp $#### Start of system configuration section. ####.SUFFIXES: .oLONGARGS = gcc:rmsrcdir = .VPATH = .CC = gccCPP = gcc -O -EINSTALL = install -cINSTALL_PROGRAM = $(INSTALL)INSTALL_DATA = $(INSTALL) -m 644# tailor.h defines things for DJGPP so nothing is needed hereDEFS =LIBS =# additional assembly sources for particular systems may be required.OBJA = match.oSEDCMD = 1dCFLAGS = -O2 -finline-functions -fomit-frame-pointerLDFLAGS = -sX=.exe# For OS/2 or MSDOS, use: X=.exeO=.o# For OS/2 or MSDOS, use: O=.objprefix = /usr/localexec_prefix = $(prefix)bindir = $(exec_prefix)/bindatadir = $(prefix)/liblibdir = $(prefix)/libinfodir = $(prefix)/info# Extension (not including `.') for the installed manual page filenames.manext = 1# Where to install the manual pages.mandir = $(prefix)/man/man$(manext)#### End of system configuration section. ####SHELL = /bin/shLOADLIBES = $(LIBS)TAR = tarSRCS = gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c crypt.c\       lzw.c unlzw.c unpack.c unlzh.c makecrc.c getopt.c match.SOBJ1 = gzip$(O) zip$(O) deflate$(O) trees$(O) bits$(O) unzip$(O) inflate$(O) \       util$(O)OBJ2 = crypt$(O) lzw$(O) unlzw$(O) unpack$(O) unlzh$(O) getopt$(O) $(OBJA)HDRS = gzip.h lzw.h tailor.h revision.h crypt.h getopt.h.c$O:	$(CC) -c $(DEFS) $(CFLAGS) $<#.PHONY: default all force test checkdefault:  allall:	gzip$X zcmp zdiff zmore znew zforce gzexeforce:install: all	for f in gzip$X zcmp zdiff zmore znew zforce gzexe; do \	  $(INSTALL_PROGRAM) $${f} $(bindir)/$${f}; done	for f in gunzip$X zcat$X ; do \	  rm -f $(bindir)/$${f}; ln $(bindir)/gzip$X $(bindir)/$${f}; done	-cd $(srcdir); \	  for f in gzip gunzip zcat zcmp zmore znew zforce gzexe; do \	  rm -f $(mandir)/$${f}.$(manext); \	  $(INSTALL_DATA) $${f}.1 $(mandir)/$${f}.$(manext); done	-cd $(srcdir); for f in gzip.info* ; do $(INSTALL_DATA) $${f} \	  $(infodir)/$${f}; doneuninstall: force	-cd $(bindir); rm -f gzip$X gunzip$X zcat$X \	  zcmp zdiff zmore znew zforce gzexe	-for f in gzip gunzip zcat zcmp zmore znew gzexe; do \	  rm -f $(mandir)/$${f}.$(manext); done	-cd $(infodir); rm -f gzip.info*# install all files and replace compress (not recommended)install_compress: install	-test -f $(bindir)/compress.old || \	  mv $(bindir)/compress$X $(bindir)/compress.old	ln $(bindir)/gzip$X $(bindir)/compress$X	rm -f $(bindir)/uncompress$X	ln $(bindir)/gzip$X $(bindir)/uncompress$Xtest: checkcheck:	all	./gzip -5 < $(srcdir)/texinfo.tex > _gztest.z	# Either GNUish make or MS_SH has trouble with backquotes	#@if test `wc -c < _gztest.z` -ne 30890; then \	#   echo FAILED gzip test: incorrect size; rm -f _gztest*; exit 1; \	#   else :; fi	@echo Should be 30890:\\c	@wc -c < _gztest.z	rm -f _gztest	./gzip -d _gztest.z	@if cmp _gztest $(srcdir)/texinfo.tex; then \	   echo gzip test OK; \	else \	   echo FAILED gzip test: incorrect decompress; \	fi	rm -f _gztest*TAGS: $(SRCS) $(HDRS)	cd $(srcdir); etags $(SRCS) $(HDRS)Makefile: Makefile.in ./config.status	./config.status./config.status: configure	$(srcdir)/configure --srcdir=$(srcdir) --no-createconfigure: configure.in	@echo Warning: configure is out of date#	cd $(srcdir); autoconfclean:	rm -f *$O gzip$X gunzip$X zcat$X a.out core gzip	rm -f zcmp zdiff zmore znew zforce gzexe _gztest*	rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log	rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrsmostlyclean: cleandistclean: clean	rm -f Makefile config.statusrealclean: distclean	rm -f TAGS gzip.info*# Actual build-related targetsgzip$X:	gzip	aout2exe gzipgzip:	$(OBJ1) $(OBJ2)        echo $(OBJ1) > gzip.rsp        echo $(OBJ2) $(LIBS) >> gzip.rsp	$(CC) $(LDFLAGS) -o $@ @gzip.rsp	del gzip.rspgzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.hutil$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.hgzip$O unlzw$O: revision.h lzw.hbits$O unzip$O util$O zip$O: crypt.hgzip$O getopt$O: getopt.hmatch$O: match.S	$(CC) -c match.Szcmp: zcmp.in	sed "$(SEDCMD)" $(srcdir)/zcmp.in > zcmp	chmod 755 zcmpzdiff: zdiff.in	sed "$(SEDCMD)" $(srcdir)/zdiff.in > zdiff	chmod 755 zdiffzmore: zmore.in	sed "$(SEDCMD)" $(srcdir)/zmore.in > zmore	chmod 755 zmoreznew: znew.in	sed "$(SEDCMD)" $(srcdir)/znew.in > znew	chmod 755 znewzforce: zforce.in	sed "$(SEDCMD)" $(srcdir)/zforce.in > zforce	chmod 755 zforcegzexe: gzexe.in	sed "$(SEDCMD)" $(srcdir)/gzexe.in > gzexe	chmod 755 gzexegzip.info: gzip.texi	cd $(srcdir); makeinfo gzip.texigzip.dvi: gzip.texi	cd $(srcdir); texi2dvi gzip.texigzip.doc: gzip.1	cd $(srcdir); nroff -man gzip.1 | col -b | uniq > gzip.doc# Prevent GNU make v3 from overflowing arg limit on SysV..NOEXPORT:# end of file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -