📄 makefile
字号:
# NMAKE Makefile for Windows NT/Windows 95# D. Feinleib 7/92 <t-davefe@microsoft.com># H. Gessau 9/93 <henryg@kullmar.kullmar.se># J. Lee 8/95 (johnnyl@microsoft.com)## Last revised: 24 Nov 98## Tested with VC++ 2.0 for NT for MIPS and Alpha, Visual C++ 2.2 for Intel CPUs## Nmake macros for building Windows NT applications# To build with debug info use 'nmake debug=1'!IFNDEF debugNODEBUG=1!ENDIF!IF "$(CPU)" == "" && "$(PROCESSOR_ARCHITECTURE)" == "x86"CPU = i386!ENDIF!IF "$(CPU)" == "" && "$(PROCESSOR_ARCHITECTURE)" == "MIPS"CPU = $(PROCESSOR_ARCHITECTURE)!ENDIF!IF "$(CPU)" == "" && "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"CPU = $(PROCESSOR_ARCHITECTURE)!ENDIF!IF "$(CPU)" == "" && "$(PROCESSOR_ARCHITECTURE)" == "PPC"CPU = $(PROCESSOR_ARCHITECTURE)!ENDIF!IF "$(CPU)" == ""CPU = i386!ENDIF!include <ntwin32.mak># object filesOBJS1 = unzip.obj $(CRC32).obj crctab.obj crypt.obj envargs.obj explode.objOBJS2 = extract.obj fileio.obj globals.obj inflate.obj list.obj match.objOBJS3 = process.obj ttyio.obj unreduce.obj unshrink.obj zipinfo.objOBJS4 = win32.obj nt.objOBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)OBJX1 = unzipsfx.obj $(CRC32X).obj crctab.obj crypt.obj extract_.obj fileio.objOBJX2 = globalsx.obj inflate.obj match.obj process_.obj ttyio.objOBJX3 = win32_.obj nt.objOBJX = $(OBJX1) $(OBJX2) $(OBJX3)OBJF1 = funzip.obj $(CRC32F).obj cryptf.obj globalsf.obj inflatef.obj ttyiof.objOBJF2 = win32f.objOBJF = $(OBJF1) $(OBJF2)UNZIP_H = unzip.h unzpriv.h globals.h win32/w32cfg.h#CF_LOC = -DMSDOS -DNO_ASM -J#CF_LOC = -nologo -DNO_ASM -J -DREENTRANTCF_LOC = -nologo -DNO_ASM -J#CF_LOC = -nologo -DASM_CRC -Jcvars = $(cvars) $(CF_LOC)CRC32 = crc32#CRC32 = crc_i386CRC32X = $(CRC32)CRC32F = $(CRC32)# USER32.LIB is needed for OemToChar and related routinesconlibs=$(conlibs) user32.lib# Some optimization (if not debugging)# [GRR 950816: Steve suggests changing optimization flags to -O2, except for# UnZipSFX (-01)]!IFDEF NODEBUG!IF "$(CPU)" == "i386"cdebug = -Ogityb2!ELSEcdebug = -Ogitb2!ENDIF!ENDIF# How to compile sources.c.obj: $(cc) $(cdebug) $(cflags) $(cvars) -o $@ $<# How to link.obj.exe: $(link) $(ldebug) $(conflags) $(conlibs) $** -out:$@# Default target is all the executablesunzips : unzip.exe funzip.exe unzipsfx.exeunzip.exe: $(OBJS)unzipsfx.exe: $(OBJX)funzip.exe: $(OBJF)crc32.obj: crc32.c $(UNZIP_H) zip.hcrctab.obj: crctab.c $(UNZIP_H) zip.hcrypt.obj: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.henvargs.obj: envargs.c $(UNZIP_H)explode.obj: explode.c $(UNZIP_H)extract.obj: extract.c $(UNZIP_H) crypt.hfileio.obj: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.hfunzip.obj: funzip.c $(UNZIP_H) crypt.h ttyio.h tables.hglobals.obj: globals.c $(UNZIP_H)inflate.obj: inflate.c inflate.h $(UNZIP_H)match.obj: match.c $(UNZIP_H)process.obj: process.c $(UNZIP_H)ttyio.obj: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.hunreduce.obj: unreduce.c $(UNZIP_H)unshrink.obj: unshrink.c $(UNZIP_H)unzip.obj: unzip.c $(UNZIP_H) crypt.h version.h consts.hzipinfo.obj: zipinfo.c $(UNZIP_H)win32.obj: win32\win32.c $(UNZIP_H) win32\nt.h $(cc) $(cdebug) $(cflags) $(cvars) -I. win32\win32.cnt.obj: win32\nt.c win32\nt.h $(cc) $(cdebug) $(cflags) $(cvars) -I. win32\nt.ccrc_i386.obj: win32/crc_i386.asm masm -ml win32/crc_i386.asm,$@;win32_.obj: win32\win32.c $(UNZIP_H) win32\nt.h # unzipsfx only $(cc) $(cdebug) $(cflags) $(cvars) -I. -DSFX win32\win32.c -Fo$@win32f.obj: win32\win32.c $(UNZIP_H) win32\nt.h # funzip only $(cc) $(cdebug) $(cflags) $(cvars) -I. -DFUNZIP win32\win32.c -Fo$@cryptf.obj: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP crypt.c -Fo$@extract_.obj: extract.c $(UNZIP_H) crypt.h # unzipsfx only $(cc) $(cdebug) $(cflags) $(cvars) -DSFX extract.c -Fo$@globalsx.obj: globals.c $(UNZIP_H) # unzipsfx only $(cc) $(cdebug) $(cflags) $(cvars) -DSFX globals.c -Fo$@globalsf.obj: globals.c $(UNZIP_H) # funzip only $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP globals.c -Fo$@inflatef.obj: inflate.c inflate.h $(UNZIP_H) crypt.h # funzip only $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP inflate.c -Fo$@process_.obj: process.c $(UNZIP_H) # unzipsfx only $(cc) $(cdebug) $(cflags) $(cvars) -DSFX process.c -Fo$@ttyiof.obj: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP ttyio.c -Fo$@unzipsfx.obj: unzip.c $(UNZIP_H) crypt.h version.h consts.h # unzipsfx only $(cc) $(cdebug) $(cflags) $(cvars) -DSFX unzip.c -Fo$@clean: del /q $(OBJS) unzip.exe $(OBJF) funzip.exe $(OBJX) unzipsfx.exe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -