/modules/freetype2/src/psnames/rules.mk

http://github.com/zpao/v8monkey · Makefile · 70 lines · 16 code · 21 blank · 33 comment · 0 complexity · a81519d859fbdcc252e257f7d2fe3784 MD5 · raw file

  1. #
  2. # FreeType 2 PSNames 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. # PSNames driver directory
  13. #
  14. PSNAMES_DIR := $(SRC_DIR)/psnames
  15. # compilation flags for the driver
  16. #
  17. PSNAMES_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PSNAMES_DIR))
  18. # PSNames driver sources (i.e., C files)
  19. #
  20. PSNAMES_DRV_SRC := $(PSNAMES_DIR)/psmodule.c
  21. # PSNames driver headers
  22. #
  23. PSNAMES_DRV_H := $(PSNAMES_DRV_SRC:%.c=%.h) \
  24. $(PSNAMES_DIR)/pstables.h \
  25. $(PSNAMES_DIR)/psnamerr.h
  26. # PSNames driver object(s)
  27. #
  28. # PSNAMES_DRV_OBJ_M is used during `multi' builds
  29. # PSNAMES_DRV_OBJ_S is used during `single' builds
  30. #
  31. PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR)/%.c=$(OBJ_DIR)/%.$O)
  32. PSNAMES_DRV_OBJ_S := $(OBJ_DIR)/psnames.$O
  33. # PSNames driver source file for single build
  34. #
  35. PSNAMES_DRV_SRC_S := $(PSNAMES_DIR)/psmodule.c
  36. # PSNames driver - single object
  37. #
  38. $(PSNAMES_DRV_OBJ_S): $(PSNAMES_DRV_SRC_S) $(PSNAMES_DRV_SRC) \
  39. $(FREETYPE_H) $(PSNAMES_DRV_H)
  40. $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSNAMES_DRV_SRC_S))
  41. # PSNames driver - multiple objects
  42. #
  43. $(OBJ_DIR)/%.$O: $(PSNAMES_DIR)/%.c $(FREETYPE_H) $(PSNAMES_DRV_H)
  44. $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  45. # update main driver object lists
  46. #
  47. DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
  48. DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
  49. # EOF