/modules/freetype2/src/autofit/rules.mk

http://github.com/zpao/v8monkey · Makefile · 78 lines · 25 code · 20 blank · 33 comment · 0 complexity · 527136611eedb4e405e98b68cd253dd6 MD5 · raw file

  1. #
  2. # FreeType 2 auto-fitter module configuration rules
  3. #
  4. # Copyright 2003, 2004, 2005, 2006, 2007 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. # AUTOF driver directory
  13. #
  14. AUTOF_DIR := $(SRC_DIR)/autofit
  15. # compilation flags for the driver
  16. #
  17. AUTOF_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(AUTOF_DIR))
  18. # AUTOF driver sources (i.e., C files)
  19. #
  20. AUTOF_DRV_SRC := $(AUTOF_DIR)/afangles.c \
  21. $(AUTOF_DIR)/afcjk.c \
  22. $(AUTOF_DIR)/afdummy.c \
  23. $(AUTOF_DIR)/afglobal.c \
  24. $(AUTOF_DIR)/afhints.c \
  25. $(AUTOF_DIR)/afindic.c \
  26. $(AUTOF_DIR)/aflatin.c \
  27. $(AUTOF_DIR)/afloader.c \
  28. $(AUTOF_DIR)/afmodule.c \
  29. $(AUTOF_DIR)/afwarp.c
  30. # AUTOF driver headers
  31. #
  32. AUTOF_DRV_H := $(AUTOF_DRV_SRC:%c=%h) \
  33. $(AUTOF_DIR)/aftypes.h \
  34. $(AUTOF_DIR)/aferrors.h
  35. # AUTOF driver object(s)
  36. #
  37. # AUTOF_DRV_OBJ_M is used during `multi' builds.
  38. # AUTOF_DRV_OBJ_S is used during `single' builds.
  39. #
  40. AUTOF_DRV_OBJ_M := $(AUTOF_DRV_SRC:$(AUTOF_DIR)/%.c=$(OBJ_DIR)/%.$O)
  41. AUTOF_DRV_OBJ_S := $(OBJ_DIR)/autofit.$O
  42. # AUTOF driver source file for single build
  43. #
  44. AUTOF_DRV_SRC_S := $(AUTOF_DIR)/autofit.c
  45. # AUTOF driver - single object
  46. #
  47. $(AUTOF_DRV_OBJ_S): $(AUTOF_DRV_SRC_S) $(AUTOF_DRV_SRC) \
  48. $(FREETYPE_H) $(AUTOF_DRV_H)
  49. $(AUTOF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(AUTOF_DRV_SRC_S))
  50. # AUTOF driver - multiple objects
  51. #
  52. $(OBJ_DIR)/%.$O: $(AUTOF_DIR)/%.c $(FREETYPE_H) $(AUTOF_DRV_H)
  53. $(AUTOF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  54. # update main driver object lists
  55. #
  56. DRV_OBJS_S += $(AUTOF_DRV_OBJ_S)
  57. DRV_OBJS_M += $(AUTOF_DRV_OBJ_M)
  58. # EOF