/modules/freetype2/src/pshinter/rules.mk

http://github.com/zpao/v8monkey · Makefile · 72 lines · 18 code · 21 blank · 33 comment · 0 complexity · 7b27ac2ac6fe489519e8569b4b9ce434 MD5 · raw file

  1. #
  2. # FreeType 2 PSHinter driver configuration rules
  3. #
  4. # Copyright 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. # PSHINTER driver directory
  13. #
  14. PSHINTER_DIR := $(SRC_DIR)/pshinter
  15. # compilation flags for the driver
  16. #
  17. PSHINTER_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PSHINTER_DIR))
  18. # PSHINTER driver sources (i.e., C files)
  19. #
  20. PSHINTER_DRV_SRC := $(PSHINTER_DIR)/pshrec.c \
  21. $(PSHINTER_DIR)/pshglob.c \
  22. $(PSHINTER_DIR)/pshmod.c \
  23. $(PSHINTER_DIR)/pshalgo.c
  24. # PSHINTER driver headers
  25. #
  26. PSHINTER_DRV_H := $(PSHINTER_DRV_SRC:%c=%h) \
  27. $(PSHINTER_DIR)/pshnterr.h
  28. # PSHINTER driver object(s)
  29. #
  30. # PSHINTER_DRV_OBJ_M is used during `multi' builds.
  31. # PSHINTER_DRV_OBJ_S is used during `single' builds.
  32. #
  33. PSHINTER_DRV_OBJ_M := $(PSHINTER_DRV_SRC:$(PSHINTER_DIR)/%.c=$(OBJ_DIR)/%.$O)
  34. PSHINTER_DRV_OBJ_S := $(OBJ_DIR)/pshinter.$O
  35. # PSHINTER driver source file for single build
  36. #
  37. PSHINTER_DRV_SRC_S := $(PSHINTER_DIR)/pshinter.c
  38. # PSHINTER driver - single object
  39. #
  40. $(PSHINTER_DRV_OBJ_S): $(PSHINTER_DRV_SRC_S) $(PSHINTER_DRV_SRC) \
  41. $(FREETYPE_H) $(PSHINTER_DRV_H)
  42. $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSHINTER_DRV_SRC_S))
  43. # PSHINTER driver - multiple objects
  44. #
  45. $(OBJ_DIR)/%.$O: $(PSHINTER_DIR)/%.c $(FREETYPE_H) $(PSHINTER_DRV_H)
  46. $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  47. # update main driver object lists
  48. #
  49. DRV_OBJS_S += $(PSHINTER_DRV_OBJ_S)
  50. DRV_OBJS_M += $(PSHINTER_DRV_OBJ_M)
  51. # EOF