9 |
# Your programs source code should start with this |
# Your programs source code should start with this |
10 |
# (uncomment the parts you do not need to keep the program small): |
# (uncomment the parts you do not need to keep the program small): |
11 |
# ---8<--- |
# ---8<--- |
12 |
#define FT_USE_AUTOHINT // autohinter |
#define FT_USE_AUTOFIT // autofitter |
13 |
#define FT_USE_RASTER // monochrome rasterizer |
#define FT_USE_RASTER // monochrome rasterizer |
14 |
#define FT_USE_SMOOTH // anti-aliasing rasterizer |
#define FT_USE_SMOOTH // anti-aliasing rasterizer |
15 |
#define FT_USE_TT // truetype font driver |
#define FT_USE_TT // truetype font driver |
16 |
#define FT_USE_T1 // type1 font driver |
#define FT_USE_T1 // type1 font driver |
17 |
#define FT_USE_T42 // type42 font driver |
#define FT_USE_T42 // type42 font driver |
18 |
#define FT_USE_T1CID // cid-keyed type1 font driver |
#define FT_USE_T1CID // cid-keyed type1 font driver |
19 |
#define FT_USE_CFF // opentype font driver |
#define FT_USE_CFF // opentype font driver |
20 |
#define FT_USE_BDF // bdf bitmap font driver |
#define FT_USE_BDF // bdf bitmap font driver |
21 |
#define FT_USE_PCF // pcf bitmap font driver |
#define FT_USE_PCF // pcf bitmap font driver |
22 |
#define FT_USE_PFR // pfr font driver |
#define FT_USE_PFR // pfr font driver |
23 |
#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver |
#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver |
24 |
|
#define FT_USE_OTV // opentype validator |
25 |
#include "FT:src/base/ftinit.c" |
#include "FT:src/base/ftinit.c" |
26 |
# ---8<--- |
# ---8<--- |
27 |
# |
# |
29 |
# (and either ftdebug.o or ftdebugpure.o if you enabled FT_DEBUG_LEVEL_ERROR or |
# (and either ftdebug.o or ftdebugpure.o if you enabled FT_DEBUG_LEVEL_ERROR or |
30 |
# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h). |
# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h). |
31 |
|
|
32 |
OBJBASE = ftbase.o ftglyph.o ftbbox.o ftmm.o ftsynth.o |
OBJBASE = ftbase.o ftbdf.o ftglyph.o ftbbox.o ftmm.o ftsynth.o fttype1.o ftwinfnt.o |
33 |
|
|
34 |
OBJSYSTEM = ftsystem.o ftsystempure.o |
OBJSYSTEM = ftsystem.o ftsystempure.o |
35 |
|
|
36 |
OBJDEBUG = ftdebug.o ftdebugpure.o |
OBJDEBUG = ftdebug.o ftdebugpure.o |
37 |
|
|
38 |
OBJAHINT = autohint.o ahoptim.o |
OBJAFIT = autofit.o |
39 |
|
|
40 |
OBJPSHINT = pshinter.o |
OBJOTV = otvalid.o |
41 |
|
|
42 |
OBJPSAUX = psaux.o |
OBJPS = psaux.o psnames.o pshinter.o |
43 |
|
|
44 |
OBJPSNAM = psnames.o |
OBJRASTER = raster.o smooth.o |
|
|
|
|
OBJRAST = raster.o |
|
|
|
|
|
OBJSMOOTH = smooth.o |
|
45 |
|
|
46 |
OBJSFNT = sfnt.o |
OBJSFNT = sfnt.o |
47 |
|
|
48 |
OBJCACHE = ftcache.o |
OBJCACHE = ftcache.o |
49 |
|
|
|
OBJPS = $(OBJPSAUX) $(OBJPSNAM) $(OBJPSHINT) |
|
|
|
|
|
OBJRASTER = $(OBJRAST) $(OBJSMOOTH) |
|
|
|
|
50 |
OBJFONTD = cff.o type1.o type42.o type1cid.o\ |
OBJFONTD = cff.o type1.o type42.o type1cid.o\ |
51 |
truetype.o winfnt.o bdf.o pcf.o pfr.o |
truetype.o winfnt.o bdf.o pcf.o pfr.o |
52 |
|
|
81 |
|
|
82 |
# uses separate object modules in lib to make for easier debugging |
# uses separate object modules in lib to make for easier debugging |
83 |
# also, can make smaller programs if entire engine is not used |
# also, can make smaller programs if entire engine is not used |
84 |
ft2_$(CPU).lib: $(OBJBASE) $(OBJAHINT) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) |
ft2_$(CPU).lib: $(OBJBASE) $(OBJAFIT) $(OBJOTV) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) lzw.o # gzip.o |
85 |
oml $@ r $(OBJBASE) $(OBJAHINT) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) |
oml $@ r $(OBJBASE) $(OBJAFIT) $(OBJOTV) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) lzw.o |
86 |
|
|
87 |
clean: |
clean: |
88 |
-delete \#?.o |
-delete \#?.o |
108 |
# |
# |
109 |
# freetype library base extensions |
# freetype library base extensions |
110 |
# |
# |
|
ftglyph.o: $(CORE)base/ftglyph.c |
|
|
sc $(SCFLAGS) objname=$@ $< |
|
111 |
ftbbox.o: $(CORE)base/ftbbox.c |
ftbbox.o: $(CORE)base/ftbbox.c |
112 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
113 |
|
ftbdf.o: $(CORE)base/ftbdf.c |
114 |
|
sc $(SCFLAGS) objname=$@ $< |
115 |
|
ftglyph.o: $(CORE)base/ftglyph.c |
116 |
|
sc $(SCFLAGS) objname=$@ $< |
117 |
ftmm.o: $(CORE)base/ftmm.c |
ftmm.o: $(CORE)base/ftmm.c |
118 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
119 |
ftsynth.o: $(CORE)base/ftsynth.c |
ftsynth.o: $(CORE)base/ftsynth.c |
120 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
121 |
|
fttype1.o: $(CORE)base/fttype1.c |
122 |
# |
sc $(SCFLAGS) objname=$@ $< |
123 |
# freetype library autohinting module |
ftwinfnt.o: $(CORE)base/ftwinfnt.c |
|
# |
|
|
autohint.o: $(CORE)autohint/autohint.c |
|
124 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
125 |
|
|
126 |
# |
# |
127 |
# freetype library autohinting module extensions |
# freetype library autofitter module |
128 |
# |
# |
129 |
ahoptim.o: $(CORE)autohint/ahoptim.c |
autofit.o: $(CORE)autofit/autofit.c |
130 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
131 |
|
|
132 |
# |
# |
218 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
219 |
|
|
220 |
# |
# |
221 |
|
# freetype library gzip support for compressed PCF bitmap fonts |
222 |
|
# |
223 |
|
gzip.o: $(CORE)gzip/ftgzip.c |
224 |
|
sc $(SCFLAGS) objname=$@ $< |
225 |
|
|
226 |
|
# |
227 |
|
# freetype library compress support for compressed PCF bitmap fonts |
228 |
|
# |
229 |
|
lzw.o: $(CORE)lzw/ftlzw.c |
230 |
|
sc $(SCFLAGS) objname=$@ $< |
231 |
|
|
232 |
|
# |
233 |
# freetype library PFR font driver |
# freetype library PFR font driver |
234 |
# |
# |
235 |
pfr.o: $(CORE)pfr/pfr.c |
pfr.o: $(CORE)pfr/pfr.c |
240 |
# |
# |
241 |
winfnt.o: $(CORE)winfonts/winfnt.c |
winfnt.o: $(CORE)winfonts/winfnt.c |
242 |
sc $(SCFLAGS) objname=$@ $< |
sc $(SCFLAGS) objname=$@ $< |
243 |
|
|
244 |
|
# |
245 |
|
# freetype library OpenType validator |
246 |
|
# |
247 |
|
otvalid.o: $(CORE)otvalid/otvalid.c |
248 |
|
sc $(SCFLAGS) objname=$@ $< |