2 # FreeType 2 base layer configuration rules
6 # Copyright 1996-2000 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 # It sets the following variables which are used by the master Makefile
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
25 # BASE_H is defined in freetype.mk to simplify the dependency rules.
28 BASE_COMPILE := $(FT_COMPILE) $I$(SRC_)base
33 # ftsystem, ftinit, and ftdebug are handled by freetype.mk
35 BASE_SRC := $(BASE_)ftcalc.c \
42 # Base layer `extensions' sources
44 # An extension is added to the library file (.a or .lib) as a separate
45 # object. It will then be linked to the final executable only if one of its
46 # symbols is used by the application.
48 BASE_EXT_SRC := $(BASE_)ftglyph.c \
51 # Default extensions objects
53 BASE_EXT_OBJ := $(BASE_EXT_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
56 # Base layer object(s)
58 # BASE_OBJ_M is used during `multi' builds (each base source file compiles
59 # to a single object file).
61 # BASE_OBJ_S is used during `single' builds (the whole base layer is
62 # compiled as a single object file using ftbase.c).
64 BASE_OBJ_M := $(BASE_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
65 BASE_OBJ_S := $(OBJ_)ftbase.$O
67 # Base layer root source file for single build
69 BASE_SRC_S := $(BASE_)ftbase.c
72 # Base layer - single object build
74 $(BASE_OBJ_S): $(BASE_SRC_S) $(BASE_SRC) $(FREETYPE_H)
75 $(BASE_COMPILE) $T$@ $(BASE_SRC_S)
78 # Multiple objects build + extensions
80 $(OBJ_)%.$O: $(BASE_)%.c $(FREETYPE_H)
81 $(BASE_COMPILE) $T$@ $<