📄 makefile
字号:
# NMAKE Makefile for Windows NT# D. Feinleib 7/92 t-davefe@microsoft.com# H. Gessau 9/93 <henryg@kullmar.kullmar.se>## Last revised: 10 Jul 94## Tested with NT SDK, VC++ 1.0 for NT, and DEC C/C++ beta.## For DEC C/C++, comment out the "cdebug = -Ogityb2" line (or # define debug?). [Jack Stansbury]# Nmake macros for building Windows NT applications# To build with debug info use 'nmake debug=1'!IFNDEF debugNODEBUG=1!ENDIF!include <ntwin32.mak># object filesOBJS1 = unzip.obj crypt.obj envargs.obj explode.obj extract.obj file_io.objOBJS2 = inflate.obj match.obj unreduce.obj unshrink.obj zipinfo.obj nt.objOBJS = $(OBJS1) $(OBJS2)OBJX1 = unzipsfx.obj crypt.obj extract_.obj file_io.obj inflate.obj match.objOBJX2 = nt_.objOBJX = $(OBJX1) $(OBJX2)OBJF = funzip.obj crypt_.obj inflate_.obj# cvars = $(cvars) -nologo -DMSDOS -DNO_ASM -Jcvars = $(cvars) -nologo -DNO_ASM -J# Some optimization (if not debugging)!IFDEF NODEBUGcdebug = -Ogityb2!ENDIF# How to compile sources.c.obj: $(cc) $(cdebug) $(cflags) $(cvars) $<# 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)crypt.obj: crypt.c unzip.h zip.h crypt.henvargs.obj: envargs.c unzip.hexplode.obj: explode.c unzip.hextract.obj: extract.c unzip.h crypt.hfile_io.obj: file_io.c unzip.h crypt.h tables.hfunzip.obj: funzip.c unzip.h crypt.h tables.hinflate.obj: inflate.c inflate.h unzip.hmatch.obj: match.c unzip.hunreduce.obj: unreduce.c unzip.hunshrink.obj: unshrink.c unzip.hunzip.obj: unzip.c unzip.h crypt.h version.hzipinfo.obj: zipinfo.c unzip.hnt.obj: nt\nt.c unzip.h $(cc) $(cdebug) $(cflags) $(cvars) -I. nt\nt.c nt_.obj: nt\nt.c unzip.h # unzipsfx only copy nt\nt.c nt_.c $(cc) $(cdebug) $(cflags) $(cvars) -DSFX nt_.c del nt_.c crypt_.obj: crypt.c unzip.h zip.h crypt.h # funzip only copy crypt.c crypt_.c $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP crypt_.c del crypt_.cextract_.obj: extract.c unzip.h crypt.h # unzipsfx only copy extract.c extract_.c $(cc) $(cdebug) $(cflags) $(cvars) -DSFX extract_.c del extract_.cinflate_.obj: inflate.c inflate.h unzip.h crypt.h # funzip only copy inflate.c inflate_.c $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP inflate_.c del inflate_.cunzipsfx.obj: unzip.c unzip.h crypt.h version.h # unzipsfx only copy unzip.c unzipsfx.c $(cc) $(cdebug) $(cflags) $(cvars) -DSFX unzipsfx.c del unzipsfx.c zipinfo_.obj: zipinfo.c unzip.h # unzipsfx only copy zipinfo.c zipinfo_.c $(cc) $(cdebug) $(cflags) $(cvars) -DSFX zipinfo_.c del zipinfo_.c clean: del /q $(OBJS) unzip.exe $(OBJF) funzip.exe $(OBJX) unzipsfx.exe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -