📄 makefile.vc
字号:
# This file is part of the FreeType project.## It builds the library for Microsoft Visual C++ 1.x for MS-DOS, large model.# It also works for Microsoft C/C++ v.7.0 (with a minor edit), but not for# previous versions (use Makefile.MS instead).## Tested with Microsoft C/C++ v.7.0, Visual C++ v.1.5.## You will need NMAKE.## Use this file while in the lib directory with the following statement:## nmake /f arch\msdos\Makefile.VC### A debug version can be obtained with## nmake DEBUG=1 /f arch\msdos\Makefile.VC## A special version enabled to handle big fonts (with more than 16,384# glyphs) can be obtained with## nmake BIGFONTS=1 /f arch\msdos\Makefile.VC### Copyright 1996-2001 by# David Turner, Robert Wilhelm, and Werner Lemberg.## This file is part of the FreeType project, and may only be used, modified,# and distributed under the terms of the FreeType project license,# LICENSE.TXT. By continuing to use, modify, or distribute this file you# indicate that you have read the license and understand and accept it# fully.ARCH = arch\msdosFT_MAKEFILE = $(ARCH)\Makefile.VCCC = cl /nologoLIB = lib /noignorecase /nologo# One can also consider using "set MSC_CMD_FLAGS=/Gr /Op- /Gy /YX".# With Microsoft C/C++ 7.0, use /G2 instead of /G3.!ifndef DEBUGCFLAGS = $(CFLAGS) /Ox /AL /W2 /G3 /I$(ARCH) /I. /Iextend!elseCFLAGS = $(CFLAGS) /Zi /Ge /AL /W2 /G3 /I$(ARCH) /I. /Iextend!endif!ifndef BIGFONTSCFLAGS = $(CFLAGS) /ZaTTFILE = .\ttfile.cTTMEMORY = .\ttmemory.c!elseCFLAGS = $(CFLAGS) /DTT_HUGE_PTR=__huge /ZeTTFILE = $(ARCH)\hugefile.cTTMEMORY = $(ARCH)\hugemem.c!endifTTMUTEX = .\ttmutex.cPORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)# Do not insert spaces between the file names or at end of line, otherwise# the substitution for LIB command line will fail. Thank you.#SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c extend\ftxsbit.c\extend\ftxopen.c extend\ftxgsub.c extend\ftxgpos.c extend\ftxgdef.cOBJS_X = $(SRC_X:.c=.obj)SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c\ttgload.c ttinterp.c ttload.c ttobjs.c ttraster.c ttextend.c $(PORT)OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)SRC_S = $(ARCH)\freetype.cOBJ_S = $(SRC_S:.c=.obj)OBJS_S = $(OBJ_S) $(OBJS_X)# Since Microsoft's NMAKE does not handle $($(LIB_FILES)), and using# LIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat# by constructing LIB's response file directly in the `all' target.## Another solution, useful during debugging of part of the library,# would be to include each .obj in the library as soon as it is compiled.# It is commented out below. See Makefile.TC for an application..c.obj: @$(CC) /c /Fo$@ @<< $(CFLAGS) $*.c<<# $(LIB) libttf +-$*.obj!ifndef DEBUG# Skipped if DEBUG buildall: $(OBJS_S) -del libttf.lib $(LIB) libttf.lib @<<response+ $(OBJS_S: = + );<<KEEP!endifdebug: $(OBJS_M) -del libttf.lib $(LIB) libttf.lib @<<response+ $(OBJS_M: = + );<<KEEP$(OBJ_S): $(SRC_S) $(SRC_M)# Not used here because it excesses the capacity of COMMAND.COM...libttf.lib: $(LIB_FILES) $(LIB) $@ +-$(?: =-+);clean: -del *.obj -del extend\*.obj -del $(ARCH)\*.obj -del responsedistclean: clean -del libttf.lib!include "$(ARCH)\depend.dos"# end of Makefile.VC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -