1# 2# Makefile for FreeType2 link library using ppc-morphos-gcc-2.95.3-bin.tgz 3# (gcc 2.95.3 hosted on 68k-Amiga producing MorphOS-PPC-binaries from 4# http://www.morphos.de) 5# 6 7 8# Copyright 2005-2018 by 9# Werner Lemberg and Detlef W�rkner. 10# 11# This file is part of the FreeType project, and may only be used, modified, 12# and distributed under the terms of the FreeType project license, 13# LICENSE.TXT. By continuing to use, modify, or distribute this file you 14# indicate that you have read the license and understand and accept it 15# fully. 16 17 18# 19# to build from the builds/amiga directory call 20# 21# make assign 22# make 23# 24# Your programs source code should start with this 25# (uncomment the parts you do not need to keep the program small): 26# ---8<--- 27#define FT_USE_AUTOFIT // autofitter 28#define FT_USE_RASTER // monochrome rasterizer 29#define FT_USE_SMOOTH // anti-aliasing rasterizer 30#define FT_USE_TT // truetype font driver 31#define FT_USE_T1 // type1 font driver 32#define FT_USE_T42 // type42 font driver 33#define FT_USE_T1CID // cid-keyed type1 font driver 34#define FT_USE_CFF // opentype font driver 35#define FT_USE_BDF // bdf bitmap font driver 36#define FT_USE_PCF // pcf bitmap font driver 37#define FT_USE_PFR // pfr font driver 38#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver 39#define FT_USE_OTV // opentype validator 40#define FT_USE_GXV // truetype gx validator 41#include "FT:src/base/ftinit.c" 42# ---8<--- 43# 44# link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o 45# (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or 46# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h). 47 48all: libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o 49 50assign: 51 assign FT: // 52 53FTSRC = /FT/src 54 55CC = ppc-morphos-gcc 56AR = ppc-morphos-ar rc 57RANLIB = ppc-morphos-ranlib 58LD = ppc-morphos-ld 59CFLAGS = -DFT2_BUILD_LIBRARY -O2 -I/emu/emulinclude/includegcc -I/emu/include -Iinclude -I$(FTSRC) -I/FT/include 60 61# 62# FreeType2 library base 63# 64ftbase.ppc.o: $(FTSRC)/base/ftbase.c 65 $(CC) -c $(CFLAGS) -o $@ $< 66 67ftinit.ppc.o: $(FTSRC)/base/ftinit.c 68 $(CC) -c $(CFLAGS) -o $@ $< 69 70ftsystem.ppc.o: $(FTSRC)/base/ftsystem.c 71 $(CC) -c $(CFLAGS) -o $@ $< 72 73# pure version for use in run-time library etc 74ftsystempure.ppc.o: src/base/ftsystem.c 75 $(CC) -c $(CFLAGS) -o $@ $< 76 77ftdebug.ppc.o: $(FTSRC)/base/ftdebug.c 78 $(CC) -c $(CFLAGS) -o $@ $< 79 80# pure version for use in run-time library etc 81ftdebugpure.ppc.o: src/base/ftdebug.c 82 $(CC) -c $(CFLAGS) -o $@ $< 83 84# 85# FreeType2 library base extensions 86# 87ftbbox.ppc.o: $(FTSRC)/base/ftbbox.c 88 $(CC) -c $(CFLAGS) -o $@ $< 89 90ftbdf.ppc.o: $(FTSRC)/base/ftbdf.c 91 $(CC) -c $(CFLAGS) -o $@ $< 92 93ftbitmap.ppc.o: $(FTSRC)/base/ftbitmap.c 94 $(CC) -c $(CFLAGS) -o $@ $< 95 96ftcid.ppc.o: $(FTSRC)/base/ftcid.c 97 $(CC) -c $(CFLAGS) -o $@ $< 98 99ftfstype.ppc.o: $(FTSRC)/base/ftfstype.c 100 $(CC) -c $(CFLAGS) -o $@ $< 101 102ftgasp.ppc.o: $(FTSRC)/base/ftgasp.c 103 $(CC) -c $(CFLAGS) -o $@ $< 104 105ftglyph.ppc.o: $(FTSRC)/base/ftglyph.c 106 $(CC) -c $(CFLAGS) -o $@ $< 107 108ftgxval.ppc.o: $(FTSRC)/base/ftgxval.c 109 $(CC) -c $(CFLAGS) -o $@ $< 110 111ftmm.ppc.o: $(FTSRC)/base/ftmm.c 112 $(CC) -c $(CFLAGS) -o $@ $< 113 114ftotval.ppc.o: $(FTSRC)/base/ftotval.c 115 $(CC) -c $(CFLAGS) -o $@ $< 116 117ftpatent.ppc.o: $(FTSRC)/base/ftpatent.c 118 $(CC) -c $(CFLAGS) -o $@ $< 119 120ftpfr.ppc.o: $(FTSRC)/base/ftpfr.c 121 $(CC) -c $(CFLAGS) -o $@ $< 122 123ftstroke.ppc.o: $(FTSRC)/base/ftstroke.c 124 $(CC) -c $(CFLAGS) -o $@ $< 125 126ftsynth.ppc.o: $(FTSRC)/base/ftsynth.c 127 $(CC) -c $(CFLAGS) -o $@ $< 128 129fttype1.ppc.o: $(FTSRC)/base/fttype1.c 130 $(CC) -c $(CFLAGS) -o $@ $< 131 132ftwinfnt.ppc.o: $(FTSRC)/base/ftwinfnt.c 133 $(CC) -c $(CFLAGS) -o $@ $< 134 135# 136# FreeType2 library autofitting module 137# 138autofit.ppc.o: $(FTSRC)/autofit/autofit.c 139 $(CC) -c $(CFLAGS) -o $@ $< 140 141# 142# FreeType2 library postscript hinting module 143# 144pshinter.ppc.o: $(FTSRC)/pshinter/pshinter.c 145 $(CC) -c $(CFLAGS) -o $@ $< 146 147# 148# FreeType2 library PS support module 149# 150psaux.ppc.o: $(FTSRC)/psaux/psaux.c 151 $(CC) -c $(CFLAGS) -o $@ $< 152 153# 154# FreeType2 library PS glyph names module 155# 156psnames.ppc.o: $(FTSRC)/psnames/psnames.c 157 $(CC) -c $(CFLAGS) -o $@ $< 158 159# 160# FreeType2 library monochrome raster module 161# 162raster.ppc.o: $(FTSRC)/raster/raster.c 163 $(CC) -c $(CFLAGS) -o $@ $< 164 165# 166# FreeType2 library anti-aliasing raster module 167# 168smooth.ppc.o: $(FTSRC)/smooth/smooth.c 169 $(CC) -c $(CFLAGS) -o $@ $< 170 171# 172# FreeType2 library 'sfnt' module 173# 174sfnt.ppc.o: $(FTSRC)/sfnt/sfnt.c 175 $(CC) -c $(CFLAGS) -o $@ $< 176 177# 178# FreeType2 library glyph and image caching system 179# 180ftcache.ppc.o: $(FTSRC)/cache/ftcache.c 181 $(CC) -c $(CFLAGS) -o $@ $< 182 183# 184# FreeType2 library OpenType font driver 185# 186cff.ppc.o: $(FTSRC)/cff/cff.c 187 $(CC) -c $(CFLAGS) -o $@ $< 188 189# 190# FreeType2 library TrueType font driver 191# 192truetype.ppc.o: $(FTSRC)/truetype/truetype.c 193 $(CC) -c $(CFLAGS) -o $@ $< 194 195# 196# FreeType2 library Type1 font driver 197# 198type1.ppc.o: $(FTSRC)/type1/type1.c 199 $(CC) -c $(CFLAGS) -o $@ $< 200 201# 202# FreeType2 library Type42 font driver 203# 204type42.ppc.o: $(FTSRC)/type42/type42.c 205 $(CC) -c $(CFLAGS) -o $@ $< 206 207# 208# FreeType2 library CID-keyed Type1 font driver 209# 210type1cid.ppc.o: $(FTSRC)/cid/type1cid.c 211 $(CC) -c $(CFLAGS) -o $@ $< 212 213# 214# FreeType2 library BDF bitmap font driver 215# 216bdf.ppc.o: $(FTSRC)/bdf/bdf.c 217 $(CC) -c $(CFLAGS) -o $@ $< 218 219# 220# FreeType2 library PCF bitmap font driver 221# 222pcf.ppc.o: $(FTSRC)/pcf/pcf.c 223 $(CC) -c $(CFLAGS) -o $@ $< 224 225# 226# FreeType2 library gzip support for compressed PCF bitmap fonts 227# 228gzip.ppc.o: $(FTSRC)/gzip/ftgzip.c 229 $(CC) -c $(CFLAGS) -o $@ $< 230 231# FreeType2 library bzip2 support for compressed PCF bitmap fonts 232# 233bzip2.ppc.o: $(FTSRC)/bzip2/ftbzip2.c 234 $(CC) -c $(CFLAGS) -o $@ $< 235 236# 237# FreeType2 library compress support for compressed PCF bitmap fonts 238# 239lzw.ppc.o: $(FTSRC)/lzw/ftlzw.c 240 $(CC) -c $(CFLAGS) -o $@ $< 241 242# 243# FreeType2 library PFR font driver 244# 245pfr.ppc.o: $(FTSRC)/pfr/pfr.c 246 $(CC) -c $(CFLAGS) -o $@ $< 247 248# 249# FreeType2 library Windows FNT/FON bitmap font driver 250# 251winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c 252 $(CC) -c $(CFLAGS) -o $@ $< 253 254# 255# FreeType2 library TrueTypeGX Validator 256# 257gxvalid.ppc.o: $(FTSRC)/gxvalid/gxvalid.c 258 $(CC) -c $(CFLAGS) -o $@ $< 259 260# 261# FreeType2 library OpenType validator 262# 263otvalid.ppc.o: $(FTSRC)/otvalid/otvalid.c 264 $(CC) -c $(CFLAGS) -o $@ $< 265 266BASEPPC = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \ 267 oftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o \ 268 ftgxval.ppc.o ftmm.ppc.o ftotval.ppc.o \ 269 ftpatent.ppc.o ftpfr.ppc.o ftstroke.ppc.o ftsynth.ppc.o \ 270 fttype1.ppc.o ftwinfnt.ppc.o 271 272DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o 273 274AFITPPC = autofit.ppc.o 275 276GXVPPC = gxvalid.ppc.o 277 278OTVPPC = otvalid.ppc.o 279 280PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o 281 282RASTERPPC = raster.ppc.o smooth.ppc.o 283 284FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\ 285 bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o 286 287libft2_ppc.a: $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o bzip2.ppc.o lzw.ppc.o 288 $(AR) $@ $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o bzip2.ppc.o lzw.ppc.o 289 -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 290 291#Local Variables: 292#coding: latin-1 293#End: 294