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

📄 makefile

📁 infozip2.2源码
💻
字号:
# Makefile for Zip, ZipNote, ZipCloak and ZipSplit# what you can make ...all:	@echo ''	@echo 'Make what?  You must say what system to make Zip for--e.g.'	@echo '"make generic".  Choices: generic, generic_gcc,'	@echo 'att6300nodir, coherent, cray_v3, minix, qnx, solaris, solaris_gcc'	@echo 'See the files INSTALL and zip.txt for more information.'	@echo ''list:   allMAKE = make -f unix/MakefileSHELL = /bin/shLN = ln -s# (to use the Gnu compiler, change cc to gcc in CC)CC = ccBIND = $(CC)AS = $(CC) -cE =CPP = /lib/cpp# probably can change this to 'install' if you have itINSTALL = cp# probably can change this to 'install -d' if you have itINSTALL_D = mkdir -p# target directories - where to install executables and man pages toprefix = /usr/localBINDIR = $(prefix)/binmanext=1MANDIR = $(prefix)/man/man$(manext)ZIPMANUAL = MANUALPKGDIR = IZzipVERSION = Version 2.2# flags#   CFLAGS    flags for C compile#   LFLAGS1   flags after output file spec, before obj file list#   LFLAGS2   flags after obj file list (libraries, etc)CFLAGS = -O -I. -DUNIX $(LOCAL_ZIP)LFLAGS1 =LFLAGS2 = -s# object file listsOBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o crypt.o ttyio.o \       unix.o crc32.o crctab.oOBJI = deflate.o trees.o bits.oOBJA =OBJU = zipfile_.o fileio_.o util_.o globals.o unix_.oOBJN = zipnote.o  $(OBJU)OBJC = zipcloak.o $(OBJU) crctab.o crypt_.o ttyio.oOBJS = zipsplit.o $(OBJU)ZIP_H = zip.h ziperr.h tailor.h unix/osdep.h# suffix rules.SUFFIXES:.SUFFIXES: _.o .o .c .doc .1.c_.o:	rm -f $*_.c; $(LN) $< $*_.c	$(CC) -c $(CFLAGS) -DUTIL $*_.c	rm -f $*_.c.c.o:	$(CC) -c $(CFLAGS) $<.1.doc:	nroff -man $< | col -b | uniq > $@# rules for zip, zipnote, zipcloak, zipsplit, and the Zip MANUAL.$(OBJZ): $(ZIP_H)$(OBJI): $(ZIP_H)$(OBJN): $(ZIP_H)$(OBJS): $(ZIP_H)$(OBJC): $(ZIP_H)zip.o zipup.o crypt.o ttyio.o bits.o zipcloak.o crypt_.o: crypt.hzip.o zipup.o zipnote.o zipcloak.o zipsplit.o: revision.hzip.o crypt.o ttyio.o zipcloak.o crypt_.o: ttyio.hzipup.o: unix/zipup.hmatch.o: match.S	$(CPP) match.S > _match.s	$(AS) _match.s	mv _match.o match.o	rm -f _match.scrc_i386.o: crc_i386.S	$(CPP) crc_i386.S > crc_i386.s	$(AS) crc_i386.s	rm -f crc_i386.sunix.o: unix/unix.c	$(CC) -c $(CFLAGS) unix/unix.cunix_.o: unix/unix.c	rm -f unix_.c; $(LN) unix/unix.c unix_.c	$(CC) -c $(CFLAGS) -DUTIL unix_.c	rm -f unix_.cZIPS = zip$E zipnote$E zipsplit$E zipcloak$Ezips: $(ZIPS)zipsman: $(ZIPS) $(ZIPMANUAL)zip$E: $(OBJZ) $(OBJI) $(OBJA)	$(BIND) -o zip$E $(LFLAGS1) $(OBJZ) $(OBJI) $(OBJA) $(LFLAGS2)zipnote$E: $(OBJN)	$(BIND) -o zipnote$E $(LFLAGS1) $(OBJN) $(LFLAGS2)zipcloak$E: $(OBJC)	$(BIND) -o zipcloak$E $(LFLAGS1) $(OBJC) $(LFLAGS2)zipsplit$E: $(OBJS)	$(BIND) -o zipsplit$E $(LFLAGS1) $(OBJS) $(LFLAGS2)$(ZIPMANUAL): man/zip.1	nroff -man man/zip.1 | col -b | uniq > $(ZIPMANUAL)# installinstall:        $(ZIPS)	-$(INSTALL_D) $(BINDIR)	$(INSTALL) $(ZIPS) $(BINDIR)	-$(INSTALL_D) $(MANDIR)	$(INSTALL) man/zip.1 $(MANDIR)/zip.$(manext)uninstall:	-cd $(BINDIR); rm -f $(ZIPS)	-cd $(MANDIR); rm -f zip.$(manext)flags:  unix/configure	sh unix/configure "${CC}" "${CFLAGS}"# These symbols, when #defined using -D have these effects on compilation:# ZMEM                  - includes C language versions of memset(), memcpy(),#                         and memcmp() (util.c).# HAVE_DIRENT_H         - use <dirent.h> instead of <sys/dir.h># NODIR                 - for 3B1, which has neither getdents() nor opendir().# HAVE_NDIR_H           - use <ndir.h> (unix/unix.c).# HAVE_SYS_DIR_H        - use <sys/dir.h># HAVE_SYS_NDIR_H       - use <sys/ndir.h># UTIL                  - select routines for utilities (note, cloak, split)# NO_RMDIR              - remove directories using a system("rmdir ...") call.# NO_PROTO              - cannot handle ANSI prototypes# NO_CONST              - cannot handle ANSI const#               Generic targets:generic: flags	eval $(MAKE) zips `cat flags`generic_gcc:	$(MAKE) generic CC=gcc CPP="gcc -E"# AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):att6300nodir:	$(MAKE) zips LFLAGS1="-Ml -s" \	CFLAGS="-DUNIX -I. -O -Ml -DNO_RMDIR -DDYN_ALLOC -DMEDIUM_MEM \-DWSIZE=16384 -DNO_STDLIB_H -DNO_STDDEF_H -DNO_RENAME \-DNO_MKTIME -DNO_SIZE_T -DNO_VOID -DNO_PROTO -DNO_DIR \-DNO_CONST -DHAVE_TERMIO_H" \	"LFLAGS2="# Coherent (AS definition not needed for gcc)coherent:	$(MAKE) zips CFLAGS="-DUNIX -I. -O -DDIRENT -DASMV" AS="as -gx" \                     OBJA=match.o# Cray Unicos 6.1, Standard C compiler 3.0 (all routines except trees.c# may be compiled with vector3; internal compiler bug in 3.0.2.3 and# earlier requires vector2 for trees.c)cray_v3:	$(MAKE) zips CC="scc" \                CFLAGS="-DUNIX -I. -O -h vector2 -h scalar3 -DHAVE_DIRENT_H"# MINIX 1.5.10 with Bruce Evans 386 patches and gcc/GNU makeminix:	$(MAKE) zips CFLAGS="-DUNIX -I. -O -DDIRENT -DMINIX" CC=gcc	chmem =262144 zip# QNX is "special" because out /bin/sh is ksh and it doesn't grok the# configure script properly, generating a bad flags file.  D'oh! [cjh]qnx:	$(MAKE) zips CC=cc CFLAGS="-DUNIX -I. -O -DHAVE_DIRENT_H \-DHAVE_TERMIOS_H -DNO_MKTEMP"# Solaris:  Generic, plus generation of installable package.solaris:	generic svr4package# Solaris with GCC: generic_gcc, plus generation of installable packagesolaris_gcc:	generic_gcc svr4package# Package generation interface (by JBush). Originally tested under Sun Solaris.# Other SVr4s may be very similar, and could possibly use this.# Note:  Expects version info to be stored in VERSION macro variable.# See "README" under ./unix/Packagingsvr4package:	@echo "Creating SVR4 package for Unix ..."	-@rm -rf ./$(PKGDIR) ./$(PKGDIR)_`uname -p`.pkg	-@sed -e "s/.VERSION./$(VERSION)/g" \	      -e "s/.PSTAMP./$(LOGNAME)_`date | tr  ' ' '_'`/g" \	      -e "s/.ARCH./Solaris_`uname -rp | tr ' ' ','`/g" \	      ./unix/Packaging/pkginfo.in > ./unix/Packaging/pkginfo	-@sed -e "s/.ARCH./`uname -p`/g" \	      ./unix/Packaging/preinstall.in > ./unix/Packaging/preinstall	/usr/bin/pkgmk -d . -b . -r . -f ./unix/Packaging/prototype $(PKGDIR)	/usr/bin/pkgtrans -o -s . $(PKGDIR)_`uname -p`.pkg $(PKGDIR)	@echo " "	@echo "To install, copy $(PKGDIR)_`uname -p`.pkg to the target system, and"	@echo "issue the command (as root):  pkgadd -d $(PKGDIR)_`uname -p`.pkg"	@echo " "# make a distributiondist:	$(ZIPMANUAL)	eval zip -r9 zip`sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*/\1/' \			  -e 's/[.]//g' -e 's/ .*//g' -e q revision.h` *# clean up after making stuff and installing itclean:	rm -f *.o $(ZIPS) flags	rm -rf $(PKGDIR)

⌨️ 快捷键说明

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