2 # FreeType 2 pcf driver configuration rules
6 # Copyright (C) 2000, 2001 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
28 # pcf driver directory
31 PCF_DIR_ := $(PCF_DIR)$(SEP)
34 PCF_COMPILE := $(FT_COMPILE) $I$(PCF_DIR)
37 # pcf driver sources (i.e., C files)
39 PCF_DRV_SRC := $(PCF_DIR_)pcfread.c \
40 $(PCF_DIR_)pcfdriver.c \
45 PCF_DRV_H := $(PCF_DIR_)pcf.h \
46 $(PCF_DIR_)pcfdriver.h \
47 $(PCF_DIR_)pcfutil.h \
50 # pcf driver object(s)
52 # PCF_DRV_OBJ_M is used during `multi' builds
53 # PCF_DRV_OBJ_S is used during `single' builds
55 PCF_DRV_OBJ_M := $(PCF_DRV_SRC:$(PCF_DIR_)%.c=$(OBJ_)%.$O)
56 PCF_DRV_OBJ_S := $(OBJ_)pcf.$O
58 # Windows driver source file for single build
60 PCF_DRV_SRC_S := $(PCF_DIR_)pcf.c
63 # pcf driver - single object
65 $(PCF_DRV_OBJ_S): $(PCF_DRV_SRC_S) $(PCF_DRV_SRC) $(FREETYPE_H) $(PCF_DRV_H)
66 $(PCF_COMPILE) $T$@ $(PCF_DRV_SRC_S)
69 # pcf driver - multiple objects
71 $(OBJ_)%.$O: $(PCF_DIR_)%.c $(FREETYPE_H) $(PCF_DRV_H)
72 $(PCF_COMPILE) $T$@ $<
75 # update main driver object lists
77 DRV_OBJS_S += $(PCF_DRV_OBJ_S)
78 DRV_OBJS_M += $(PCF_DRV_OBJ_M)