📄 makefile.wat
字号:
#------------------------------------------------------------------------------# Makefile for UnZip 5.3 and later Mark Wright and others# Version: Watcom C 6 Feb 97#------------------------------------------------------------------------------# WARNING: this is a hacked-up version of an ancient (1993) makefile. It will# not work without modifications to the UnZip 5.3 sources. This makefile is# (for now) included only for completeness and as a starting point for a real# Novell Netware NLM port. (This makefile was intended for Netware 3.11.)# Commands to execute before making any target# Set environment variables for compiler.BEFORE @set inc386=\watcom\novh @set wcg386=\watcom\binp\wcl386.exe# Macro definitionsNLMNAME = unzipDESCRIPTION = unzip utilityVERSION = 0.50COPYRIGHT = Copyright 1990-1997 Info-ZIP (Zip-Bugs@lists.wku.edu).SCREENNAME = Info-ZIP's UnZip UtilityCLIBIMP = \watcom\novi\clib.impOBJFILE = $NLMNAME.objPRELUDE = \watcom\novi\prelude.obj# Compile switches# d2 include full symbolic debugging information# 3s generate 386 instructions, use stack-based argument-passing conventions# zdp allows DS register to "peg" it to DGROUP# zq "quiet" mode# NLM produce Novell Loadable Module# DEBUG include debug info# COMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLMCOMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLM $(LOCAL_UNZIP)LINK = wlinkDESTDIR = target# All .obj files implicitly depend on .c files.c.obj : @echo Compiling $[*.c @$COMPILE $[*.cUNZIP_H = unzip.h unzpriv.h globals.h os2\os2cfg.hcrc32.obj: crc32.c $(UNZIP_H) zip.hcrctab.obj: crctab.c $(UNZIP_H) zip.hcrypt.obj: crypt.c $(UNZIP_H) crypt.h ttyio.h zip.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) crypt.h ttyio.h zip.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)# individual dependencies and action rules:#crc_i86.obj: msdos\crc_i86.asm# $(AS) $(ASFLAGS) -D$(ASUNMODEL) msdos\crc_i86.asm, $@;os2.obj: os2\os2.c $(UNZIP_H) $(CC) -c -A$(UNMODEL) $(CFLAGS) os2\os2.cOBJ01 = unzip.objOBJ02 = crc32.objOBJ03 = crctab.objOBJ04 = crypt.objOBJ05 = envargs.objOBJ06 = explode.objOBJ07 = extract.objOBJ08 = fileio.objOBJ09 = globals.objOBJ10 = inflate.objOBJ11 = list.objOBJ12 = match.objOBJ13 = process.objOBJ14 = ttyio.objOBJ15 = unreduce.objOBJ16 = unshrink.objOBJ17 = zipinfo.objOBJ18 = os2.obj#OBJ19 = $(ASMOBJS)OBJS = $OBJFILE $OBJ01 $OBJ02 $OBJ03 $OBJ04 $OBJ05 $OBJ06 $OBJ07 $OBJ08 \ $OBJ09 $OBJ10 $OBJ11 $OBJ12 $OBJ13 $OBJ14 $OBJ15 $OBJ16 $OBJ17 \ $OBJ18# if .obj or .lnk files are modified, link new .nlm and maybe copy to DESTDIR$NLMNAME.nlm : $OBJS @echo Linking... @$LINK @$NLMNAME# @echo Copying $[*.nlm to $DESTDIR# @copy $NLMNAME.nlm $DESTDIR# if makefile is modified, create new linker option file$NLMNAME.lnk : $NLMNAME.mak @echo FORMAT NOVELL NLM '$DESCRIPTION' >$NLMNAME.lnk @echo OPTION THREADNAME '$NLMNAME' >>$NLMNAME.lnk @echo OPTION SCREENNAME '$SCREENNAME' >>$NLMNAME.lnk @echo NAME $NLMNAME >>$NLMNAME.lnk @echo OPTION VERSION=$VERSION >>$NLMNAME.lnk @echo OPTION COPYRIGHT '$COPYRIGHT' >>$NLMNAME.lnk @echo DEBUG NOVELL >>$NLMNAME.lnk @echo DEBUG ALL >>$NLMNAME.lnk @echo OPTION NODEFAULTLIBS >>$NLMNAME.lnk @echo OPTION DOSSEG >>$NLMNAME.lnk @echo OPTION STACK=40000 >>$NLMNAME.lnk @echo OPTION CASEEXACT >>$NLMNAME.lnk @echo OPTION PSEUDOPREEMPTION >>$NLMNAME.lnk @echo OPTION MAP >>$NLMNAME.lnk @echo FILE $PRELUDE >>$NLMNAME.lnk @echo FILE $OBJFILE >>$NLMNAME.lnk @echo FILE $OBJ01 >>$NLMNAME.lnk @echo FILE $OBJ02 >>$NLMNAME.lnk @echo FILE $OBJ03 >>$NLMNAME.lnk @echo FILE $OBJ04 >>$NLMNAME.lnk @echo FILE $OBJ05 >>$NLMNAME.lnk @echo FILE $OBJ06 >>$NLMNAME.lnk @echo FILE $OBJ07 >>$NLMNAME.lnk @echo FILE $OBJ08 >>$NLMNAME.lnk @echo FILE $OBJ09 >>$NLMNAME.lnk @echo FILE $OBJ10 >>$NLMNAME.lnk @echo FILE $OBJ11 >>$NLMNAME.lnk @echo FILE $OBJ12 >>$NLMNAME.lnk @echo FILE $OBJ13 >>$NLMNAME.lnk @echo FILE $OBJ14 >>$NLMNAME.lnk @echo FILE $OBJ15 >>$NLMNAME.lnk @echo FILE $OBJ16 >>$NLMNAME.lnk @echo FILE $OBJ17 >>$NLMNAME.lnk @echo FILE $OBJ18 >>$NLMNAME.lnk @echo MODULE clib >>$NLMNAME.lnk @echo IMPORT @$CLIBIMP >>$NLMNAME.lnk
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -