blob: f991449f5f2333e3814d75b25c74fdce70ccd5e2 [file] [log] [blame]
Werner Lemberg347a7142002-05-15 06:16:57 +00001#
2# FreeType 2 Type42 driver configuration rules
3#
4
5
6# Copyright 2002 by
7# David Turner, Robert Wilhelm, and Werner Lemberg.
8#
9# This file is part of the FreeType project, and may only be used, modified,
10# and distributed under the terms of the FreeType project license,
11# LICENSE.TXT. By continuing to use, modify, or distribute this file you
12# indicate that you have read the license and understand and accept it
13# fully.
14
15
16# Type42 driver directory
17#
18T42_DIR := $(SRC_)type42
19T42_DIR_ := $(T42_DIR)$(SEP)
20
21
22# compilation flags for the driver
23#
24T42_COMPILE := $(FT_COMPILE) $I$(T42_DIR)
25
26
27# Type42 driver source
28#
David Turner9f95bab2002-06-07 07:23:06 +000029T42_DRV_SRC := $(T42_DIR_)t42objs.c \
30 $(T42_DIR_)t42parse.c \
31 $(T42_DIR_)t42drivr.c
Werner Lemberg347a7142002-05-15 06:16:57 +000032
33# Type42 driver headers
34#
Werner Lemberg8c90c222002-06-08 06:47:18 +000035T42_DRV_H := $(T42_DRV_SRC:%.c=%.h) \
36 $(T42_DIR_)t42error.h
Werner Lemberg347a7142002-05-15 06:16:57 +000037
38
39# Type42 driver object(s)
40#
41# T42_DRV_OBJ_M is used during `multi' builds
42# T42_DRV_OBJ_S is used during `single' builds
43#
44T42_DRV_OBJ_M := $(T42_DRV_SRC:$(T42_DIR_)%.c=$(OBJ_)%.$O)
David Turner9f95bab2002-06-07 07:23:06 +000045T42_DRV_OBJ_S := $(OBJ_)type42.$O
Werner Lemberg347a7142002-05-15 06:16:57 +000046
47# Type42 driver source file for single build
48#
David Turnerf47d5f02002-06-07 22:09:20 +000049T42_DRV_SRC_S := $(T42_DIR_)type42.c
Werner Lemberg347a7142002-05-15 06:16:57 +000050
51
52# Type42 driver - single object
53#
54$(T42_DRV_OBJ_S): $(T42_DRV_SRC_S) $(T42_DRV_SRC) $(FREETYPE_H) $(T42_DRV_H)
55 $(T42_COMPILE) $T$@ $(T42_DRV_SRC_S)
56
57
58# Type42 driver - multiple objects
59#
60$(OBJ_)%.$O: $(T42_DIR_)%.c $(FREETYPE_H) $(T42_DRV_H)
61 $(T42_COMPILE) $T$@ $<
62
63
64# update main driver object lists
65#
66DRV_OBJS_S += $(T42_DRV_OBJ_S)
67DRV_OBJS_M += $(T42_DRV_OBJ_M)
68
69# EOF