2 # FreeType 2 PSNames driver configuration rules
6 # Copyright 1996-2000, 2001 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 # PSNames driver directory
18 PSNAMES_DIR := $(SRC_)psnames
19 PSNAMES_DIR_ := $(PSNAMES_DIR)$(SEP)
22 # compilation flags for the driver
24 PSNAMES_COMPILE := $(FT_COMPILE) $I$(PSNAMES_DIR)
27 # PSNames driver sources (i.e., C files)
29 PSNAMES_DRV_SRC := $(PSNAMES_DIR_)psmodule.c
32 # PSNames driver headers
34 PSNAMES_DRV_H := $(PSNAMES_DRV_SRC:%.c=%.h) \
35 $(PSNAMES_DIR_)pstables.h \
36 $(PSNAMES_DIR_)psnamerr.h
39 # PSNames driver object(s)
41 # PSNAMES_DRV_OBJ_M is used during `multi' builds
42 # PSNAMES_DRV_OBJ_S is used during `single' builds
44 PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR_)%.c=$(OBJ_)%.$O)
45 PSNAMES_DRV_OBJ_S := $(OBJ_)psnames.$O
47 # PSNames driver source file for single build
49 PSNAMES_DRV_SRC_S := $(PSNAMES_DIR_)psmodule.c
52 # PSNames driver - single object
54 $(PSNAMES_DRV_OBJ_S): $(PSNAMES_DRV_SRC_S) $(PSNAMES_DRV_SRC) \
55 $(FREETYPE_H) $(PSNAMES_DRV_H)
56 $(PSNAMES_COMPILE) $T$@ $(PSNAMES_DRV_SRC_S)
59 # PSNames driver - multiple objects
61 $(OBJ_)%.$O: $(PSNAMES_DIR_)%.c $(FREETYPE_H) $(PSNAMES_DRV_H)
62 $(PSNAMES_COMPILE) $T$@ $<
65 # update main driver object lists
67 DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
68 DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)