• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# FreeType 2 Type42 driver configuration rules
3#
4
5
6# Copyright (C) 2002-2020 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_DIR)/type42
19
20
21# compilation flags for the driver
22#
23T42_COMPILE := $(CC) $(ANSIFLAGS)                            \
24                     $I$(subst /,$(COMPILER_SEP),$(T42_DIR)) \
25                     $(INCLUDE_FLAGS)                        \
26                     $(FT_CFLAGS)
27
28
29# Type42 driver source
30#
31T42_DRV_SRC := $(T42_DIR)/t42objs.c  \
32               $(T42_DIR)/t42parse.c \
33               $(T42_DIR)/t42drivr.c
34
35# Type42 driver headers
36#
37T42_DRV_H := $(T42_DRV_SRC:%.c=%.h) \
38             $(T42_DIR)/t42error.h  \
39             $(T42_DIR)/t42types.h
40
41
42# Type42 driver object(s)
43#
44#   T42_DRV_OBJ_M is used during `multi' builds
45#   T42_DRV_OBJ_S is used during `single' builds
46#
47T42_DRV_OBJ_M := $(T42_DRV_SRC:$(T42_DIR)/%.c=$(OBJ_DIR)/%.$O)
48T42_DRV_OBJ_S := $(OBJ_DIR)/type42.$O
49
50# Type42 driver source file for single build
51#
52T42_DRV_SRC_S := $(T42_DIR)/type42.c
53
54
55# Type42 driver - single object
56#
57$(T42_DRV_OBJ_S): $(T42_DRV_SRC_S) $(T42_DRV_SRC) $(FREETYPE_H) $(T42_DRV_H)
58	$(T42_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(T42_DRV_SRC_S))
59
60
61# Type42 driver - multiple objects
62#
63$(OBJ_DIR)/%.$O: $(T42_DIR)/%.c $(FREETYPE_H) $(T42_DRV_H)
64	$(T42_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
65
66
67# update main driver object lists
68#
69DRV_OBJS_S += $(T42_DRV_OBJ_S)
70DRV_OBJS_M += $(T42_DRV_OBJ_M)
71
72
73# EOF
74