b1a3ed9f8eb9dfd12789e5875ff8c44d6ef33672
[reactos.git] / lib / freetype / src / bdf / rules.mk
1 #
2 # FreeType 2 bdf driver configuration rules
3 #
4
5
6 # Copyright (C) 2001, 2002 by
7 # Francesco Zappa Nardelli
8 #
9 # Permission is hereby granted, free of charge, to any person obtaining a copy
10 # of this software and associated documentation files (the "Software"), to deal
11 # in the Software without restriction, including without limitation the rights
12 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 # copies of the Software, and to permit persons to whom the Software is
14 # furnished to do so, subject to the following conditions:
15 #
16 # The above copyright notice and this permission notice shall be included in
17 # all copies or substantial portions of the Software.
18 #
19 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
22 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 # THE SOFTWARE.
26
27
28
29
30 # bdf driver directory
31 #
32 BDF_DIR  := $(SRC_)bdf
33 BDF_DIR_ := $(BDF_DIR)$(SEP)
34
35
36 BDF_COMPILE := $(FT_COMPILE) $I$(BDF_DIR)
37
38
39 # bdf driver sources (i.e., C files)
40 #
41 BDF_DRV_SRC := $(BDF_DIR_)bdflib.c $(BDF_DIR_)bdfdrivr.c
42
43
44 # bdf driver headers
45 #
46 BDF_DRV_H := $(BDF_DIR_)bdf.h \
47              $(BDF_DIR_)bdfdrivr.h
48
49 # bdf driver object(s)
50 #
51 #   BDF_DRV_OBJ_M is used during `multi' builds
52 #   BDF_DRV_OBJ_S is used during `single' builds
53 #
54 BDF_DRV_OBJ_M := $(BDF_DRV_SRC:$(BDF_DIR_)%.c=$(OBJ_)%.$O)
55 BDF_DRV_OBJ_S := $(OBJ_)bdf.$O
56
57 # bdf driver source file for single build
58 #
59 BDF_DRV_SRC_S := $(BDF_DIR_)bdf.c
60
61
62 # bdf driver - single object
63 #
64 $(BDF_DRV_OBJ_S): $(BDF_DRV_SRC_S) $(BDF_DRV_SRC) $(FREETYPE_H) $(BDF_DRV_H)
65         $(BDF_COMPILE) $T$@ $(BDF_DRV_SRC_S)
66
67
68 # bdf driver - multiple objects
69 #
70 $(OBJ_)%.$O: $(BDF_DIR_)%.c $(FREETYPE_H) $(BDF_DRV_H)
71         $(BDF_COMPILE) $T$@ $<
72
73
74 # update main driver object lists
75 #
76 DRV_OBJS_S += $(BDF_DRV_OBJ_S)
77 DRV_OBJS_M += $(BDF_DRV_OBJ_M)
78
79 # EOF