Sync trunk.
[reactos.git] / lib / 3rdparty / freetype / src / otvalid / rules.mk
1 #
2 # FreeType 2 OpenType validation driver configuration rules
3 #
4
5
6 # Copyright 2004, 2007 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 := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(OTV_DIR))
24
25
26 # OTV driver sources (i.e., C files)
27 #
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 \
35 $(OTV_DIR)/otvmod.c
36
37 # OTV driver headers
38 #
39 OTV_DRV_H := $(OTV_DIR)/otvalid.h \
40 $(OTV_DIR)/otvcommn.h \
41 $(OTV_DIR)/otverror.h \
42 $(OTV_DIR)/otvgpos.h \
43 $(OTV_DIR)/otvmod.h
44
45
46 # OTV driver object(s)
47 #
48 # OTV_DRV_OBJ_M is used during `multi' builds.
49 # OTV_DRV_OBJ_S is used during `single' builds.
50 #
51 OTV_DRV_OBJ_M := $(OTV_DRV_SRC:$(OTV_DIR)/%.c=$(OBJ_DIR)/%.$O)
52 OTV_DRV_OBJ_S := $(OBJ_DIR)/otvalid.$O
53
54 # OTV driver source file for single build
55 #
56 OTV_DRV_SRC_S := $(OTV_DIR)/otvalid.c
57
58
59 # OTV driver - single object
60 #
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))
64
65
66 # OTV driver - multiple objects
67 #
68 $(OBJ_DIR)/%.$O: $(OTV_DIR)/%.c $(FREETYPE_H) $(OTV_DRV_H)
69 $(OTV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
70
71
72 # update main driver object lists
73 #
74 DRV_OBJS_S += $(OTV_DRV_OBJ_S)
75 DRV_OBJS_M += $(OTV_DRV_OBJ_M)
76
77
78 # EOF