📄 makefile.bc
字号:
# Makefile for UnZip(SFX) and fUnZip for Borland C++ for Windows 95/NT# Version: 5.4 and later Alvin Koh, Jim Knoble, Christian Spieler, etc.# Adapted from the MS-DOS makefile by E-Yen Tan## Last revised: 24 Nov 98### 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)# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.CPU_TYP = 4# (De)Select inclusion of optimized assembler CRC32 routine:USE_ASMCRC = 0# If you have bcc32i, you should define:# CC = bcc32i# This compiler generates a faster code.CC = bcc32AS = tasm32!if $(USE_ASMCRC)ASMFLG = -DASM_CRCASMOBJS = crc_i386.obj!elseASMFLG =ASMOBJS =!endif!if $(UNCLEAN)DIRT = -DUSE_SMITH_CODE -DUSE_UNSHRINK!elseDIRT =!endif# compiler flagsASCPUFLAG = __$(CPU_TYP)86!if $(CPU_TYP) != 0CC_CPUFLG = -$(CPU_TYP)!endifASFLAGS = -ml -m2 -w0 -D$(ASCPUFLAG) $(LOC)CFLAGS = -O2 -w- $(CC_CPUFLG) -ff- -k- -P-.C -I. $(ASMFLG) $(LOC) $(DIRT)LDFLAGS = -lxncd -l-P # for bccUNFLAGS = $(CFLAGS)FUFLAGS = $(CFLAGS) -K -dSXFLAGS = $(CFLAGS)# implicit rules.asm.obj: $(AS) $(ASFLAGS) $<.c.obj: $(CC) -c $(UNFLAGS) {$< }# list macrosOBJU1 = unzip.obj crc32.obj crctab.obj crypt.obj envargs.obj explode.objOBJU2 = extract.obj fileio.obj globals.obj inflate.obj list.obj match.objOBJU3 = process.obj ttyio.obj unreduce.obj unshrink.obj zipinfo.objOBJUS = win32.obj nt.obj $(ASMOBJS)OBJU = $(OBJU1) $(OBJU2) $(OBJU3) $(OBJUS)OBJF = funzip.obj crc32.obj cryptf.obj globalsf.obj inflatef.obj \ ttyiof.obj win32f.obj $(ASMOBJS)OBJX1 = unzipsfx.obj crc32.obj crctab.obj crypt.obj extractx.obj fileio.objOBJX2 = globals.obj inflate.obj match.obj processx.obj ttyio.objOBJXS = win32x.obj ntx.obj $(ASMOBJS)OBJX = $(OBJX1) $(OBJX2) $(OBJXS)UNZIP_H = unzip.h unzpriv.h globals.h win32/w32cfg.h# explicit rulesall: unzip.exe funzip.exe unzipsfx.exeunzip.exe: $(OBJU) $(CC) $(LDFLAGS) -eunzip.exe @&&|$(OBJU)|funzip.exe: $(OBJF) $(CC) $(LDFLAGS) -efunzip.exe @&&|$(OBJF)|unzipsfx.exe: $(OBJX) $(CC) $(LDFLAGS) -eunzipsfx.exe @&&|$(OBJX)|clean: rem Ignore any errors in the following... -del *.obj -del unzip.exe -del funzip.exe -del unzipsfx.exe# individual file dependenciescrc32.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.hglobals.obj: globals.c $(UNZIP_H)inflate.obj: inflate.c inflate.h $(UNZIP_H)list.obj: list.c $(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)crc_i386.obj: win32/crc_i386.asm $(AS) $(ASFLAGS) win32\crc_i386.asm, $*.obj ;win32.obj: win32/win32.c $(UNZIP_H) $(CC) -c $(UNFLAGS) win32/win32.cnt.obj: win32/nt.c $(UNZIP_H) $(CC) -c $(UNFLAGS) win32/nt.cfunzip.obj: funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h $(CC) -c $(FUFLAGS) funzip.ccryptf.obj: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h $(CC) -c $(FUFLAGS) -DFUNZIP -ocryptf.obj crypt.cglobalsf.obj: globals.c $(UNZIP_H) $(CC) -c $(FUFLAGS) -DFUNZIP -oglobalsf.obj globals.cinflatef.obj: inflate.c inflate.h $(UNZIP_H) crypt.h $(CC) -c $(FUFLAGS) -DFUNZIP -oinflatef.obj inflate.cttyiof.obj: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h $(CC) -c $(FUFLAGS) -DFUNZIP -ottyiof.obj ttyio.cwin32f.obj: win32/win32.c $(UNZIP_H) $(CC) -c $(FUFLAGS) -DFUNZIP -owin32f.obj win32/win32.cunzipsfx.obj: unzip.c $(UNZIP_H) crypt.h version.h consts.h $(CC) -c $(SXFLAGS) -DSFX -ounzipsfx.obj unzip.cextractx.obj: extract.c $(UNZIP_H) crypt.h $(CC) -c $(SXFLAGS) -DSFX -oextractx.obj extract.cprocessx.obj: process.c $(UNZIP_H) $(CC) -c $(SXFLAGS) -DSFX -oprocessx.obj process.cwin32x.obj: win32/win32.c $(UNZIP_H) $(CC) -c $(SXFLAGS) -DSFX -owin32x.obj win32/win32.cntx.obj: win32/nt.c $(UNZIP_H) $(CC) -c $(SXFLAGS) -DSFX -ontx.obj win32/nt.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -