2000-08-23 23:11:13 +02:00
|
|
|
#
|
|
|
|
# FreeType 2 Cache configuration rules
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-10-02 08:48:10 +02:00
|
|
|
# Copyright 2000, 2001, 2003, 2004, 2006, 2008 by
|
2000-08-23 23:11:13 +02:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
# Cache driver directory
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
CACHE_DIR := $(SRC_DIR)/cache
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
# compilation flags for the driver
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Cache driver sources (i.e., C files)
|
|
|
|
#
|
2006-03-20 17:55:32 +01:00
|
|
|
CACHE_DRV_SRC := $(CACHE_DIR)/ftcbasic.c \
|
2003-06-09 06:46:30 +02:00
|
|
|
$(CACHE_DIR)/ftccache.c \
|
2008-10-02 08:48:10 +02:00
|
|
|
$(CACHE_DIR)/ftccmap.c \
|
2003-06-09 06:46:30 +02:00
|
|
|
$(CACHE_DIR)/ftcglyph.c \
|
|
|
|
$(CACHE_DIR)/ftcimage.c \
|
2006-03-20 17:55:32 +01:00
|
|
|
$(CACHE_DIR)/ftcmanag.c \
|
|
|
|
$(CACHE_DIR)/ftcmru.c \
|
|
|
|
$(CACHE_DIR)/ftcsbits.c
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
# Cache driver headers
|
|
|
|
#
|
2008-10-02 08:48:10 +02:00
|
|
|
CACHE_DRV_H := $(CACHE_DIR)/ftccache.h \
|
|
|
|
$(CACHE_DIR)/ftccback.h \
|
2006-03-20 17:55:32 +01:00
|
|
|
$(CACHE_DIR)/ftcerror.h \
|
|
|
|
$(CACHE_DIR)/ftcglyph.h \
|
|
|
|
$(CACHE_DIR)/ftcimage.h \
|
|
|
|
$(CACHE_DIR)/ftcmanag.h \
|
2008-10-02 08:48:10 +02:00
|
|
|
$(CACHE_DIR)/ftcmru.h \
|
|
|
|
$(CACHE_DIR)/ftcsbits.h
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Cache driver object(s)
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
# CACHE_DRV_OBJ_M is used during `multi' builds.
|
|
|
|
# CACHE_DRV_OBJ_S is used during `single' builds.
|
2000-08-23 23:11:13 +02:00
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
CACHE_DRV_OBJ_M := $(CACHE_DRV_SRC:$(CACHE_DIR)/%.c=$(OBJ_DIR)/%.$O)
|
|
|
|
CACHE_DRV_OBJ_S := $(OBJ_DIR)/ftcache.$O
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
# Cache driver source file for single build
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
CACHE_DRV_SRC_S := $(CACHE_DIR)/ftcache.c
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Cache driver - single object
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
$(CACHE_DRV_OBJ_S): $(CACHE_DRV_SRC_S) $(CACHE_DRV_SRC) \
|
|
|
|
$(FREETYPE_H) $(CACHE_DRV_H)
|
|
|
|
$(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CACHE_DRV_SRC_S))
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Cache driver - multiple objects
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
$(OBJ_DIR)/%.$O: $(CACHE_DIR)/%.c $(FREETYPE_H) $(CACHE_DRV_H)
|
|
|
|
$(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# update main driver object lists
|
|
|
|
#
|
2003-06-09 06:46:30 +02:00
|
|
|
DRV_OBJS_S += $(CACHE_DRV_OBJ_S)
|
|
|
|
DRV_OBJS_M += $(CACHE_DRV_OBJ_M)
|
2000-08-23 23:11:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# EOF
|