?? makefile
字號:
$(RM) fileio_.cglobals_$O: globals.c $(UNZIP_H) # unzipsfx only -$(CP) globals.c globals_.c $(CC) -c $(CF) -DSFX globals_.c $(RM) globals_.cinflate_$O: inflate.c inflate.h $(UNZIP_H) crypt.h # unzipsfx only -$(CP) inflate.c inflate_.c $(CC) -c $(CF) -DSFX inflate_.c $(RM) inflate_.cmatch_$O: match.c $(UNZIP_H) # unzipsfx only -$(CP) match.c match_.c $(CC) -c $(CF) -DSFX match_.c $(RM) match_.cprocess_$O: process.c $(UNZIP_H) # unzipsfx only -$(CP) process.c process_.c $(CC) -c $(CF) -DSFX process_.c $(RM) process_.cttyio_$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only -$(CP) ttyio.c ttyio_.c $(CC) -c $(CF) -DSFX ttyio_.c $(RM) ttyio_.ccryptf$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only -$(CP) crypt.c cryptf.c $(CC) -c $(CF) -DFUNZIP cryptf.c $(RM) cryptf.cglobalsf$O: globals.c $(UNZIP_H) # funzip only -$(CP) globals.c globalsf.c $(CC) -c $(CF) -DFUNZIP globalsf.c $(RM) globalsf.cinflatef$O: inflate.c inflate.h $(UNZIP_H) crypt.h # funzip only -$(CP) inflate.c inflatef.c $(CC) -c $(CF) -DFUNZIP inflatef.c $(RM) inflatef.cttyiof$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only -$(CP) ttyio.c ttyiof.c $(CC) -c $(CF) -DFUNZIP ttyiof.c $(RM) ttyiof.c# optional assembler replacementscrc_i86$O: msdos/crc_i86.asm # 16bit only $(AS) $(AF) msdos/crc_i86.asm $(ASEOL)crc_gcc$O: crc_i386.S # 32bit, GNU AS $(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.Scrc_gcc.pic.o: crc_i386.S # 32bit, GNU AS $(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.Scrc_sysv$O: crc_i386.S # 32bit, SysV AS $(CC) -E $(AF) crc_i386.S >crc_i386.s $(AS) -o $@ crc_i386.s $(RM) crc_i386.smsdos$O: msdos/msdos.c $(UNZIP_H) unzvers.h # DOS only $(CC) -c $(CF) msdos/msdos.cmsdos_$O: msdos/msdos.c $(UNZIP_H) # DOS unzipsfx -$(CP) msdos/msdos.c msdos_.c > nul $(CC) -c $(CF) -DSFX msdos_.c $(RM) msdos_.c#os2$O: os2/os2.c $(UNZIP_H) # OS/2 only# $(CC) -c $(CF) os2/os2.cunix$O: unix/unix.c $(UNZIP_H) unzvers.h # Unix only $(CC) -c $(CF) unix/unix.cunix_$O: unix/unix.c $(UNZIP_H) # Unix unzipsfx -$(CP) unix/unix.c unix_.c $(CC) -c $(CF) -DSFX unix_.c $(RM) unix_.cunix.pic.o: unix/unix.c $(UNZIP_H) unzvers.h # Unix shlib $(CC) -c $(CF) -o $@ unix/unix.cunix_make:# @echo\# '(Ignore any errors from `make'"' due to the following command; it's harmless.)" -@2>&1 $(LN) unix/Makefile . > /dev/null || echo > /dev/null# this really only works for Unix targets, unless E and O specified on cmd lineclean: @echo "" @echo ' This is a Unix-specific target. (Just so you know.)' @echo "" rm -f $(UNZIPS) $(OBJS) $(OBJF) $(OBJX) api$O apihelp$O crc_gcc$O \ crc_sysv$O unzipstb$O crypt_.c extract_.c globals_.c inflate_.c \ ttyio_.c crc_i386.s msdos_.c process_.c unix_.c unzipsfx.c rm -rf ./$(PKGDIR)# Package generation interface (by J.Bush). Originally tested under Sun# Solaris 2.x. 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/Packaging#svr4package: unzips @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 " "install: $(MANS) -$(INSTALL_D) $(BINDIR) $(INSTALL_PROGRAM) $(UNZIPS) $(BINDIR) $(INSTALL) unix/zipgrep $(BINDIR) $(RM) $(BINDIR)/zipinfo$E $(LN) $(BINDIR)/unzip$E $(BINDIR)/zipinfo$E -$(INSTALL_D) $(MANDIR) $(INSTALL) man/funzip.1 $(MANDIR)/funzip.$(manext) $(INSTALL) man/unzip.1 $(MANDIR)/unzip.$(manext) $(INSTALL) man/unzipsfx.1 $(MANDIR)/unzipsfx.$(manext) $(INSTALL) man/zipgrep.1 $(MANDIR)/zipgrep.$(manext) $(INSTALL) man/zipinfo.1 $(MANDIR)/zipinfo.$(manext) $(CHMOD) $(BINPERMS) $(INSTALLEDBIN) $(CHMOD) $(MANPERMS) $(INSTALLEDMAN)uninstall: $(RM) $(INSTALLEDBIN) $(INSTALLEDMAN)# the test zipfileTESTZIP = testmake.zip# test some basic features of the buildtest: checkcheck: @echo '##### This is a Unix-specific target. (Just so you know.)' @echo '##### Make sure unzip, funzip and unzipsfx are compiled and' @echo '##### in this directory.' @if test ! -f ./unzip; then \ echo "##### ERROR: can't find ./unzip"; exit 1; fi @if test ! -f ./funzip; then \ echo "##### ERROR: can't find ./funzip"; exit 1; fi @if test ! -f ./unzipsfx; then \ echo "##### ERROR: can't find ./unzipsfx"; exit 1; fi# @if test ! -f $(TESTZIP); then \ echo "##### ERROR: can't find test file $(TESTZIP)"; exit 1; fi# @echo "##### testing extraction" @./unzip -bo $(TESTZIP) testmake.zipinfo @if test ! -f testmake.zipinfo ; then \ echo "##### ERROR: file extraction from $(TESTZIP) failed"; \ exit 1; fi# @echo '##### testing zipinfo (unzip -Z)' @./unzip -Z $(TESTZIP) > testmake.unzip-Z @if diff testmake.unzip-Z testmake.zipinfo; then echo "OK."; else \ echo "##### WARNING: zipinfo output doesn't match stored version"; \ echo '##### (If the only difference is the file times, compare your'; \ echo '##### timezone with the Central European timezone, which is one'; \ echo '##### hour east of Greenwich but effectively 2 hours east'; \ echo '##### during summer Daylight Savings Time. The upper two'; \ echo '##### lines should correspond to your local time when the'; \ echo '##### files were created, on 19 November 1998 at 10:46pm CET.'; \ echo '##### If the times are consistent, please ignore this warning.)'; \ fi @$(RM) testmake.unzip-Z testmake.zipinfo# @echo '##### testing unzip -d exdir option' @./unzip -bo $(TESTZIP) -d testun notes @cat testun/notes# @echo '##### testing unzip -o and funzip (ignore funzip warning)' @./unzip -boq $(TESTZIP) notes -d testun @./funzip < $(TESTZIP) > testun/notes2 @if diff testun/notes testun/notes2; then true; else \ echo '##### ERROR: funzip output disagrees with unzip'; fi# @echo '##### testing unzipsfx (self-extractor)' @cat unzipsfx $(TESTZIP) > testsfx @$(CHMOD) 0700 testsfx @./testsfx -bo notes @if diff notes testun/notes; then true; else \ echo '##### ERROR: unzipsfx file disagrees with unzip'; fi @$(RM) testsfx notes testun/notes testun/notes2 @rmdir testun# @echo '##### testing complete.'################################# INDIVIDUAL MACHINE MAKERULES ##################################----------------------------------------------------------------------------# Generic targets (can't assume make utility groks "$(MAKE)")#----------------------------------------------------------------------------generic: unzips # first try if unknowngeneric2: unix_make # second try if unknown: hope make is called "make" make -f unix/Makefile unzips CF="$(CF) -DBSD"generic3: unix_make # third try if unknown: hope make is called "make" make -f unix/Makefile unzips CF="$(CF) -DSYSV"# Generic unzip and funzip target using either shared or static zlib for# inflate rather than the original UnZip version. (libz was libgz prior# to 0.94) Need to figure out how to force unzipsfx to use static libz.generic_zlib: unix_make @echo\ "This target assumes zlib (libz.a or libz.so.*) is already installed." $(MAKE) unzip funzip CF="$(CF) -DUSE_ZLIB" LF2="-lz $(LF2)"# Generic GNU C shared library. This is an example of how to compile UnZip as# a shared library. (Doing so as a static library would be similar.) See also# the linux_shlib target.generic_shlib: unix_make @echo\ 'This target requires GNU C. When done, do "setenv LD_LIBRARY_PATH `pwd`"' @echo\ 'or similar in order to test the shared library in place (with ./unzip_shlib ,' @echo\ 'which is UnZip linked with the DLL). This target is an example only.' @echo "" $(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL $(LOC)" gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.4 $(OBJSDLL) $(RM) libunzip.so.0 libunzip.so $(LN) -s libunzip.so.0.4 libunzip.so.0 $(LN) -s libunzip.so.0 libunzip.so gcc -c -O unzipstb.c gcc -o unzip_shlib unzipstb.o -L. -lunzip#----------------------------------------------------------------------------# "Normal" group (BSD vs. SysV may be set in unzip.h via predefined macros):#----------------------------------------------------------------------------386i: unzips # sun386i, SunOS 4.0.2#3Bx: unzips # AT&T 3B2/1000-80; should work on any WE32XXX machine#aix_rt: unzips # IBM RT 6150 under AIX 2.2.1bull: unzips # Bull DPX/2, BOS 2.00.45 (doesn't require -Xk switch)convex: unzips # Convex C-120 and C-210 (-O is enough; -ext is default)cray: unzips # Cray-2 and Y-MP, using default (possibly old) compilerdec: unzips # DEC 5820 (MIPS RISC), test version of Ultrix v4.0encore: unzips # Multimaxeta: unzips # ETA-10P*, hybrid SysV with BSD 4.3 enhancementsgould: unzips # Gould PN9000 running UTX/32 2.1Bu01hp: unzips # HP 9000 series (68020), 4.3BSD or HP-UX A.B3.10 Ver Dhpux: unzips # (to match zip's makefile entry)mips: unzips # MIPS M120-5(?), SysV.3 [error in sys/param.h file?]next10: unzips # NeXT (generic; use next2x or next3x for better opt.)osf1: unzips # DECstation, including Alpha-based; DEC OSF/1 v1.xpyr_: unzips # [failsafe target for pyramid target below]pyr_ucb: unzips # Pyramids running BSD universe by default (see below)realix: unzips # Modcomp Real/IX (SysV.3); note "gcc" = GLS C, not GNUsco: unzips # Xenix/386 (tested on 2.3.1); SCO Unix 3.2.0.sgi: unzips # Silicon Graphics; Irix 3.3.2, 4.0.x, 5.2, etc.stellar: unzips # gs-2000sun: unzips # old target; no good with solaris...use "sunos" nowsunos: unzips # no good with SunOS 3.x...use "sunos3" or "sunos4" nowsunos4: unzips # Sun 3, 4; SunOS 4.x (SOME SYSTEMS ARE SYSTEM V!)tahoe: unzips # tahoe (CCI Power6/32), 4.3BSDultrix: unzips # VAXen, DEC 58x0 (MIPS guts), DECstation 2100; v4.xvax: unzips # general-purpose VAX target (not counting VMS)#----------------------------------------------------------------------------# BSD group (for timezone structs [struct timeb]):#----------------------------------------------------------------------------bsd: _bsd # generic BSD (BSD 4.2 & Ultrix handled in unzip.h)_bsd: unix_make $(MAKE) unzips CF="$(CF) -DBSD"#----------------------------------------------------------------------------# SysV group (for extern long timezone and ioctl.h instead of sgtty.h):#----------------------------------------------------------------------------aix_rt: _sysv # IBM RT 6150 under AIX 2.2.1aviion: _sysv # Data General AViiONs, DG/UX 4.3xpyr_att: _sysv # Pyramids running AT&T (SysV) universe by defaultsolaris: _sysv # Sun SPARC & x86, Solaris 2.xsolaris_pkg: _sysvp # Sun SPARC & x86, Solaris 2.x; make package when donestardent: _sysv # Stardent ...sysv: _sysv # generic System V Unix (Xenix handled in unzip.h)xos: _sysv # Olivetti LSX-3005..3045, X/OS 2.3 and 2.4_sysv: unix_make $(MAKE) unzips CF="$(CF) -DSYSV"# extension to perform SVR4 package-creation after compilation_sysvp: _sysv svr4package#----------------------------------------------------------------------------# Version 7 group (old/obsolescent):#----------------------------------------------------------------------------pixel: _v7 # Pixel 80, 100 (68000-based, V7/mostly BSD4.1 compat.)v7: _v7 # generic Unix Version 7 box (prob. only Pixel...)_v7: make -f unix/Makefile unzips \ CF="$(CF) -DV7 -DNO_PARAM_H -DSHORT_NAMES -DBSD -DZMEM"#----------------------------------------------------------------------------# "Unique" group (require non-standard options):#----------------------------------------------------------------------------# AT&T 3B2/1000-80; should work on any WE32XXX machine3Bx: unix_make $(MAKE) unzips CF="$(CF) -DCBREAK=2"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -