freetype2/src/truetype/rules.mk

76 lines
1.6 KiB
Makefile
Raw Normal View History

#
# FreeType 2 TrueType driver configuration rules
#
# Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# 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.
1999-12-17 00:11:37 +01:00
# TrueType driver directory
#
TT_DIR := $(SRC_)truetype
TT_DIR_ := $(TT_DIR)$(SEP)
# additional include flags used when compiling the driver
#
TT_INCLUDE := $(TT_DIR)
1999-12-17 00:11:37 +01:00
# compilation flags for the driver
#
TT_CFLAGS := $(TT_INCLUDE:%=$I%)
2000-05-17 01:44:38 +02:00
TT_COMPILE := $(FT_COMPILE) $(TT_CFLAGS)
1999-12-17 00:11:37 +01:00
# TrueType driver sources (i.e., C files)
1999-12-17 00:11:37 +01:00
#
TT_DRV_SRC := $(TT_DIR_)ttobjs.c \
$(TT_DIR_)ttpload.c \
$(TT_DIR_)ttgload.c \
$(TT_DIR_)ttinterp.c \
1999-12-17 00:11:37 +01:00
$(TT_DIR_)ttdriver.c
# TrueType driver headers
1999-12-17 00:11:37 +01:00
#
TT_DRV_H := $(TT_DRV_SRC:%.c=%.h)
1999-12-17 00:11:37 +01:00
# TrueType driver object(s)
1999-12-17 00:11:37 +01:00
#
# TT_DRV_OBJ_M is used during `multi' builds
# TT_DRV_OBJ_S is used during `single' builds
1999-12-17 00:11:37 +01:00
#
TT_DRV_OBJ_M := $(TT_DRV_SRC:$(TT_DIR_)%.c=$(OBJ_)%.$O)
TT_DRV_OBJ_S := $(OBJ_)truetype.$O
# TrueType driver source file for single build
1999-12-17 00:11:37 +01:00
#
TT_DRV_SRC_S := $(TT_DIR_)truetype.c
# TrueType driver - single object
1999-12-17 00:11:37 +01:00
#
$(TT_DRV_OBJ_S): $(TT_DRV_SRC_S) $(TT_DRV_SRC) $(FREETYPE_H) $(TT_DRV_H)
1999-12-17 00:11:37 +01:00
$(TT_COMPILE) $T$@ $(TT_DRV_SRC_S)
# driver - multiple objects
#
$(OBJ_)%.$O: $(TT_DIR_)%.c $(FREETYPE_H) $(TT_DRV_H)
1999-12-17 00:11:37 +01:00
$(TT_COMPILE) $T$@ $<
# update main driver object lists
#
DRV_OBJS_S += $(TT_DRV_OBJ_S)
DRV_OBJS_M += $(TT_DRV_OBJ_M)
# EOF