Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #
  2. # FreeType 2 Windows FNT/FON driver configuration rules
  3. #
  4.  
  5.  
  6. # Copyright 1996-2000, 2001, 2003 by
  7. # David Turner, Robert Wilhelm, and Werner Lemberg.
  8. #
  9. # This file is part of the FreeType project, and may only be used, modified,
  10. # and distributed under the terms of the FreeType project license,
  11. # LICENSE.TXT.  By continuing to use, modify, or distribute this file you
  12. # indicate that you have read the license and understand and accept it
  13. # fully.
  14.  
  15.  
  16. # Windows driver directory
  17. #
  18. FNT_DIR := $(SRC_DIR)/winfonts
  19.  
  20.  
  21. FNT_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(FNT_DIR))
  22.  
  23.  
  24. # Windows driver sources (i.e., C files)
  25. #
  26. FNT_DRV_SRC := $(FNT_DIR)/winfnt.c
  27.  
  28. # Windows driver headers
  29. #
  30. FNT_DRV_H := $(FNT_DRV_SRC:%.c=%.h) \
  31.              $(FNT_DIR)/fnterrs.h
  32.  
  33.  
  34. # Windows driver object(s)
  35. #
  36. #   FNT_DRV_OBJ_M is used during `multi' builds
  37. #   FNT_DRV_OBJ_S is used during `single' builds
  38. #
  39. FNT_DRV_OBJ_M := $(FNT_DRV_SRC:$(FNT_DIR)/%.c=$(OBJ_DIR)/%.$O)
  40. FNT_DRV_OBJ_S := $(OBJ_DIR)/winfnt.$O
  41.  
  42. # Windows driver source file for single build
  43. #
  44. FNT_DRV_SRC_S := $(FNT_DIR)/winfnt.c
  45.  
  46.  
  47. # Windows driver - single object
  48. #
  49. $(FNT_DRV_OBJ_S): $(FNT_DRV_SRC_S) $(FNT_DRV_SRC) $(FREETYPE_H) $(FNT_DRV_H)
  50.         $(FNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(FNT_DRV_SRC_S))
  51.  
  52.  
  53. # Windows driver - multiple objects
  54. #
  55. $(OBJ_DIR)/%.$O: $(FNT_DIR)/%.c $(FREETYPE_H) $(FNT_DRV_H)
  56.         $(FNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
  57.  
  58.  
  59. # update main driver object lists
  60. #
  61. DRV_OBJS_S += $(FNT_DRV_OBJ_S)
  62. DRV_OBJS_M += $(FNT_DRV_OBJ_M)
  63.  
  64.  
  65. # EOF
  66.