2 # FreeType 2 OpenType validation driver configuration rules
6 # Copyright 2004, 2007 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
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(OTV_DIR
))
26 # OTV driver sources (i.e., C files)
28 OTV_DRV_SRC
:= $(OTV_DIR
)/otvbase.c \
29 $(OTV_DIR
)/otvcommn.c \
30 $(OTV_DIR
)/otvgdef.c \
31 $(OTV_DIR
)/otvgpos.c \
32 $(OTV_DIR
)/otvgsub.c \
33 $(OTV_DIR
)/otvjstf.c \
34 $(OTV_DIR
)/otvmath.c \
39 OTV_DRV_H
:= $(OTV_DIR
)/otvalid.h \
40 $(OTV_DIR
)/otvcommn.h \
41 $(OTV_DIR
)/otverror.h \
42 $(OTV_DIR
)/otvgpos.h \
46 # OTV driver object(s)
48 # OTV_DRV_OBJ_M is used during `multi' builds.
49 # OTV_DRV_OBJ_S is used during `single' builds.
51 OTV_DRV_OBJ_M
:= $(OTV_DRV_SRC
:$(OTV_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
52 OTV_DRV_OBJ_S
:= $(OBJ_DIR
)/otvalid.
$O
54 # OTV driver source file for single build
56 OTV_DRV_SRC_S
:= $(OTV_DIR
)/otvalid.c
59 # OTV driver - single object
61 $(OTV_DRV_OBJ_S
): $(OTV_DRV_SRC_S
) $(OTV_DRV_SRC
) \
62 $(FREETYPE_H
) $(OTV_DRV_H
)
63 $(OTV_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(OTV_DRV_SRC_S
))
66 # OTV driver - multiple objects
68 $(OBJ_DIR
)/%.
$O: $(OTV_DIR
)/%.c
$(FREETYPE_H
) $(OTV_DRV_H
)
69 $(OTV_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
72 # update main driver object lists
74 DRV_OBJS_S
+= $(OTV_DRV_OBJ_S
)
75 DRV_OBJS_M
+= $(OTV_DRV_OBJ_M
)