/modules/freetype2/src/lzw/rules.mk

http://github.com/zpao/v8monkey · Makefile · 70 lines · 14 code · 20 blank · 36 comment · 0 complexity · 0b27711e5ff85e36603894616b69a02d MD5 · raw file

  1. #
  2. # FreeType 2 LZW support configuration rules
  3. #
  4. # Copyright 2004, 2005, 2006 by
  5. # Albert Chin-A-Young.
  6. #
  7. # Based on src/lzw/rules.mk, Copyright 2002 by
  8. # David Turner, Robert Wilhelm, and Werner Lemberg.
  9. #
  10. # This file is part of the FreeType project, and may only be used, modified,
  11. # and distributed under the terms of the FreeType project license,
  12. # LICENSE.TXT. By continuing to use, modify, or distribute this file you
  13. # indicate that you have read the license and understand and accept it
  14. # fully.
  15. # LZW driver directory
  16. #
  17. LZW_DIR := $(SRC_DIR)/lzw
  18. # compilation flags for the driver
  19. #
  20. LZW_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(LZW_DIR))
  21. # LZW support sources (i.e., C files)
  22. #
  23. LZW_DRV_SRC := $(LZW_DIR)/ftlzw.c
  24. # LZW support headers
  25. #
  26. LZW_DRV_H := $(LZW_DIR)/ftzopen.h \
  27. $(LZW_DIR)/ftzopen.c
  28. # LZW driver object(s)
  29. #
  30. # LZW_DRV_OBJ_M is used during `multi' builds
  31. # LZW_DRV_OBJ_S is used during `single' builds
  32. #
  33. LZW_DRV_OBJ_M := $(OBJ_DIR)/ftlzw.$O
  34. LZW_DRV_OBJ_S := $(OBJ_DIR)/ftlzw.$O
  35. # LZW support source file for single build
  36. #
  37. LZW_DRV_SRC_S := $(LZW_DIR)/ftlzw.c
  38. # LZW support - single object
  39. #
  40. $(LZW_DRV_OBJ_S): $(LZW_DRV_SRC_S) $(LZW_DRV_SRC) $(FREETYPE_H) $(LZW_DRV_H)
  41. $(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(LZW_DRV_SRC_S))
  42. # LZW support - multiple objects
  43. #
  44. $(OBJ_DIR)/%.$O: $(LZW_DIR)/%.c $(FREETYPE_H) $(LZW_DRV_H)
  45. $(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  46. # update main driver object lists
  47. #
  48. DRV_OBJS_S += $(LZW_DRV_OBJ_S)
  49. DRV_OBJS_M += $(LZW_DRV_OBJ_M)
  50. # EOF