📄 makefile.bc
字号:
# Makefile for UnZip(SFX) and fUnZip for Borland C++ 2.x/3.0 and Turbo C++ 1.0# Version: 5.12 and later Alvin Koh, Jim Knoble, Christian Spieler, etc.## Last revised: 11 Aug 94# for Borland C++ uncomment this and comment out the tcc line:CC = bcc# for Turbo C++ uncomment this and comment out the bcc line:#CC = tcc#TASM = tasm # not used#UNMODEL = s # small model for UnZip and ZipInfo, now that strings movedUNMODEL = l # large model for UnZip (M. Lawler/BC 4.0: _text > 64K w/ "s")FUMODEL = s # always use small model for fUnZip# GNU make doesn't like the return value from "rem"#STRIP=remSTRIP=echo Ignore this line. # If you don't have LZEXE or PKLITE, get one of them. Then define:#STRIP=lzexe# or#STRIP=pklite# This makes a big difference in .exe size (and possibly load time).# Optional nonstandard preprocessor flags (as -DCHECK_EOF or -DDOS_WILD)# should be added to the environment via "set LOCAL_UNZIP=-DFOO" or added# to the declaration of LOC here:LOC = $(LOCAL_UNZIP)# compiler flagsCFLAGS = -O -ff- -k- -P-.C -I. $(LOC)UNFLAGS = -m$(UNMODEL) $(CFLAGS)FUFLAGS = -m$(FUMODEL) $(CFLAGS) -K -dLDFLAGS = -lxncd -l-P # for bcc#LDFLAGS = -lxncd # for tcc# implicit rules.c.obj: $(CC) -c $(UNFLAGS) {$< }# list macrosunzip_dependencies = \ unzip.obj \ crypt.obj \ envargs.obj \ explode.obj \ extract.obj \ file_io.obj \ inflate.obj \ match.obj \ unreduce.obj \ unshrink.obj \ zipinfo.obj \ msdos.objfunzip_dependencies = \ funzip.obj \ crypt_.obj \ inflate_.objunzipsfx_dependencies = \ unzip_.obj \ crypt.obj \ extract_.obj \ file_io.obj \ inflate.obj \ match.obj \ msdos_.obj# explicit rulesall: unzip.exe funzip.exe unzipsfx.exeunzip.exe: $(unzip_dependencies) $(CC) -m$(UNMODEL) $(LDFLAGS) -eunzip.exe @&&|unzip.objcrypt.objenvargs.objexplode.objextract.objfile_io.objinflate.objmatch.objunreduce.objunshrink.objzipinfo.objmsdos.obj| $(STRIP) unzip.exefunzip.exe: $(funzip_dependencies) $(CC) -m$(FUMODEL) $(LDFLAGS) -efunzip.exe @&&|funzip.objcrypt_.objinflate_.obj| $(STRIP) funzip.exeunzipsfx.exe: $(unzipsfx_dependencies) $(CC) -m$(UNMODEL) $(LDFLAGS) -eunzipsfx.exe @&&|unzip_.objcrypt.objextract_.objfile_io.objinflate.objmatch.objmsdos_.obj| $(STRIP) unzipsfx.exe# individual file dependenciescrypt.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.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.hmsdos.obj: msdos/msdos.c unzip.h $(CC) -c $(UNFLAGS) msdos/msdos.cfunzip.obj: funzip.c unzip.h crypt.h tables.h $(CC) -c $(FUFLAGS) funzip.ccrypt_.obj: crypt.c unzip.h zip.h crypt.h $(CC) -c $(FUFLAGS) -DFUNZIP -ocrypt_.obj crypt.cinflate_.obj: inflate.c inflate.h unzip.h crypt.h $(CC) -c $(FUFLAGS) -DFUNZIP -oinflate_.obj inflate.cunzip_.obj: unzip.c unzip.h crypt.h version.h $(CC) -c $(UNFLAGS) -DSFX -ounzip_.obj unzip.cextract_.obj: extract.c unzip.h crypt.h $(CC) -c $(UNFLAGS) -DSFX -oextract_.obj extract.cmsdos_.obj: msdos/msdos.c unzip.h $(CC) -c $(UNFLAGS) -DSFX -omsdos_.obj msdos/msdos.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -