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