/modules/freetype2/src/cache/rules.mk

http://github.com/zpao/v8monkey · Makefile · 80 lines · 28 code · 19 blank · 33 comment · 0 complexity · 36a7226609f9b5181eb8a0dfe374ee8c MD5 · raw file

  1. #
  2. # FreeType 2 Cache configuration rules
  3. #
  4. # Copyright 2000, 2001, 2003, 2004, 2006, 2008 by
  5. # David Turner, Robert Wilhelm, and Werner Lemberg.
  6. #
  7. # This file is part of the FreeType project, and may only be used, modified,
  8. # and distributed under the terms of the FreeType project license,
  9. # LICENSE.TXT. By continuing to use, modify, or distribute this file you
  10. # indicate that you have read the license and understand and accept it
  11. # fully.
  12. # Cache driver directory
  13. #
  14. CACHE_DIR := $(SRC_DIR)/cache
  15. # compilation flags for the driver
  16. #
  17. CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
  18. # Cache driver sources (i.e., C files)
  19. #
  20. CACHE_DRV_SRC := $(CACHE_DIR)/ftcbasic.c \
  21. $(CACHE_DIR)/ftccache.c \
  22. $(CACHE_DIR)/ftccmap.c \
  23. $(CACHE_DIR)/ftcglyph.c \
  24. $(CACHE_DIR)/ftcimage.c \
  25. $(CACHE_DIR)/ftcmanag.c \
  26. $(CACHE_DIR)/ftcmru.c \
  27. $(CACHE_DIR)/ftcsbits.c
  28. # Cache driver headers
  29. #
  30. CACHE_DRV_H := $(CACHE_DIR)/ftccache.h \
  31. $(CACHE_DIR)/ftccback.h \
  32. $(CACHE_DIR)/ftcerror.h \
  33. $(CACHE_DIR)/ftcglyph.h \
  34. $(CACHE_DIR)/ftcimage.h \
  35. $(CACHE_DIR)/ftcmanag.h \
  36. $(CACHE_DIR)/ftcmru.h \
  37. $(CACHE_DIR)/ftcsbits.h
  38. # Cache driver object(s)
  39. #
  40. # CACHE_DRV_OBJ_M is used during `multi' builds.
  41. # CACHE_DRV_OBJ_S is used during `single' builds.
  42. #
  43. CACHE_DRV_OBJ_M := $(CACHE_DRV_SRC:$(CACHE_DIR)/%.c=$(OBJ_DIR)/%.$O)
  44. CACHE_DRV_OBJ_S := $(OBJ_DIR)/ftcache.$O
  45. # Cache driver source file for single build
  46. #
  47. CACHE_DRV_SRC_S := $(CACHE_DIR)/ftcache.c
  48. # Cache driver - single object
  49. #
  50. $(CACHE_DRV_OBJ_S): $(CACHE_DRV_SRC_S) $(CACHE_DRV_SRC) \
  51. $(FREETYPE_H) $(CACHE_DRV_H)
  52. $(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CACHE_DRV_SRC_S))
  53. # Cache driver - multiple objects
  54. #
  55. $(OBJ_DIR)/%.$O: $(CACHE_DIR)/%.c $(FREETYPE_H) $(CACHE_DRV_H)
  56. $(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  57. # update main driver object lists
  58. #
  59. DRV_OBJS_S += $(CACHE_DRV_OBJ_S)
  60. DRV_OBJS_M += $(CACHE_DRV_OBJ_M)
  61. # EOF