Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #
  2. # FreeType 2 BZIP2 support configuration rules
  3. #
  4.  
  5. # Copyright 2010 by
  6. # Joel Klinghed.
  7. #
  8. # Based on src/lzw/rules.mk, Copyright 2004-2006 by
  9. # Albert Chin-A-Young.
  10. #
  11. # This file is part of the FreeType project, and may only be used, modified,
  12. # and distributed under the terms of the FreeType project license,
  13. # LICENSE.TXT.  By continuing to use, modify, or distribute this file you
  14. # indicate that you have read the license and understand and accept it
  15. # fully.
  16.  
  17.  
  18. # BZIP2 driver directory
  19. #
  20. BZIP2_DIR := $(SRC_DIR)/bzip2
  21.  
  22.  
  23. # compilation flags for the driver
  24. #
  25. BZIP2_COMPILE := $(FT_COMPILE)
  26.  
  27.  
  28. # BZIP2 support sources (i.e., C files)
  29. #
  30. BZIP2_DRV_SRC := $(BZIP2_DIR)/ftbzip2.c
  31.  
  32. # BZIP2 driver object(s)
  33. #
  34. #   BZIP2_DRV_OBJ_M is used during `multi' builds
  35. #   BZIP2_DRV_OBJ_S is used during `single' builds
  36. #
  37. BZIP2_DRV_OBJ_M := $(OBJ_DIR)/ftbzip2.$O
  38. BZIP2_DRV_OBJ_S := $(OBJ_DIR)/ftbzip2.$O
  39.  
  40. # BZIP2 support source file for single build
  41. #
  42. BZIP2_DRV_SRC_S := $(BZIP2_DIR)/ftbzip2.c
  43.  
  44.  
  45. # BZIP2 support - single object
  46. #
  47. $(BZIP2_DRV_OBJ_S): $(BZIP2_DRV_SRC_S) $(BZIP2_DRV_SRC) $(FREETYPE_H) $(BZIP2_DRV_H)
  48.         $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BZIP2_DRV_SRC_S))
  49.  
  50.  
  51. # BZIP2 support - multiple objects
  52. #
  53. $(OBJ_DIR)/%.$O: $(BZIP2_DIR)/%.c $(FREETYPE_H) $(BZIP2_DRV_H)
  54.         $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  55.  
  56.  
  57. # update main driver object lists
  58. #
  59. DRV_OBJS_S += $(BZIP2_DRV_OBJ_S)
  60. DRV_OBJS_M += $(BZIP2_DRV_OBJ_M)
  61.  
  62.  
  63. # EOF
  64.