📄 makefile.vc
字号:
# This file is part of the FreeType project.## It builds the library and test programs for Microsoft Visual C++ 1.x# and Microsoft C/C++ v.7.0 compilers for 16-bit Windows, large model,# using QuickWin to display console outputs.## You will need NMAKE.### Use this file while in the 'test' directory with the following statement:## nmake /f arch\win16\Makefile.VC## A DLL version of the library can be built and then used with## nmake DLL=1 /f arch\win16\Makefile.VC dll## (do not forget to define DLL, otherwise the link phase will fail).### Debug versions can be obtained with## nmake DEBUG=1 /f arch\win16\Makefile.VC## Special versions enabled to handle big fonts (with more than 16,384# glyphs) can be obtained with## nmake BIGFONTS=1 /f arch\win16\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\win16FT_MAKEFILE = $(ARCH)\Makefile.VCFT_MAKE = $(MAKE) /nologoFT_DLL = ft15_16.dllCC = cl /nologoLIBDIR = ..\libINCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend# 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 = /Ox /AL /Za /W2 /G3 $(INCDIRS)LDFLAGS = /AL!elseCFLAGS = /Zi /Ge /AL /Za /W2 /G3 $(INCDIRS)LDFLAGS = /Zi /AL!endifCFLAGS = $(CFLAGS) /MqLDFLAGS = $(LDFLAGS) /Mq!ifdef DLLCFLAGS = $(CFLAGS) /DFREETYPE_DLL!endif# Windows graphic driverGDRIVER = $(ARCH)\gw_win16.cGSRC = display.c gmain.c blitter.c $(GDRIVER)GOBJ = $(GSRC:.c=.obj)SRC = arabic.c \ common.c \ textdisp.c \ ftdump.c \ fterror.c \ ftlint.c \ ftmetric.c \ ftsbit.c \ ftstring.c \ ftstrpnm.c \ ftstrtto.c \ fttimer.c \ ftview.c \ ftzoom.cOBJ = $(SRC:.c=.obj).c.obj: @$(CC) /c /Fo$* @<< $(CFLAGS) $<<<EXEFILES = ftdump.exe \ fterror.exe \ ftlint.exe \ ftmetric.exe \ ftsbit.exe \ ftstring.exe \ ftstrpnm.exe \ ftstrtto.exe \ fttimer.exe \ ftview.exe \ ftzoom.exe!ifndef DEBUG# Skiped if DEBUG buildall: freetype $(EXEFILES)dll: the_dll $(EXEFILES)!else# Skipped if non-DEBUG builddefault_target: debugdll: the_debug_dll $(EXEFILES)!endifdebug: freetype_debug $(EXEFILES)!ifdef BIGFONTSMAKEBIG = BIGFONTS=1!endiffreetype: cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) $(MAKEBIG) all cd ..\testfreetype_debug: cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 $(MAKEBIG) debug cd ..\testthe_dll: cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) DLL=1 $(MAKEBIG) dll cd ..\test -copy $(LIBDIR)\$(FT_DLL)the_debug_dll: cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 DLL=1 $(MAKEBIG) dll cd ..\test -copy $(LIBDIR)\$(FT_DLL)# C compilers are unable to include 16-bit <windows.h> in ANSI mode.# So we have a special rule for this file, to build it outside ANSI.$(GDRIVER:.c=.obj): @$(CC) /c /Fo$* @<< $(CFLAGS) /Ze $(GDRIVER)<<.obj.exe: $(CC) /Fe$* @<< $(LDFLAGS) $**<<ftzoom.exe: $(GOBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.libftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.libftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.libftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.libfttimer.exe: $(GOBJ) fttimer.obj common.obj $(LIBDIR)\libttf.libftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.libftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.libftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.libftsbit.exe: ftsbit.obj common.obj textdisp.obj $(LIBDIR)\libttf.libftmetric.exe: ftmetric.obj common.obj textdisp.obj $(LIBDIR)\libttf.libfterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.libclean: do_clean cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) clean cd ..\testdistclean: do_clean cd $(LIBDIR) $(FT_MAKE) /f $(FT_MAKEFILE) distclean cd ..\test -del *.exe -del *.dll -del *.pdbdo_clean: -del *.obj -del $(ARCH)\*.obj!include "$(ARCH)\depend.win"# end of Makefile.VC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -