2 # FreeType 2 bdf driver configuration rules
6 # Copyright (C) 2001, 2002, 2003, 2008 by
7 # Francesco Zappa Nardelli
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:
16 # The above copyright notice and this permission notice shall be included in
17 # all copies or substantial portions of the Software.
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
30 # bdf driver directory
32 BDF_DIR := $(SRC_DIR)/bdf
35 BDF_COMPILE := $(CC) $(ANSIFLAGS) \
36 $I$(subst /,$(COMPILER_SEP),$(BDF_DIR)) \
41 # bdf driver sources (i.e., C files)
43 BDF_DRV_SRC := $(BDF_DIR)/bdflib.c \
49 BDF_DRV_H := $(BDF_DIR)/bdf.h \
50 $(BDF_DIR)/bdfdrivr.h \
53 # bdf driver object(s)
55 # BDF_DRV_OBJ_M is used during `multi' builds
56 # BDF_DRV_OBJ_S is used during `single' builds
58 BDF_DRV_OBJ_M := $(BDF_DRV_SRC:$(BDF_DIR)/%.c=$(OBJ_DIR)/%.$O)
59 BDF_DRV_OBJ_S := $(OBJ_DIR)/bdf.$O
61 # bdf driver source file for single build
63 BDF_DRV_SRC_S := $(BDF_DIR)/bdf.c
66 # bdf driver - single object
68 $(BDF_DRV_OBJ_S): $(BDF_DRV_SRC_S) $(BDF_DRV_SRC) $(FREETYPE_H) $(BDF_DRV_H)
69 $(BDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BDF_DRV_SRC_S))
72 # bdf driver - multiple objects
74 $(OBJ_DIR)/%.$O: $(BDF_DIR)/%.c $(FREETYPE_H) $(BDF_DRV_H)
75 $(BDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
78 # update main driver object lists
80 DRV_OBJS_S += $(BDF_DRV_OBJ_S)
81 DRV_OBJS_M += $(BDF_DRV_OBJ_M)