2000-03-05 02:14:19 +01:00
|
|
|
#
|
|
|
|
# FreeType 2 base layer configuration rules
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright 1996-2000 by
|
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
2000-06-05 07:26:15 +02:00
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
2000-03-05 02:14:19 +01:00
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
|
|
|
|
|
|
|
|
# It sets the following variables, which are used by the master Makefile
|
|
|
|
# after the call:
|
|
|
|
#
|
|
|
|
# BASE_H: The list of base layer header files on which the rest
|
2000-06-02 16:30:38 +02:00
|
|
|
# of the library (i.e. drivers) rely.
|
2000-03-05 02:14:19 +01:00
|
|
|
#
|
|
|
|
# BASE_OBJ_S: The single-object base layer.
|
|
|
|
# BASE_OBJ_M: A list of all objects for a multiple-objects build.
|
|
|
|
# BASE_EXT_OBJ: A list of base layer extensions, i.e., components found
|
|
|
|
# in `freetype/lib/base' which are not compiled within the
|
|
|
|
# base layer proper.
|
1999-12-17 00:11:37 +01:00
|
|
|
|
2000-05-11 20:47:39 +02:00
|
|
|
BASE_COMPILE := $(FT_COMPILE) $I$(SRC_)base
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
# Base layer sources
|
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
BASE_SRC := $(BASE_)ftcalc.c \
|
1999-12-17 00:11:37 +01:00
|
|
|
$(BASE_)ftextend.c \
|
2000-03-05 02:14:19 +01:00
|
|
|
$(BASE_)ftlist.c \
|
|
|
|
$(BASE_)ftobjs.c \
|
2000-03-28 13:22:31 +02:00
|
|
|
$(BASE_)ftstream.c \
|
|
|
|
$(BASE_)ftoutln.c
|
|
|
|
|
1999-12-17 00:11:37 +01:00
|
|
|
# Base layer headers
|
|
|
|
#
|
2000-05-11 20:23:52 +02:00
|
|
|
BASE_H := $(INTERNAL_)ftcalc.h \
|
|
|
|
$(INTERNAL_)ftdebug.h \
|
|
|
|
$(INTERNAL_)ftdriver.h \
|
|
|
|
$(INTERNAL_)ftextend.h \
|
|
|
|
$(INTERNAL_)ftlist.h \
|
|
|
|
$(INTERNAL_)ftobjs.h \
|
|
|
|
$(INTERNAL_)ftstream.h
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Base layer `extensions' sources
|
|
|
|
#
|
|
|
|
# An extension is added to the library file (.a or .lib) as a separate
|
2000-03-05 02:14:19 +01:00
|
|
|
# object. It will then be linked to the final executable only if one of its
|
|
|
|
# symbols is used by the application.
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-13 12:52:44 +01:00
|
|
|
BASE_EXT_SRC := $(BASE_)ftraster.c \
|
2000-05-02 12:53:11 +02:00
|
|
|
$(BASE_)ftglyph.c \
|
2000-05-26 19:13:23 +02:00
|
|
|
$(BASE_)ftmm.c \
|
2000-05-02 12:53:11 +02:00
|
|
|
$(BASE_)ftgrays.c
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
# Base layer extensions headers
|
|
|
|
#
|
|
|
|
BASE_EXT_H := $(BASE_EXT_SRC:%c=%h)
|
|
|
|
|
2000-06-02 16:30:38 +02:00
|
|
|
# Default extensions objects
|
|
|
|
#
|
|
|
|
BASE_EXT_OBJ := $(BASE_EXT_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
|
|
|
|
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
# Base layer object(s)
|
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
# BASE_OBJ_M is used during `multi' builds (each base source file compiles
|
|
|
|
# to a single object file).
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
# BASE_OBJ_S is used during `single' builds (the whole base layer is
|
|
|
|
# compiled as a single object file using ftbase.c).
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
|
|
|
BASE_OBJ_M := $(BASE_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
|
|
|
|
BASE_OBJ_S := $(OBJ_)ftbase.$O
|
|
|
|
|
|
|
|
# Base layer root source file(s)
|
|
|
|
#
|
|
|
|
BASE_SRC_M := $(BASE_SRC)
|
|
|
|
BASE_SRC_S := $(BASE_)ftbase.c
|
|
|
|
|
|
|
|
|
|
|
|
# Multiple objects build + extensions
|
|
|
|
#
|
|
|
|
$(OBJ_)ft%.$O: $(BASE_)ft%.c $(PUBLIC_H) $(BASE_H)
|
2000-05-11 20:47:39 +02:00
|
|
|
$(BASE_COMPILE) $T$@ $<
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Base layer - single object build
|
|
|
|
#
|
|
|
|
$(BASE_OBJ_S): $(PUBLIC_H) $(BASE_H) $(BASE_SRC_S) $(BASE_SRC)
|
2000-05-11 20:47:39 +02:00
|
|
|
$(BASE_COMPILE) $T$@ $(BASE_SRC_S)
|
1999-12-17 00:11:37 +01:00
|
|
|
|
2000-03-05 02:14:19 +01:00
|
|
|
# EOF
|