?? makefile
字號:
# AT&T 7300 (M68000/SysV.3) (add -DSYSV? -DNO_LIMITS?)7300: unix_make $(MAKE) unzips CF="$(CF) -DNO_DIR -DNO_MKDIR -DNO_STRNICMP -DNO_UID_GID -DCBREAK=2"7300_gcc: unix_make $(MAKE) unzips CC=gcc LD=gcc LF2="" \ CF="-O2 -I. -DNO_DIR -DNO_MKDIR -DNO_STDLIB_H -DNO_STRNICMP -DNO_UID_GID -DCBREAK=2 $(LOC)" $(STRIP) $(UNZIPS)# IBM AIX 3.x on an RS/6000: see rs6000 target belowaix: rs6000# Amdahl (IBMish) mainframe, UTS (SysV) 1.2.4, 2.0.1, 3.xamdahl: unix_make $(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID"# Amdahl UTS 2.1.4 with "extended file types" filesystem (aarrrggghhhh...)amdahl_eft: unix_make $(MAKE) unzips CF="$(CF) -eft -DSYSV -DNO_UID_GID"# Apollo Domain/OS machines (added -D...SOURCE options) [Gordon Fox, 960810]apollo: unix_make $(MAKE) unzips CF="$(CF) -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE"# BSDI BSD/OS on 386 platform, using the assembler replacement for crc32.cbsdi: unix_make @echo 'NOTE: use bsdi_noasm target for non-Intel BSD/OS compiles.' $(MAKE) unzips CC=gcc2 LD=shlicc2 AS=gcc2\ CF="-O3 -Wall -I. -DASM_CRC -DBSD $(LOC)" CRC32=crc_gcc# BSDI BSD/OSbsdi_noasm: unix_make# @echo 'NOTE: use bsd target for non-Intel BSD/OS compiles.' $(MAKE) unzips CC=gcc2 LD=shlicc2 AS=gcc2\ CF="-O3 -Wall -I. -DBSD $(LOC)"# Coherent 3.x/4.x, Mark Williams C. ``For Coherent's CC, it needs either# -T0 or -T150000 (or bigger) added to the CFLAGS, otherwise the compiler# runs out of memory and dies in zipinfo.c.'' [Fred "Fredex" Smith, 940719]coherent: unix_make $(MAKE) unzips CF="$(CF) -T0"# Cray-2, Y-MP or C90, running Unicos 5.x to 8.x (SysV + BSD enhancements)# and Standard (ANSI) C compiler 3.0 or later.cray_opt: unix_make $(MAKE) unzips CF="$(CF) -h scalar3 -h vector3"# The unzip41 build on a Cyber 910/SGI running Irix v3.3.3 was successful# with the following change to Makefile:cyber_sgi: unix_make $(MAKE) unzips CF="$(CF) -I/usr/include/bsd"\ LF="-lbsd $(LF)" SL="-lbsd $(SL)"# 680x0, DIAB dnix 5.2/5.3 (a Swedish System V clone)## Options for the dnix cc:# -X7 = cc is strict ANSI C# -X9 = warnings if a function is used without a declaration#dnix: unix_make $(MAKE) unzips CF="$(CF) -X7 -X9 -DDNIX"# FreeBSD on Intel:freebsd: unix_make @echo 'NOTE: use bsd target for non-Intel FreeBSD compiles (if any).' $(MAKE) unzips CC=gcc LD=gcc AS=gcc\ CF="-O3 -Wall -I. -DASM_CRC -DBSD $(LOC)"\ AF="-Di386 $(AF)" CRC32=crc_gcc# Generic BSDish Unix gcc. ``The -O3 only works with later versions of gcc;# you may have to use -O2 or -O for earlier versions. I have no idea why# -s causes this bug in gcc.'' [Bug: "nm: unzip: no name list", "collect:# /usr/bin/nm returned 1 exit status".] If you don't have strip, don't# worry about it (it just makes the executable smaller and can be replaced# with "echo" instead).#gcc: unix_make $(MAKE) unzips CC=gcc LD=gcc CF="-O3 -I. $(LOC)" LF2="" $(STRIP) $(UNZIPS)# Heurikon HK68 (68010), UniPlus+ System V 5.0, Green Hills C-68000hk68: unix_make $(MAKE) unzips CC="gcc" LD="gcc"\ LF="-n $(LF)" SL="-n $(SL)" FL="-n $(FL)"\ CF="-ga -X138 -I. $(LOC) -Dlocaltime=localti -Dtimezone=timezon"# ISC Unix on 386 platformisc: unix_make $(MAKE) unzips LF2="-lc_s $(LF2)" CRC32=crc_sysv \ CF="-O -I. -DASM_CRC -DSYSV -DNO_UID_GID -DNEED_PTEM $(LOC)" \ AF="-DNO_UNDERLINE -Djecxz=jcxz -DALIGNMENT='.align 16' $(AF)"isc_gcc: unix_make $(MAKE) unzips AS=gcc CC=gcc LD=gcc CRC32=crc_gcc LF="-shlib $(LF)" \ SL="-shlib $(SL)" FL="-shlib $(FL)" \ LF2="" CF="-O3 -I. -DSYSV -DASM_CRC -DNO_UID_GID -DNEED_PTEM $(LOC)" \ AF="-DNO_UNDERLINE -Djecxz=jcxz -DALIGNMENT='.align 16' $(AF)" $(STRIP) $(UNZIPS)# "ISI machine (68025 CPU)" (based on e-mail from Rob White <rsw@tfs.com>;# no further information). May also need DIRENT defined.isi: unix_make $(MAKE) unzips CF="$(CF) -DDECLARE_ERRNO"# Linux on 386 platform, using the assembler replacement for crc32.c. (-O4 and# -fno-strength-reduce have virtually no effect beyond -O3. Add "-m486# -malign-functions=2 -malign-jumps=2 -malign-loops=2" for Pentium [Pro]# systems.)linux: unix_make @echo 'NOTE: use linux_noasm target for non-Intel Linux compiles.' $(MAKE) unzips CC=gcc LD=gcc AS=gcc\ CF="-O3 -Wall -I. -DASM_CRC $(LOC)"\ AF="-Di386 $(AF)" CRC32=crc_gcc# GRR: this echo is pointless; if user gets this far, no difference to install# @echo 'Be sure to use the install_asm target rather than the install target'linux_asm: linux# Linux (Posix, approximately SysV): virtually any version since before 0.96,# for any platform. Change "-O" to "-O3" or whatever, as desired...linux_noasm: unix_make $(MAKE) unzips CC=gcc LD=gcc CF="-O -Wall -I. $(LOC)"# Linux with lcc compiler: __inline__ (stat.h) not recognized, and must edit# /usr/include/gnu/types.h to get rid of "long long" if __LCC__ defined. -O3# (or -O2 or -O) is ignored. [GRR 960828: test target only]#linux_lcc: unix_make $(MAKE) unzips CC=lcc LD=lcc CF="-O3 -Wall -I. -D__inline__= $(LOC)"# Linux host with go32 (djgpp) cross-compiler (go32crs.tgz) for 32-bit DOS.linux_dos: unix_make $(MAKE) unzips CC=go32gcc LD=go32gcc M=msdos CF="-O2 -Wall -I. $(LOC)"# go32-strip unzip# Due to limitations of the cross-compiling package, this has to be# done manually: @echo Copy $(UNZIPS) to your DOS partition and use coff2exe.# Linux ELF shared library (ooo, it's so easy). This is a test target for# now, and it only makes the UnZip/ZipInfo stuff (not fUnZip or UnZipSFX).# The version number may eventually change to match the UnZip version. Or# not. Whatever. Also do "setenv LD_LIBRARY_PATH `pwd`" or similar to test# the DLL in place (with unzip_shlib, which is UnZip linked with the shared# library).#linux_shlib: unix_make# $(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL $(LOC)" $(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL -DASM_CRC $(LOC)"\ AS=gcc AF="-fPIC -Di386 $(AF)" CRC32=crc_gcc ln -sf crc_gcc.pic.o crc32.pic.o gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.4 $(OBJSDLL) ln -sf libunzip.so.0.4 libunzip.so.0 ln -sf libunzip.so.0 libunzip.so gcc -c -O unzipstb.c gcc -o unzip_shlib unzipstb.o -L. -lunzip# Linux ELF shared library, as above, but using inflate() from zlib (libz.so)# instead of the original UnZip version. (libz was libgz prior to 0.94)linux_shlibz: unix_make# $(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL -DUSE_ZLIB $(LOC)" $(MAKE) objsdll CC=gcc AS=gcc AF="-fPIC -Di386 $(AF)" CRC32=crc_gcc\ CF="-O3 -Wall -I. -fPIC -DDLL -DUSE_ZLIB -DASM_CRC $(LOC)" ln -sf crc_gcc.pic.o crc32.pic.o gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.4 $(OBJSDLL) ln -sf libunzip.so.0.4 libunzip.so.0 gcc -c -O unzipstb.c gcc -o unzip unzipstb.o -L. -lunzip -lz# LynxOS-x86 2.3.0 and newer, a real-time BSD-like OS; uses gcc.lynx: unix_make $(MAKE) unzips CC=gcc CF="$(CF) -DLynx -DLYNX -DBSD -DUNIX"# Macintosh MacOS X (Unix-compatible enviroment), using standard compilermacosx: unix_make $(MAKE) unzips CF="-O3 -Wall -I. -DBSD -DUNIX $(LOC)" LF2="" $(STRIP) $(UNZIPS)# Macintosh MacOS X (Unix-compatible enviroment), using gccmacosx_gcc: unix_make $(MAKE) unzips CC=gcc CF="-O3 -Wall -I. -DBSD -DUNIX $(LOC)" LF2="" $(STRIP) $(UNZIPS)# Minix 1.5 PC for the 386. Invoke as is to use default cc, or as "make# minix CC=gcc" to use gcc. Try "make linux" if you have a working termios.h.minix: unix_make $(MAKE) unzips CF="$(CF) -DMINIX -DSHORT_NAMES" CC=$(CC) LD=$(CC)# MPE/iX, the Unix variant for HP 3000 systems.mpeix: unix_make $(MAKE) unzips CC=c89\ CF="$(CF) -DUNIX -D_POSIX_SOURCE -DHAVE_TERMIOS_H -DPASSWD_FROM_STDIN -DNO_PARAM_H"\ LF2=-lbsd CP=cp LN="ln -s"# NeXT info.next: @echo @echo\ ' Please pick a specific NeXT target: "make next10" will create a generic' @echo\ ' NeXT executable; "make next2x" will create a smaller executable (for' @echo\ ' NeXTstep 2.0 and higher); "make next3x" will create a small executable' @echo\ ' with significantly better optimization (NeXTstep 3.0 and higher only);' @echo\ ' "make nextfat" will create a fat, multi-architecture (NeXT plus Intel)' @echo\ ' executable (NeXTstep 3.1 and higher only).' @echo# 68030 BSD 4.3+Mach. NeXT 2.x: make the executable smaller.next2x: unix_make $(MAKE) unzips LF2="-object -s"# NeXT 3.x: as above, plus better optimization.next3x: unix_make $(MAKE) unzips CF="-O2 -I. $(LOC)" LF2="-object -s"# NeXT 3.1+: make the executable fat (multi-architecture binary [MAB],# for "black" [NeXT] and "white" [x86] hardware, so far).nextfat: unix_make $(MAKE) unzips CF="-O2 -I. $(LOC) -arch i386 -arch m68k" \ LF2="-arch i386 -arch m68k -object -s"# IBM OS/390 (formerly MVS) compiled under "OpenEdition" shellos390: unix_make set -x; \ $(MAKE) -f unix/Makefile unzips \ CC=c89 LD="\$$(CC) -Wl,EDIT=NO" \ CF="$(CF) -DSYSV -DUNIX -DOS390 -DEBCDIC -DNO_PARAM_H \ -D_ALL_SOURCE $(HOST_VERSINFO)" LF2=""# Sequent Symmetry running Dynix/ptx (sort of SysV.3): needs to link# with libseq to get symlink().ptx: unix_make $(MAKE) unzips CF="$(CF) -DSYSV -DTERMIO -DPTX" LF2="$(LF2) -lseq"# Pyramid 90X (probably all) under >= OSx4.1, either universe. (This is an# experimental target! If it fails, use either pyr_ucb or pyr_att instead.)# The make in the BSD half is too stupid to understand $(MAKE), sigh...pyramid: unix_make -make -f unix/Makefile pyr_`universe`# QNX/Neutrino is "special" because you don't have any native development# tools yet. Set ARCH to "x86", "ppcbe", "ppcle", "mipsbe", or "mipsle"# to produce x86, PowerPC (big- or little-endian) and MIPS (big-# or little-endian) using gcc. [cjh]qnxnto: unix_make @if [ "$(ARCH)" = "" ] ; then \ echo "You didn't set ARCH; I'll assume you meant ARCH=x86..." ; \ echo "" ; \ $(MAKE) -f unix/Makefile CC="qcc -Vgcc_ntox86" unzips ; \ else \ echo "Making unzip for $(ARCH)..." ; \ echo "" ; \ $(MAKE) -f unix/Makefile CC="qcc -Vgcc_nto$(ARCH)" unzips ; \ fi# REGULUS: 68040-based, "real-time" SysV.3 mutant; uses gcc, with "REGULUS"# predefined.regulus: unix_make $(MAKE) unzips CF="$(CF) -traditional -DSYSV -DNO_MKDIR"# IBM RS/6000 under AIX 3.2rs6000: unix_make $(MAKE) unzips CF="$(CF) -DBSD -D_BSD -DUNIX" LF2="-lbsd"# SCO cross compile from Unix to DOS. Tested with Xenix/386 and OpenDeskTop.# Should work with Xenix/286 as well. (davidsen) Note that you *must* remove# the Unix objects and executable before doing this! (Piet Plomp: gcc won't# recognize the -M0 flag that forces 8086 code.) (GRR: may need to reduce# stack to 0c00h if using 286/small-model code...?)sco_dos: unix_make $(MAKE) unzips CF="-O -I. $(LOC) -dos -M0" M=msdos \ LF="-dos -F 2000" LF2="-o unzip.exe" \ FL="-dos" FL2="-o funzip.exe" SL="-dos" SL2="-o unzipsfx.exe"# SCO UNIX with shared libraries and no international support. If you are# not using a USA-style keyboard and display, you may want to remove -nointl# to get support. It adds quite a bit to the size of the executable.sco_sl: unix_make $(MAKE) unzips LF="$(LF) -nointl" LF2="$(LF2) -lc_s"\ SL="$(SL) -nointl" FL="$(FL) -nointl"# SCO Xenix/286 2.2.3 or later with development system 2.2.1 or latersco_x286: unix_make $(MAKE) unzips CF="$(CF) -Mel2 -LARGE -DNO_MKDIR" \ LF="$(LF) -Mel2 -LARGE -lx" SL="$(SL) -Mel2 -LARGE" \ FL="$(FL) -Mel2 -LARGE"# Sequent Symmetry with Dynix. (386, but needs -DZMEM)# This should also work on Balance but I can't test it just yet.sequent: unix_make $(MAKE) unzips CF="$(CF) -DBSD -DZMEM"# Sun 2, 3, 4 running SunOS 3.xsunos3: unix_make $(MAKE) unzips CF="$(CF) -DNO_UID_GID -DUID_USHORT"# Generic System V + GNU Csysv_gcc: unix_make $(MAKE) unzips CC=gcc LD=gcc CF="-O2 -I. -DSYSV $(LOC)" LF2="" $(STRIP) $(UNZIPS)# AT&T 6300+, System V.2 Unix: run-time out-of-memory error if don't use -Ml;# also compile-time error if work arrays dimensioned at HSIZE+2 (>32K)sysv6300: unix_make $(MAKE) unzips CF="$(CF) -Ml -DSYSV" LF="$(LF) -Ml"\ SL="$(SL) -Ml" FL="$(FL) -Ml"# Texas Instruments System V.3 (running on HP 9000-1500)ti_sysv: unix_make $(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID -DUID_USHORT"# SCO Xenix (Joe Foster 950508: "unzip needs to be linked with -lx [for the# opendir(), readdir(), telldir(), rewinddir(), and closedir() calls]")xenix: unix_make $(MAKE) unzips LF2="$(LF2) -lx"# Wombat 68000 (or whatever).# I didn't do this. I swear. No, really.wombat: unix_make @echo @echo ' Ha ha! Just kidding.' @echo
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -