Imported Upstream version 2.13.2
[platform/upstream/freetype2.git] / src / otvalid / rules.mk
1 #
2 # FreeType 2 OpenType validation driver configuration rules
3 #
4
5
6 # Copyright (C) 2004-2023 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 # OTV driver directory
17 #
18 OTV_DIR := $(SRC_DIR)/otvalid
19
20
21 # compilation flags for the driver
22 #
23 OTV_COMPILE := $(CC) $(ANSIFLAGS)                            \
24                      $I$(subst /,$(COMPILER_SEP),$(OTV_DIR)) \
25                      $(INCLUDE_FLAGS)                        \
26                      $(FT_CFLAGS)
27
28
29 # OTV driver sources (i.e., C files)
30 #
31 OTV_DRV_SRC := $(OTV_DIR)/otvbase.c  \
32                $(OTV_DIR)/otvcommn.c \
33                $(OTV_DIR)/otvgdef.c  \
34                $(OTV_DIR)/otvgpos.c  \
35                $(OTV_DIR)/otvgsub.c  \
36                $(OTV_DIR)/otvjstf.c  \
37                $(OTV_DIR)/otvmath.c  \
38                $(OTV_DIR)/otvmod.c
39
40 # OTV driver headers
41 #
42 OTV_DRV_H := $(OTV_DIR)/otvalid.h  \
43              $(OTV_DIR)/otvcommn.h \
44              $(OTV_DIR)/otverror.h \
45              $(OTV_DIR)/otvgpos.h  \
46              $(OTV_DIR)/otvmod.h
47
48
49 # OTV driver object(s)
50 #
51 #   OTV_DRV_OBJ_M is used during `multi' builds.
52 #   OTV_DRV_OBJ_S is used during `single' builds.
53 #
54 OTV_DRV_OBJ_M := $(OTV_DRV_SRC:$(OTV_DIR)/%.c=$(OBJ_DIR)/%.$O)
55 OTV_DRV_OBJ_S := $(OBJ_DIR)/otvalid.$O
56
57 # OTV driver source file for single build
58 #
59 OTV_DRV_SRC_S := $(OTV_DIR)/otvalid.c
60
61
62 # OTV driver - single object
63 #
64 $(OTV_DRV_OBJ_S): $(OTV_DRV_SRC_S) $(OTV_DRV_SRC) \
65                    $(FREETYPE_H) $(OTV_DRV_H)
66         $(OTV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(OTV_DRV_SRC_S))
67
68
69 # OTV driver - multiple objects
70 #
71 $(OBJ_DIR)/%.$O: $(OTV_DIR)/%.c $(FREETYPE_H) $(OTV_DRV_H)
72         $(OTV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
73
74
75 # update main driver object lists
76 #
77 DRV_OBJS_S += $(OTV_DRV_OBJ_S)
78 DRV_OBJS_M += $(OTV_DRV_OBJ_M)
79
80
81 # EOF