2001-09-20 13:58:51 +02:00
|
|
|
|
#
|
|
|
|
|
# Makefile for FreeType2 link library using Amiga SAS/C 6.58
|
|
|
|
|
#
|
2005-06-08 13:56:55 +02:00
|
|
|
|
|
|
|
|
|
|
2018-01-02 09:33:57 +01:00
|
|
|
|
# Copyright 2005-2018 by
|
2005-06-08 13:56:55 +02:00
|
|
|
|
# Werner Lemberg and Detlef W<>rkner.
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
2001-09-20 13:58:51 +02:00
|
|
|
|
# to build from the builds/amiga directory call
|
|
|
|
|
#
|
|
|
|
|
# smake assign
|
|
|
|
|
# smake
|
|
|
|
|
#
|
|
|
|
|
# Your programs source code should start with this
|
|
|
|
|
# (uncomment the parts you do not need to keep the program small):
|
|
|
|
|
# ---8<---
|
2005-03-25 23:18:01 +01:00
|
|
|
|
#define FT_USE_AUTOFIT // autofitter
|
|
|
|
|
#define FT_USE_RASTER // monochrome rasterizer
|
|
|
|
|
#define FT_USE_SMOOTH // anti-aliasing rasterizer
|
|
|
|
|
#define FT_USE_TT // truetype font driver
|
|
|
|
|
#define FT_USE_T1 // type1 font driver
|
|
|
|
|
#define FT_USE_T42 // type42 font driver
|
|
|
|
|
#define FT_USE_T1CID // cid-keyed type1 font driver
|
|
|
|
|
#define FT_USE_CFF // opentype font driver
|
|
|
|
|
#define FT_USE_BDF // bdf bitmap font driver
|
|
|
|
|
#define FT_USE_PCF // pcf bitmap font driver
|
|
|
|
|
#define FT_USE_PFR // pfr font driver
|
|
|
|
|
#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver
|
|
|
|
|
#define FT_USE_OTV // opentype validator
|
2005-11-17 15:19:30 +01:00
|
|
|
|
#define FT_USE_GXV // truetype gx validator
|
2001-09-20 13:58:51 +02:00
|
|
|
|
#include "FT:src/base/ftinit.c"
|
|
|
|
|
# ---8<---
|
|
|
|
|
#
|
|
|
|
|
# link your programs with ft2_680x0.lib and either ftsystem.o or ftsystempure.o
|
|
|
|
|
# (and either ftdebug.o or ftdebugpure.o if you enabled FT_DEBUG_LEVEL_ERROR or
|
Another adjustment to header locations.
This change is a result of a discussion thread on freetype-devel
http://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html
Re-introduce the `freetype2' subdirectory for all FreeType header
files after installation, and rename the `freetype2' subdirectory in
the git repository to `freetype'.
* include/freetype2: Renamed to...
* include/freetype: This.
* CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
PRIVATE_HEADERS): Updated.
Update creation of `ftconfig.h'.
Install generated `ftconfig.h'.
* Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
* builds/amiga/include/config/ftconfig.h, builds/freetype.mk
(PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
builds/unix/freetype2.in: Updated.
* builds/unix/freetype-config.in: Updated.
* builds/unix/configure.raw: Don't check for `rmdir'.
* builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable
according to the autoconf info manual.
* builds/unix/install.mk (install, uninstall,
distclean_project_unix): Update and simplify.
* builds/wince/*, builds/windows/*: Updated.
* devel/ft2build.h, include/ft2build.h: Updated.
* include/freetype2/config/ftheader.h,
include/freetype2/internal/ftserv.h,
include/freetype2/internal/internal.h: Update all header file
macros.
* src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
* docs/*: Updated.
2015-06-25 13:04:57 +02:00
|
|
|
|
# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
Remove `ftlcdfil.c' and `ftfntfmt.c' from build files (#53415).
builds/amiga/makefile, builds/amiga/makefile.os4,
builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
builds/mac/FreeType.m68k_far.make.txt,
builds/mac/FreeType.ppc_carbon.make.txt,
builds/mac/FreeType.ppc_classic.make.txt,
builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2008-ce/freetype.vcproj,
builds/windows/vc2005/freetype.vcproj,
builds/windows/vc2008/freetype.vcproj,
builds/windows/vc2010/freetype.vcxproj,
builds/windows/vc2010/freetype.vcxproj.filters,
builds/windows/visualc/freetype.dsp,
builds/windows/visualc/freetype.vcproj,
builds/windows/visualce/freetype.dsp,
builds/windows/visualce/freetype.vcproj, vms_make.com: Do it.
2018-03-22 06:00:55 +01:00
|
|
|
|
OBJBASE = ftbase.o ftbbox.o ftbdf.o ftbitmap.o ftcid.o ftfstype.o \
|
|
|
|
|
ftgasp.o ftglyph.o ftgxval.o ftmm.o ftotval.o \
|
Rename `ftxf86.[ch]' to `ftfntfmt.[ch]'.
CMakeLists.txt, builds/amiga/makefile, builds/amiga/makefile.os4,
builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
builds/mac/FreeType.m68k_far.make.txt,
builds/mac/FreeType.ppc_carbon.make.txt,
builds/mac/FreeType.ppc_classic.make.txt, builds/symbian/bld.inf,
builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2008-ce/freetype.vcproj,
builds/windows/vc2005/freetype.vcproj,
builds/windows/vc2008/freetype.vcproj,
builds/windows/vc2010/freetype.vcxproj,
builds/windows/vc2010/freetype.vcxproj.filters,
builds/windows/visualc/freetype.dsp,
builds/windows/visualc/freetype.vcproj,
builds/windows/visualce/freetype.dsp,
builds/windows/visualce/freetype.vcproj, docs/INSTALL.ANY,
include/config/ftheader.h, include/ftfntfmt.h, modules.cfg,
src/base/ftfntfmt.c, vms_make.com: Updated.
2015-03-11 06:30:23 +01:00
|
|
|
|
ftpatent.o ftpfr.o ftstroke.o ftsynth.o fttype1.o ftwinfnt.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
OBJSYSTEM = ftsystem.o ftsystempure.o
|
|
|
|
|
|
|
|
|
|
OBJDEBUG = ftdebug.o ftdebugpure.o
|
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
OBJAFIT = autofit.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
2005-11-17 15:19:30 +01:00
|
|
|
|
OBJGXV = gxvalid.o
|
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
OBJOTV = otvalid.o
|
2001-12-22 15:38:40 +01:00
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
OBJPS = psaux.o psnames.o pshinter.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
OBJRASTER = raster.o smooth.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
OBJSFNT = sfnt.o
|
|
|
|
|
|
|
|
|
|
OBJCACHE = ftcache.o
|
|
|
|
|
|
2002-05-29 00:38:05 +02:00
|
|
|
|
OBJFONTD = cff.o type1.o type42.o type1cid.o\
|
|
|
|
|
truetype.o winfnt.o bdf.o pcf.o pfr.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
CORE = FT:src/
|
|
|
|
|
|
|
|
|
|
CPU = 68000
|
|
|
|
|
#CPU = 68020
|
|
|
|
|
#CPU = 68030
|
|
|
|
|
#CPU = 68040
|
|
|
|
|
#CPU = 68060
|
|
|
|
|
|
|
|
|
|
OPTIMIZER = optinlocal
|
|
|
|
|
|
2005-11-25 09:02:57 +01:00
|
|
|
|
SCFLAGS = optimize opttime optsched strmerge data=faronly idlen=50 cpu=$(CPU)\
|
2001-09-20 13:58:51 +02:00
|
|
|
|
idir=include/ idir=$(CORE) idir=FT:include/ nostackcheck nochkabort\
|
2006-04-05 09:17:12 +02:00
|
|
|
|
noicons ignore=79,85,110,306 parameters=both define=FT2_BUILD_LIBRARY
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
LIB = ft2_$(CPU).lib
|
|
|
|
|
|
|
|
|
|
# sample linker options
|
|
|
|
|
OPTS = link lib=$(LIB),lib:sc.lib,lib:amiga.lib,lib:debug.lib\
|
|
|
|
|
smallcode smalldata noicons utillib
|
|
|
|
|
|
|
|
|
|
# sample program entry
|
|
|
|
|
#myprog: myprog.c ftsystem.o $(LIB)
|
|
|
|
|
# sc $< programname=$@ ftsystem.o $(SCFLAGS) $(OPTS)
|
|
|
|
|
|
|
|
|
|
all: $(LIB) $(OBJSYSTEM) $(OBJDEBUG)
|
|
|
|
|
|
|
|
|
|
assign:
|
|
|
|
|
assign FT: //
|
|
|
|
|
|
|
|
|
|
# uses separate object modules in lib to make for easier debugging
|
|
|
|
|
# also, can make smaller programs if entire engine is not used
|
2011-01-05 18:44:53 +01:00
|
|
|
|
ft2_$(CPU).lib: $(OBJBASE) $(OBJAFIT) $(OBJOTV) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) lzw.o gzip.o bzip2.o
|
|
|
|
|
oml $@ r $(OBJBASE) $(OBJAFIT) $(OBJOTV) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD) lzw.o gzip.o bzip2.o
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
-delete \#?.o
|
|
|
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
|
-delete ft2$(CPU).lib
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library base
|
|
|
|
|
#
|
|
|
|
|
ftbase.o: $(CORE)base/ftbase.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftinit.o: $(CORE)base/ftinit.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftsystem.o: $(CORE)base/ftsystem.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftsystempure.o: src/base/ftsystem.c ## pure version for use in run-time library etc
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftdebug.o: $(CORE)base/ftdebug.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftdebugpure.o: src/base/ftdebug.c ## pure version for use in run-time library etc
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
#
|
|
|
|
|
# freetype library base extensions
|
|
|
|
|
#
|
|
|
|
|
ftbbox.o: $(CORE)base/ftbbox.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
ftbdf.o: $(CORE)base/ftbdf.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-26 11:18:38 +01:00
|
|
|
|
ftbitmap.o: $(CORE)base/ftbitmap.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2009-01-22 11:13:59 +01:00
|
|
|
|
ftcid.o: $(CORE)base/ftcid.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftfstype.o: $(CORE)base/ftfstype.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2007-01-15 08:48:09 +01:00
|
|
|
|
ftgasp.o: $(CORE)base/ftgasp.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
ftglyph.o: $(CORE)base/ftglyph.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-11-17 15:19:30 +01:00
|
|
|
|
ftgxval.o: $(CORE)base/ftgxval.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2001-09-20 13:58:51 +02:00
|
|
|
|
ftmm.o: $(CORE)base/ftmm.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-26 11:18:38 +01:00
|
|
|
|
ftotval.o: $(CORE)base/ftotval.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2009-01-22 11:13:59 +01:00
|
|
|
|
ftpatent.o: $(CORE)base/ftpatent.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-26 11:18:38 +01:00
|
|
|
|
ftpfr.o: $(CORE)base/ftpfr.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftstroke.o: $(CORE)base/ftstroke.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2001-09-20 13:58:51 +02:00
|
|
|
|
ftsynth.o: $(CORE)base/ftsynth.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
fttype1.o: $(CORE)base/fttype1.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
ftwinfnt.o: $(CORE)base/ftwinfnt.c
|
2001-09-20 13:58:51 +02:00
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
|
2001-09-20 13:58:51 +02:00
|
|
|
|
#
|
2005-03-25 23:18:01 +01:00
|
|
|
|
# freetype library autofitter module
|
2001-09-20 13:58:51 +02:00
|
|
|
|
#
|
2005-03-25 23:18:01 +01:00
|
|
|
|
autofit.o: $(CORE)autofit/autofit.c
|
2001-09-20 13:58:51 +02:00
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
2001-12-22 15:38:40 +01:00
|
|
|
|
# freetype library PS hinting module
|
|
|
|
|
#
|
|
|
|
|
pshinter.o: $(CORE)pshinter/pshinter.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
#
|
2001-09-20 13:58:51 +02:00
|
|
|
|
# freetype library PS support module
|
|
|
|
|
#
|
|
|
|
|
psaux.o: $(CORE)psaux/psaux.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library PS glyph names module
|
|
|
|
|
#
|
|
|
|
|
psnames.o: $(CORE)psnames/psnames.c
|
2005-11-25 09:02:57 +01:00
|
|
|
|
sc $(SCFLAGS) code=far objname=$@ $<
|
2001-09-20 13:58:51 +02:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library monochrome raster module
|
|
|
|
|
#
|
|
|
|
|
raster.o: $(CORE)raster/raster.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library anti-aliasing raster module
|
|
|
|
|
#
|
|
|
|
|
smooth.o: $(CORE)smooth/smooth.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library 'sfnt' module
|
|
|
|
|
#
|
|
|
|
|
sfnt.o: $(CORE)sfnt/sfnt.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library glyph and image caching system (still experimental)
|
|
|
|
|
#
|
|
|
|
|
ftcache.o: $(CORE)cache/ftcache.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library OpenType font driver
|
|
|
|
|
#
|
|
|
|
|
cff.o: $(CORE)cff/cff.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library TrueType font driver
|
|
|
|
|
#
|
|
|
|
|
truetype.o: $(CORE)truetype/truetype.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library Type1 font driver
|
|
|
|
|
#
|
|
|
|
|
type1.o: $(CORE)type1/type1.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
2002-05-29 00:38:05 +02:00
|
|
|
|
#
|
|
|
|
|
# FreeType2 library Type42 font driver
|
|
|
|
|
#
|
2002-06-08 14:33:57 +02:00
|
|
|
|
type42.o: $(CORE)type42/type42.c
|
2002-05-29 00:38:05 +02:00
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
2001-09-20 13:58:51 +02:00
|
|
|
|
#
|
|
|
|
|
# freetype library CID-keyed Type1 font driver
|
|
|
|
|
#
|
|
|
|
|
type1cid.o: $(CORE)cid/type1cid.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
#
|
|
|
|
|
# freetype library CID-keyed Type1 font driver extensions
|
|
|
|
|
#
|
|
|
|
|
#cidafm.o: $(CORE)cid/cidafm.c
|
|
|
|
|
# sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
2002-05-29 00:38:05 +02:00
|
|
|
|
# freetype library BDF bitmap font driver
|
2001-09-20 13:58:51 +02:00
|
|
|
|
#
|
2002-05-29 00:38:05 +02:00
|
|
|
|
bdf.o: $(CORE)bdf/bdf.c
|
2001-09-20 13:58:51 +02:00
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library PCF bitmap font driver
|
|
|
|
|
#
|
|
|
|
|
pcf.o: $(CORE)pcf/pcf.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2002-05-29 00:38:05 +02:00
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
#
|
|
|
|
|
# freetype library gzip support for compressed PCF bitmap fonts
|
|
|
|
|
#
|
|
|
|
|
gzip.o: $(CORE)gzip/ftgzip.c
|
2005-11-25 09:02:57 +01:00
|
|
|
|
sc $(SCFLAGS) define FAR objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
|
2011-01-05 18:44:53 +01:00
|
|
|
|
#
|
|
|
|
|
# freetype library bzip2 support for compressed PCF bitmap fonts
|
|
|
|
|
#
|
|
|
|
|
bzip2.o: $(CORE)bzip2/ftbzip2.c
|
|
|
|
|
sc $(SCFLAGS) define FAR objname=$@ $<
|
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
#
|
|
|
|
|
# freetype library compress support for compressed PCF bitmap fonts
|
|
|
|
|
#
|
|
|
|
|
lzw.o: $(CORE)lzw/ftlzw.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
2002-05-29 00:38:05 +02:00
|
|
|
|
#
|
|
|
|
|
# freetype library PFR font driver
|
|
|
|
|
#
|
|
|
|
|
pfr.o: $(CORE)pfr/pfr.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# freetype library Windows FNT/FON bitmap font driver
|
|
|
|
|
#
|
|
|
|
|
winfnt.o: $(CORE)winfonts/winfnt.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-03-25 23:18:01 +01:00
|
|
|
|
|
2005-11-17 15:19:30 +01:00
|
|
|
|
#
|
|
|
|
|
# freetype library TrueTypeGX validator
|
|
|
|
|
#
|
|
|
|
|
gxvalid.o: $(CORE)gxvalid/gxvalid.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
|
|
|
|
|
2005-03-25 23:18:01 +01:00
|
|
|
|
#
|
|
|
|
|
# freetype library OpenType validator
|
|
|
|
|
#
|
|
|
|
|
otvalid.o: $(CORE)otvalid/otvalid.c
|
|
|
|
|
sc $(SCFLAGS) objname=$@ $<
|
2005-06-08 13:56:55 +02:00
|
|
|
|
|
|
|
|
|
#Local Variables:
|
|
|
|
|
#coding: latin-1
|
|
|
|
|
#End:
|