2 # FreeType 2 OpenType validation driver configuration rules
6 # Copyright (C) 2004-2020 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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
16 # OTV driver directory
18 OTV_DIR := $(SRC_DIR)/otvalid
21 # compilation flags for the driver
23 OTV_COMPILE := $(CC) $(ANSIFLAGS) \
24 $I$(subst /,$(COMPILER_SEP),$(OTV_DIR)) \
29 # OTV driver sources (i.e., C files)
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 \
42 OTV_DRV_H := $(OTV_DIR)/otvalid.h \
43 $(OTV_DIR)/otvcommn.h \
44 $(OTV_DIR)/otverror.h \
45 $(OTV_DIR)/otvgpos.h \
49 # OTV driver object(s)
51 # OTV_DRV_OBJ_M is used during `multi' builds.
52 # OTV_DRV_OBJ_S is used during `single' builds.
54 OTV_DRV_OBJ_M := $(OTV_DRV_SRC:$(OTV_DIR)/%.c=$(OBJ_DIR)/%.$O)
55 OTV_DRV_OBJ_S := $(OBJ_DIR)/otvalid.$O
57 # OTV driver source file for single build
59 OTV_DRV_SRC_S := $(OTV_DIR)/otvalid.c
62 # OTV driver - single object
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))
69 # OTV driver - multiple objects
71 $(OBJ_DIR)/%.$O: $(OTV_DIR)/%.c $(FREETYPE_H) $(OTV_DRV_H)
72 $(OTV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
75 # update main driver object lists
77 DRV_OBJS_S += $(OTV_DRV_OBJ_S)
78 DRV_OBJS_M += $(OTV_DRV_OBJ_M)