PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/modules/freetype2/src/pshinter/rules.mk

http://github.com/zpao/v8monkey
Makefile | 72 lines | 18 code | 21 blank | 33 comment | 0 complexity | 7b27ac2ac6fe489519e8569b4b9ce434 MD5 | raw file
 1#
 2# FreeType 2 PSHinter driver configuration rules
 3#
 4
 5
 6# Copyright 2001, 2003 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# PSHINTER driver directory
17#
18PSHINTER_DIR := $(SRC_DIR)/pshinter
19
20
21# compilation flags for the driver
22#
23PSHINTER_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PSHINTER_DIR))
24
25
26# PSHINTER driver sources (i.e., C files)
27#
28PSHINTER_DRV_SRC := $(PSHINTER_DIR)/pshrec.c  \
29                    $(PSHINTER_DIR)/pshglob.c \
30                    $(PSHINTER_DIR)/pshmod.c  \
31                    $(PSHINTER_DIR)/pshalgo.c
32
33
34# PSHINTER driver headers
35#
36PSHINTER_DRV_H := $(PSHINTER_DRV_SRC:%c=%h) \
37                  $(PSHINTER_DIR)/pshnterr.h
38
39
40# PSHINTER driver object(s)
41#
42#   PSHINTER_DRV_OBJ_M is used during `multi' builds.
43#   PSHINTER_DRV_OBJ_S is used during `single' builds.
44#
45PSHINTER_DRV_OBJ_M := $(PSHINTER_DRV_SRC:$(PSHINTER_DIR)/%.c=$(OBJ_DIR)/%.$O)
46PSHINTER_DRV_OBJ_S := $(OBJ_DIR)/pshinter.$O
47
48# PSHINTER driver source file for single build
49#
50PSHINTER_DRV_SRC_S := $(PSHINTER_DIR)/pshinter.c
51
52
53# PSHINTER driver - single object
54#
55$(PSHINTER_DRV_OBJ_S): $(PSHINTER_DRV_SRC_S) $(PSHINTER_DRV_SRC) \
56                       $(FREETYPE_H) $(PSHINTER_DRV_H)
57	$(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSHINTER_DRV_SRC_S))
58
59
60# PSHINTER driver - multiple objects
61#
62$(OBJ_DIR)/%.$O: $(PSHINTER_DIR)/%.c $(FREETYPE_H) $(PSHINTER_DRV_H)
63	$(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
64
65
66# update main driver object lists
67#
68DRV_OBJS_S += $(PSHINTER_DRV_OBJ_S)
69DRV_OBJS_M += $(PSHINTER_DRV_OBJ_M)
70
71
72# EOF