📄 makefile.bc
字号:
# This file is part of the FreeType project.## It builds the library for Borland C++ for 16-bit Windows, large model.# Due to size constraints, it does not try to pack all modules into one.## You will need Borland MAKE.# Tested with Borland C++ v.4.0 and 5.0.## Use this file while in the lib directory with the following statement:## make -farch/win16/Makefile.BC### A DLL version of the library can be built with## make -DDLL -farch/win16/Makefile.BC dll## Debug versions can be obtained with## make -DDEBUG -farch\win16\Makefile.BC## Special versions enabled to handle big fonts (with more than 16,384# glyphs) can be obtained with#### 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.# make -DBIGFONTS -farch/win16/Makefile.BCARCH = arch\win16FT_MAKEFILE = $(ARCH)\Makefile.BCFT_DLL = ft15_16.dllCC = bccLIB = tlib /c /eIMPLIB = implib -c -oSPURIOUS_WARNINGS = -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig# Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern# Borland compilers (from BC++ 3.1 on) can increase the limit on# the length of identifiers.!if ! $d(DEBUG)CFLAGS = -O2 -3 -ml -A -i40 -I$(ARCH);.;extend $(SPURIOUS_WARNINGS)DLLFLAGS = -ml -WD -lC!elseCFLAGS = -v -N -ml -A -i40 -I$(ARCH);.;extend $(SPURIOUS_WARNINGS)DLLFLAGS = -v -ml -WD -lC!endifCFLAGS = $(CFLAGS) -WFT_DEF = $(FT_DLL:.dll=.def)!if $d(DLL)CFLAGS = $(CFLAGS) -WD!endif!if $d(BIGFONTS)CFLAGS = $(CFLAGS) -DTT_HUGE_PTR=__hugeTTFILE = $(ARCH)\hugefile.cTTMEMORY = $(ARCH)\hugemem.c!elseTTFILE = .\ttfile.cTTMEMORY = .\ttmemory.c!endifTTMUTEX = .\ttmutex.cPORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)# Do not insert spaces before the \ at end of line,# otherwise the substitution for TLIB command line will fail.SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\ extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c\ extend\ftxsbit.c extend\ftxgsub.c extend\ftxgpos.c\ extend\ftxopen.c extend\ftxgdef.cOBJS_X = $(SRC_X:.c=.obj)SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c\ ttgload.c ttinterp.c ttload.c ttobjs.c\ ttraster.c ttextend.c ttdebug.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 Borland make does not handle $($(LIB_FILES)), and using# -DLIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat# by constructing TLIB'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 -o$* @&&| $(CFLAGS) $<|!if ! $d(DEBUG)# Skipped if DEBUG build# (but it changes nothing, since we always build in multiple parts).all: $(OBJS_M) -del libttf.lib $(LIB) libttf.lib @&&|+ $(OBJS_M: = + )|!endifdebug: $(OBJS_M) -del libttf.lib $(LIB) libttf.lib @&&|+ $(OBJS_M: = + )|$(FT_DEF): $(ARCH)\ttf.def -copy $(ARCH)\ttf.def $(FT_DEF)dll $(FT_DLL): $(OBJS_M) $(FT_DEF)!if $d(DLL) $(CC) -e$(FT_DLL) @&&| $(DLLFLAGS) $(OBJS_M)| $(IMPLIB) libttf $(FT_DEF)!else# Re-invoke with flag set. Unfortunately, this discards the other flags. make -DDLL -f$(ARCH)/Makefile.BC dll!endifinstall: $(FT_DLL)!if $d(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) -del libttf.lib echo -+$(**: =-+)> response $(LIB) libttf.lib @&&|+ $(**: = + )|!if $d(BIGFONTS)$(TTMEMORY:.c=.obj): $(TTMEMORY) $(CC) -c -o$* @&&| $(CFLAGS) -A- $*.c|$(TTFILE:.c=.obj): $(TTFILE) $(CC) -c -o$* @&&| $(CFLAGS) -A- $*.c|!endifclean: -del *.obj -del extend\*.obj -del $(ARCH)\*.obj -del libttf.bak -del response -del *.defdistclean: clean -del libttf.lib -del *.dll -del $(FT_DEF) -del C:\WINDOWS\$(FT_DLL)!if $d(INSTALL_DIR) -del $(INSTALL_DIR)\$(FT_DLL)!endif!include "$(ARCH)\depend.win"# end of Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -