📄 makefile.cl
字号:
# This file is part of the FreeType project.## It builds the library for Microsoft Visual C++ for 32-bit Windows.## You will need NMAKE.## Use this file while in the lib directory with the following statement:## nmake /f arch\win32\Makefile.CL### A DLL version of the library can be built with## nmake DLL=1 /f arch\win32\Makefile.CL dll## Debug versions can be obtained with## nmake DEBUG=1 /f arch\win32\Makefile.CL### 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\win32FT_MAKEFILE = $(ARCH)\Makefile.CLFT_DLL = ft15_32.dllCC = cl /nologoLIB = lib /nologoLINK = link /nologoCFLAGS = /Za /W2 -I$(ARCH) -I. -Iextend!ifndef DEBUGCFLAGS = $(CFLAGS) /OxDLLFLAGS = /RELEASE!elseCFLAGS = $(CFLAGS) /Zi /GeDLLFLAGS = /DEBUG!endif!ifdef DLLCFLAGS = $(CFLAGS) /GD \ /DEXPORT_DEF=__declspec(dllexport) /DEXPORT_FUNC=__declspec(dllexport)!elseCFLAGS = $(CFLAGS) /GA!endifTTFILE = .\ttfile.cTTMEMORY = .\ttmemory.cTTMUTEX = .\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.# See ..\msdos\Makefile.TC for an application..c.obj: @$(CC) /c /Fo$@ @<< $(CFLAGS) $*.c<<!ifndef DEBUG# Skipped if DEBUG buildall: $(OBJS_S) -del libttf.lib $(LIB) /OUT:libttf.lib @<<response $(OBJS_S)<<KEEPdll $(FT_DLL): $(OBJS_S)!ifdef DLL $(LINK) @<<response $(DLLFLAGS) /DLL /OUT:$(FT_DLL) /IMPLIB:libttf.lib /DEF:$(ARCH)\ttf.def $**<<KEEP!else $(MAKE) DLL=1 /f $(FT_MAKEFILE) dll # Re-invoke with flag set.!endif!endifdebug: $(OBJS_M) -del libttf.lib $(LIB) /OUT:libttf.lib @<<response $(OBJS_M)<<KEEP!ifdef DEBUGdll $(FT_DLL): $(OBJS_M)!ifdef DLL $(LINK) @<<response $(DLLFLAGS) /DLL /OUT:$(FT_DLL) /IMPLIB:libttf.lib /DEF:$(ARCH)\ttf.def $**<<KEEP!else $(MAKE) DLL=1 DEBUG=1 /f $(FT_MAKEFILE) dll # Re-invoke with flag set.!endif!endifinstall: $(FT_DLL)!ifdef INSTALL_DIR copy $(FT_DLL) $(INSTALL_DIR)!else copy $(FT_DLL) C:\WINDOWS!endif$(OBJ_S): $(SRC_S) $(SRC_M)# Not used here because it excesses the capacity of COMMAND.COM...libttf.lib: $(LIB_FILES) $(LIB) /OUT:$@ $**clean: -del *.obj -del extend\*.obj -del $(ARCH)\*.obj -del libttf.bak -del response -del *.exp -del *.pch -del *.ilkdistclean: clean -del libttf.lib -del *.dll -del *.pdb -del C:\WINDOWS\$(FT_DLL)!ifdef INSTALL_DIR -del $(INSTALL_DIR)\$(FT_DLL)!endif!include "$(ARCH)\depend.win"# end of Makefile.CL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -