1 # This file is part of the FreeType project.
3 # It builds the library and test programs for BC++ for 16-bit Windows,
4 # using large model, and using Easy-Win to display console outputs.
6 # Tested with Borland C++ v.4.02, 5.0
7 # You will need Borland MAKE (v.3.6 and above should be OK, for oldest
8 # versions refer to the instructions below).
11 # Use this file while in the 'test' directory with the following statement:
13 # make -farch\win16\Makefile.BC
16 # A DLL version of the library can be built and then used with
18 # make -DDLL -farch/win16/Makefile.BC dll
20 # (do not forget to define DLL, otherwise the link phase will fail).
23 # Debug versions can be obtained with
25 # make -DDEBUG -farch\win16\Makefile.BC
27 # Special versions enabled to handle big fonts (with more than 16,384
28 # glyphs) can be obtained with
30 # make -DBIGFONTS -farch\msdos\Makefile.BC
33 FT_MAKEFILE = $(ARCH)\Makefile.BC
39 INCDIRS = -I$(LIBDIR);$(LIBDIR)\$(ARCH);.;$(LIBDIR)\extend
40 SPURIOUS_WARNINGS = -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -w-pia
42 # Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern
43 # Borland compilers (from BC++ 3.1 on) can increase the limit of
44 # the length of identifiers.
45 CFLAGS = -WSE -ml -A -i40 $(INCDIRS) $(SPURIOUS_WARNINGS)
48 CFLAGS = $(CFLAGS) -O2 -3
51 CFLAGS = $(CFLAGS) -v -N
52 LDFLAGS = -v -ml -W -lC
56 CFLAGS = $(CFLAGS) -DFREETYPE_DLL
60 # Windows graphic driver
61 GDRIVER = $(ARCH)\gw_win16.c
65 G1SRC = gmain.c blitter.c $(GDRIVER)
66 GSRC = $(DISPLAY) $(G1SRC)
68 GOBJ = $(GSRC:.c=.obj)
69 G1OBJ = $(G1SRC:.c=.obj)
94 EXEFILES = ftdump.exe \
107 # Skipped if DEBUG build
108 all: freetype $(EXEFILES)
110 dll: the_dll $(EXEFILES)
113 # Skipped if non-DEBUG build
114 default_target: debug
115 dll: the_debug_dll $(EXEFILES)
119 debug: freetype_debug $(EXEFILES)
128 make -f$(FT_MAKEFILE) $(MAKEBIG) all
133 make -f$(FT_MAKEFILE) -DDEBUG $(MAKEBIG) debug
138 make -f$(FT_MAKEFILE) -DDLL $(MAKEBIG) dll
140 -copy $(LIBDIR)\$(FT_DLL)
144 make -f$(FT_MAKEFILE) -DDEBUG -DDLL $(MAKEBIG) dll
146 -copy $(LIBDIR)\$(FT_DLL)
149 # C compilers are unable to include 16-bit <windows.h> in ANSI mode.
150 # So we have a special rule for this file, to build it outside ANSI.
157 # Borland versions of make are unable to use the $** variable inside
158 # implicit rules (like .obj.exe:). The job have to be done by hand. :-(
159 ftzoom.exe: $(G1OBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib
160 $(CC) $(LDFLAGS) ftzoom.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.lib
162 ftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib
163 $(CC) $(LDFLAGS) ftview.obj $(GOBJ) common.obj $(LIBDIR)\libttf.lib
165 ftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib
166 $(CC) $(LDFLAGS) ftstring.obj $(GOBJ) common.obj $(LIBDIR)\libttf.lib
168 ftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib
169 $(CC) $(LDFLAGS) ftstrtto.obj $(GOBJ) common.obj arabic.obj \
172 fttimer.exe: $(G1OBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib
173 $(CC) $(LDFLAGS) fttimer.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.lib
175 ftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib
176 $(CC) $(LDFLAGS) ftlint.obj common.obj $(LIBDIR)\libttf.lib
178 ftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib
179 $(CC) $(LDFLAGS) ftdump.obj common.obj $(LIBDIR)\libttf.lib
181 ftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
182 $(CC) $(LDFLAGS) ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
184 ftsbit.exe: ftsbit.obj common.obj $(LIBDIR)\libttf.lib
185 $(CC) $(LDFLAGS) ftsbit.obj common.obj $(LIBDIR)\libttf.lib
187 ftmetric.exe: ftmetric.obj common.obj $(LIBDIR)\libttf.lib
188 $(CC) $(LDFLAGS) ftmetric.obj common.obj $(LIBDIR)\libttf.lib
190 fterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib
191 $(CC) $(LDFLAGS) fterror.obj common.obj $(LIBDIR)\libttf.lib
196 make -f$(FT_MAKEFILE) clean
201 make -f$(FT_MAKEFILE) distclean
210 !include "$(ARCH)\depend.win"