~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/src/base/rules.mk

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# FreeType 2 base layer configuration rules
 
3
#
 
4
 
 
5
 
 
6
# Copyright 1996-2000, 2002, 2003, 2004 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
# It sets the following variables which are used by the master Makefile
 
17
# after the call:
 
18
#
 
19
#   BASE_OBJ_S:   The single-object base layer.
 
20
#   BASE_OBJ_M:   A list of all objects for a multiple-objects build.
 
21
#   BASE_EXT_OBJ: A list of base layer extensions, i.e., components found
 
22
#                 in `freetype/src/base' which are not compiled within the
 
23
#                 base layer proper.
 
24
#
 
25
# BASE_H is defined in freetype.mk to simplify the dependency rules.
 
26
 
 
27
 
 
28
BASE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(SRC_DIR)/base)
 
29
 
 
30
 
 
31
# Base layer sources
 
32
#
 
33
#   ftsystem, ftinit, and ftdebug are handled by freetype.mk
 
34
#
 
35
BASE_SRC := $(BASE_DIR)/ftapi.c    \
 
36
            $(BASE_DIR)/ftcalc.c   \
 
37
            $(BASE_DIR)/ftdbgmem.c \
 
38
            $(BASE_DIR)/ftgloadr.c \
 
39
            $(BASE_DIR)/ftnames.c  \
 
40
            $(BASE_DIR)/ftobjs.c   \
 
41
            $(BASE_DIR)/ftoutln.c  \
 
42
            $(BASE_DIR)/ftrfork.c  \
 
43
            $(BASE_DIR)/ftstream.c \
 
44
            $(BASE_DIR)/fttrigon.c \
 
45
            $(BASE_DIR)/ftutil.c
 
46
 
 
47
# Base layer `extensions' sources
 
48
#
 
49
# An extension is added to the library file (.a or .lib) as a separate
 
50
# object.  It will then be linked to the final executable only if one of its
 
51
# symbols is used by the application.
 
52
#
 
53
BASE_EXT_SRC := $(BASE_DIR)/ftbbox.c   \
 
54
                $(BASE_DIR)/ftbdf.c    \
 
55
                $(BASE_DIR)/ftglyph.c  \
 
56
                $(BASE_DIR)/ftmm.c     \
 
57
                $(BASE_DIR)/ftpfr.c    \
 
58
                $(BASE_DIR)/ftstroke.c \
 
59
                $(BASE_DIR)/fttype1.c  \
 
60
                $(BASE_DIR)/ftwinfnt.c \
 
61
                $(BASE_DIR)/ftxf86.c
 
62
 
 
63
# Default extensions objects
 
64
#
 
65
BASE_EXT_OBJ := $(BASE_EXT_SRC:$(BASE_DIR)/%.c=$(OBJ_DIR)/%.$O)
 
66
 
 
67
 
 
68
# Base layer object(s)
 
69
#
 
70
#   BASE_OBJ_M is used during `multi' builds (each base source file compiles
 
71
#   to a single object file).
 
72
#
 
73
#   BASE_OBJ_S is used during `single' builds (the whole base layer is
 
74
#   compiled as a single object file using ftbase.c).
 
75
#
 
76
BASE_OBJ_M := $(BASE_SRC:$(BASE_DIR)/%.c=$(OBJ_DIR)/%.$O)
 
77
BASE_OBJ_S := $(OBJ_DIR)/ftbase.$O
 
78
 
 
79
# Base layer root source file for single build
 
80
#
 
81
BASE_SRC_S := $(BASE_DIR)/ftbase.c
 
82
 
 
83
 
 
84
# Base layer - single object build
 
85
#
 
86
$(BASE_OBJ_S): $(BASE_SRC_S) $(BASE_SRC) $(FREETYPE_H)
 
87
        $(BASE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BASE_SRC_S))
 
88
 
 
89
 
 
90
# Multiple objects build + extensions
 
91
#
 
92
$(OBJ_DIR)/%.$O: $(BASE_DIR)/%.c $(FREETYPE_H)
 
93
        $(BASE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
 
94
 
 
95
 
 
96
# EOF