📄 makefile.bc
字号:
# This file is part of the FreeType project.## It builds the library and test programs for BC++ for 16-bit Windows,# using large model, and using Easy-Win to display console outputs.## Tested with Borland C++ v.4.02, 5.0# You will need Borland MAKE (v.3.6 and above should be OK, for oldest# versions refer to the instructions below).### Use this file while in the 'test' directory with the following statement:## make -farch\win16\Makefile.BC### A DLL version of the library can be built and then used with## make -DDLL -farch/win16/Makefile.BC dll## (do not forget to define DLL, otherwise the link phase will fail).### 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## make -DBIGFONTS -farch\msdos\Makefile.BC### 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.BCFT_DLL = ft15_16.dllCC = bccLIBDIR = ..\libINCDIRS = -I$(LIBDIR);$(LIBDIR)\$(ARCH);.;$(LIBDIR)\extendSPURIOUS_WARNINGS = -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -w-pia# Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern# Borland compilers (from BC++ 3.1 on) can increase the limit of# the length of identifiers.CFLAGS = -WSE -ml -A -i40 $(INCDIRS) $(SPURIOUS_WARNINGS)!if ! $d(DEBUG)CFLAGS = $(CFLAGS) -O2 -3LDFLAGS = -ml -W -lC!elseCFLAGS = $(CFLAGS) -v -NLDFLAGS = -v -ml -W -lC!endif!if $d(DLL)CFLAGS = $(CFLAGS) -DFREETYPE_DLL!endif# Windows graphic driverGDRIVER = $(ARCH)\gw_win16.cDISPLAY = display.cG1SRC = gmain.c blitter.c $(GDRIVER)GSRC = $(DISPLAY) $(G1SRC)GOBJ = $(GSRC:.c=.obj)G1OBJ = $(G1SRC:.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 -o$* @&&| $(CFLAGS) $<|EXEFILES = ftdump.exe \ fterror.exe \ ftlint.exe \ ftmetric.exe \ ftsbit.exe \ ftstring.exe \ ftstrpnm.exe \ ftstrtto.exe \ fttimer.exe \ ftview.exe \ ftzoom.exe!if !$d(DEBUG)# Skipped 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)!if $d(BIGFONTS)MAKEBIG = -DBIGFONTS!endiffreetype: cd $(LIBDIR) make -f$(FT_MAKEFILE) $(MAKEBIG) all cd ..\testfreetype_debug: cd $(LIBDIR) make -f$(FT_MAKEFILE) -DDEBUG $(MAKEBIG) debug cd ..\testthe_dll: cd $(LIBDIR) make -f$(FT_MAKEFILE) -DDLL $(MAKEBIG) dll cd ..\test -copy $(LIBDIR)\$(FT_DLL)the_debug_dll: cd $(LIBDIR) make -f$(FT_MAKEFILE) -DDEBUG -DDLL $(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 -o$* @&&| $(CFLAGS) -A- $*.c|# Borland versions of make are unable to use the $** variable inside# implicit rules (like .obj.exe:). The job have to be done by hand. :-(ftzoom.exe: $(G1OBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftzoom.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.libftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftview.obj $(GOBJ) common.obj $(LIBDIR)\libttf.libftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftstring.obj $(GOBJ) common.obj $(LIBDIR)\libttf.libftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftstrtto.obj $(GOBJ) common.obj arabic.obj \ $(LIBDIR)\libttf.libfttimer.exe: $(G1OBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) fttimer.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.libftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftlint.obj common.obj $(LIBDIR)\libttf.libftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftdump.obj common.obj $(LIBDIR)\libttf.libftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftstrpnm.obj common.obj $(LIBDIR)\libttf.libftsbit.exe: $(TDOBJ) ftsbit.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftsbit.obj textdisp.obj common.obj $(LIBDIR)\libttf.libftmetric.exe: $(TDOBJ) ftmetric.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) ftmetric.obj textdisp.obj common.obj $(LIBDIR)\libttf.libfterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib $(CC) $(LDFLAGS) fterror.obj common.obj $(LIBDIR)\libttf.libclean: do_clean cd $(LIBDIR) make -f$(FT_MAKEFILE) clean cd ..\testdistclean: do_clean cd $(LIBDIR) make -f$(FT_MAKEFILE) distclean cd ..\test -del *.exe -del *.dlldo_clean: -del *.obj -del $(ARCH)\*.obj!include "$(ARCH)\depend.win"# end of Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -