⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.msc

📁 minix3的源代码
💻 MSC
字号:
# Makefile for zlib# Microsoft C 5.1 or later# Last updated: 19-Mar-2003# To use, do "make makefile.msc"# To compile in small model, set below: MODEL=S# If you wish to reduce the memory requirements (default 256K for big# objects plus a few K), you can add to the LOC macro below:#   -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14# See zconf.h for details about the memory requirements.# ------------- Microsoft C 5.1 and later -------------#    Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)#    should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added#    to the declaration of LOC here:LOC = $(LOCAL_ZLIB)# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.CPU_TYP = 0# Memory model: one of S, M, C, L (small, medium, compact, large)MODEL=LCC=clCFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC)#-Ox generates bad code with MSC 5.1LIB_CFLAGS=-Zl $(CFLAGS)LD=linkLDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode# "/farcall/packcode" are only useful for `large code' memory models# but should be a "no-op" for small code models.# variablesZLIB_LIB = zlib_$(MODEL).libOBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.objOBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj# targetsall:  $(ZLIB_LIB) example.exe minigzip.exe.c.obj:	$(CC) -c $(LIB_CFLAGS) $*.cadler32.obj: adler32.c zlib.h zconf.hcompress.obj: compress.c zlib.h zconf.hcrc32.obj: crc32.c zlib.h zconf.h crc32.hdeflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.hgzio.obj: gzio.c zutil.h zlib.h zconf.hinfback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ inffast.h inffixed.hinffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ inffast.hinflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ inffast.h inffixed.hinftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.htrees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.huncompr.obj: uncompr.c zlib.h zconf.hzutil.obj: zutil.c zutil.h zlib.h zconf.hexample.obj: example.c zlib.h zconf.h	$(CC) -c $(CFLAGS) $*.cminigzip.obj: minigzip.c zlib.h zconf.h	$(CC) -c $(CFLAGS) $*.c# the command line is cut to fit in the MS-DOS 128 byte limit:$(ZLIB_LIB): $(OBJ1) $(OBJ2)	if exist $(ZLIB_LIB) del $(ZLIB_LIB)	lib $(ZLIB_LIB) $(OBJ1);	lib $(ZLIB_LIB) $(OBJ2);example.exe: example.obj $(ZLIB_LIB)	$(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB);minigzip.exe: minigzip.obj $(ZLIB_LIB)	$(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB);test: example.exe minigzip.exe	example	echo hello world | minigzip | minigzip -dclean:	-del *.obj	-del *.lib	-del *.exe	-del *.map	-del zlib_*.bak	-del foo.gz

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -