blob: 15087b03044a467f7e94f474edcc96708cec28bf [file] [log] [blame]
David Turnera4e28942000-10-26 00:30:33 +00001#
Werner Lembergb5084e12000-10-28 17:10:06 +00002# FreeType 2 Type1 driver configuration rules
David Turnera4e28942000-10-26 00:30:33 +00003#
4
5
Werner Lemberg858f3102003-06-09 04:46:30 +00006# Copyright 1996-2000, 2001, 2003 by
David Turnera4e28942000-10-26 00:30:33 +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# Type1 driver directory
17#
Werner Lemberg858f3102003-06-09 04:46:30 +000018T1_DIR := $(SRC_DIR)/type1
David Turnera4e28942000-10-26 00:30:33 +000019
20
21# compilation flags for the driver
22#
Werner Lemberg858f3102003-06-09 04:46:30 +000023T1_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(T1_DIR))
David Turnera4e28942000-10-26 00:30:33 +000024
25
26# Type1 driver sources (i.e., C files)
27#
Werner Lemberg858f3102003-06-09 04:46:30 +000028T1_DRV_SRC := $(T1_DIR)/t1parse.c \
29 $(T1_DIR)/t1load.c \
30 $(T1_DIR)/t1driver.c \
31 $(T1_DIR)/t1afm.c \
32 $(T1_DIR)/t1gload.c \
33 $(T1_DIR)/t1objs.c
David Turnera4e28942000-10-26 00:30:33 +000034
35# Type1 driver headers
36#
37T1_DRV_H := $(T1_DRV_SRC:%.c=%.h) \
Werner Lemberg858f3102003-06-09 04:46:30 +000038 $(T1_DIR)/t1tokens.h \
39 $(T1_DIR)/t1errors.h
David Turnera4e28942000-10-26 00:30:33 +000040
41
Werner Lembergb5084e12000-10-28 17:10:06 +000042# Type1 driver object(s)
David Turnera4e28942000-10-26 00:30:33 +000043#
44# T1_DRV_OBJ_M is used during `multi' builds
45# T1_DRV_OBJ_S is used during `single' builds
46#
Werner Lemberg858f3102003-06-09 04:46:30 +000047T1_DRV_OBJ_M := $(T1_DRV_SRC:$(T1_DIR)/%.c=$(OBJ_DIR)/%.$O)
48T1_DRV_OBJ_S := $(OBJ_DIR)/type1.$O
David Turnera4e28942000-10-26 00:30:33 +000049
Werner Lembergb5084e12000-10-28 17:10:06 +000050# Type1 driver source file for single build
David Turnera4e28942000-10-26 00:30:33 +000051#
Werner Lemberg858f3102003-06-09 04:46:30 +000052T1_DRV_SRC_S := $(T1_DIR)/type1.c
David Turnera4e28942000-10-26 00:30:33 +000053
54
Werner Lembergb5084e12000-10-28 17:10:06 +000055# Type1 driver - single object
David Turnera4e28942000-10-26 00:30:33 +000056#
57$(T1_DRV_OBJ_S): $(T1_DRV_SRC_S) $(T1_DRV_SRC) $(FREETYPE_H) $(T1_DRV_H)
Werner Lemberg858f3102003-06-09 04:46:30 +000058 $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(T1_DRV_SRC_S))
David Turnera4e28942000-10-26 00:30:33 +000059
60
Werner Lembergb5084e12000-10-28 17:10:06 +000061# Type1 driver - multiple objects
David Turnera4e28942000-10-26 00:30:33 +000062#
Werner Lemberg858f3102003-06-09 04:46:30 +000063$(OBJ_DIR)/%.$O: $(T1_DIR)/%.c $(FREETYPE_H) $(T1_DRV_H)
64 $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
David Turnera4e28942000-10-26 00:30:33 +000065
66
67# update main driver object lists
68#
69DRV_OBJS_S += $(T1_DRV_OBJ_S)
70DRV_OBJS_M += $(T1_DRV_OBJ_M)
71
Werner Lemberg858f3102003-06-09 04:46:30 +000072
David Turnera4e28942000-10-26 00:30:33 +000073# EOF