blob: eac1081eb1f87233a60121b992b01c500194cab9 [file] [log] [blame]
Werner Lemberg347a7142002-05-15 06:16:57 +00001#
2# FreeType 2 Type42 driver configuration rules
3#
4
5
Werner Lemberg89a1a512008-10-02 06:48:10 +00006# Copyright 2002, 2003, 2008 by
Werner Lemberg347a7142002-05-15 06:16:57 +00007# 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#
Werner Lemberg858f3102003-06-09 04:46:30 +000018T42_DIR := $(SRC_DIR)/type42
Werner Lemberg347a7142002-05-15 06:16:57 +000019
20
21# compilation flags for the driver
22#
Werner Lemberg858f3102003-06-09 04:46:30 +000023T42_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(T42_DIR))
Werner Lemberg347a7142002-05-15 06:16:57 +000024
25
26# Type42 driver source
27#
Werner Lemberg858f3102003-06-09 04:46:30 +000028T42_DRV_SRC := $(T42_DIR)/t42objs.c \
29 $(T42_DIR)/t42parse.c \
30 $(T42_DIR)/t42drivr.c
Werner Lemberg347a7142002-05-15 06:16:57 +000031
32# Type42 driver headers
33#
Werner Lemberg8c90c222002-06-08 06:47:18 +000034T42_DRV_H := $(T42_DRV_SRC:%.c=%.h) \
Werner Lemberg89a1a512008-10-02 06:48:10 +000035 $(T42_DIR)/t42error.h \
36 $(T42_DIR)/t42types.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#
Werner Lemberg858f3102003-06-09 04:46:30 +000044T42_DRV_OBJ_M := $(T42_DRV_SRC:$(T42_DIR)/%.c=$(OBJ_DIR)/%.$O)
45T42_DRV_OBJ_S := $(OBJ_DIR)/type42.$O
Werner Lemberg347a7142002-05-15 06:16:57 +000046
47# Type42 driver source file for single build
48#
Werner Lemberg858f3102003-06-09 04:46:30 +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)
Werner Lemberg858f3102003-06-09 04:46:30 +000055 $(T42_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(T42_DRV_SRC_S))
Werner Lemberg347a7142002-05-15 06:16:57 +000056
57
58# Type42 driver - multiple objects
59#
Werner Lemberg858f3102003-06-09 04:46:30 +000060$(OBJ_DIR)/%.$O: $(T42_DIR)/%.c $(FREETYPE_H) $(T42_DRV_H)
61 $(T42_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
Werner Lemberg347a7142002-05-15 06:16:57 +000062
63
64# update main driver object lists
65#
66DRV_OBJS_S += $(T42_DRV_OBJ_S)
67DRV_OBJS_M += $(T42_DRV_OBJ_M)
68
Werner Lemberg858f3102003-06-09 04:46:30 +000069
Werner Lemberg347a7142002-05-15 06:16:57 +000070# EOF