/modules/freetype2/src/type1/rules.mk

http://github.com/zpao/v8monkey · Makefile · 73 lines · 20 code · 20 blank · 33 comment · 0 complexity · 9c9ceccddd5c772ffbe42875ffa913b6 MD5 · raw file

  1. #
  2. # FreeType 2 Type1 driver configuration rules
  3. #
  4. # Copyright 1996-2000, 2001, 2003 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. # Type1 driver directory
  13. #
  14. T1_DIR := $(SRC_DIR)/type1
  15. # compilation flags for the driver
  16. #
  17. T1_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(T1_DIR))
  18. # Type1 driver sources (i.e., C files)
  19. #
  20. T1_DRV_SRC := $(T1_DIR)/t1parse.c \
  21. $(T1_DIR)/t1load.c \
  22. $(T1_DIR)/t1driver.c \
  23. $(T1_DIR)/t1afm.c \
  24. $(T1_DIR)/t1gload.c \
  25. $(T1_DIR)/t1objs.c
  26. # Type1 driver headers
  27. #
  28. T1_DRV_H := $(T1_DRV_SRC:%.c=%.h) \
  29. $(T1_DIR)/t1tokens.h \
  30. $(T1_DIR)/t1errors.h
  31. # Type1 driver object(s)
  32. #
  33. # T1_DRV_OBJ_M is used during `multi' builds
  34. # T1_DRV_OBJ_S is used during `single' builds
  35. #
  36. T1_DRV_OBJ_M := $(T1_DRV_SRC:$(T1_DIR)/%.c=$(OBJ_DIR)/%.$O)
  37. T1_DRV_OBJ_S := $(OBJ_DIR)/type1.$O
  38. # Type1 driver source file for single build
  39. #
  40. T1_DRV_SRC_S := $(T1_DIR)/type1.c
  41. # Type1 driver - single object
  42. #
  43. $(T1_DRV_OBJ_S): $(T1_DRV_SRC_S) $(T1_DRV_SRC) $(FREETYPE_H) $(T1_DRV_H)
  44. $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(T1_DRV_SRC_S))
  45. # Type1 driver - multiple objects
  46. #
  47. $(OBJ_DIR)/%.$O: $(T1_DIR)/%.c $(FREETYPE_H) $(T1_DRV_H)
  48. $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  49. # update main driver object lists
  50. #
  51. DRV_OBJS_S += $(T1_DRV_OBJ_S)
  52. DRV_OBJS_M += $(T1_DRV_OBJ_M)
  53. # EOF