rules.mk 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #
  2. # FreeType 2 base layer configuration rules
  3. #
  4. # Copyright 1996-2000, 2002 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. # It sets the following variables which are used by the master Makefile
  13. # after the call:
  14. #
  15. # BASE_OBJ_S: The single-object base layer.
  16. # BASE_OBJ_M: A list of all objects for a multiple-objects build.
  17. # BASE_EXT_OBJ: A list of base layer extensions, i.e., components found
  18. # in `freetype/src/base' which are not compiled within the
  19. # base layer proper.
  20. #
  21. # BASE_H is defined in freetype.mk to simplify the dependency rules.
  22. BASE_COMPILE := $(FT_COMPILE) $I$(SRC_)base
  23. # Base layer sources
  24. #
  25. # ftsystem, ftinit, and ftdebug are handled by freetype.mk
  26. #
  27. BASE_SRC := $(BASE_)ftcalc.c \
  28. $(BASE_)fttrigon.c \
  29. $(BASE_)ftutil.c \
  30. $(BASE_)ftstream.c \
  31. $(BASE_)ftgloadr.c \
  32. $(BASE_)ftoutln.c \
  33. $(BASE_)ftobjs.c \
  34. $(BASE_)ftapi.c \
  35. $(BASE_)ftnames.c \
  36. $(BASE_)ftdbgmem.c
  37. # Base layer `extensions' sources
  38. #
  39. # An extension is added to the library file (.a or .lib) as a separate
  40. # object. It will then be linked to the final executable only if one of its
  41. # symbols is used by the application.
  42. #
  43. BASE_EXT_SRC := $(BASE_)ftglyph.c \
  44. $(BASE_)ftmm.c \
  45. $(BASE_)ftbdf.c \
  46. $(BASE_)fttype1.c \
  47. $(BASE_)ftxf86.c \
  48. $(BASE_)ftpfr.c \
  49. $(BASE_)ftstroker.c \
  50. $(BASE_)ftwinfnt.c \
  51. $(BASE_)ftbbox.c
  52. # Default extensions objects
  53. #
  54. BASE_EXT_OBJ := $(BASE_EXT_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
  55. # Base layer object(s)
  56. #
  57. # BASE_OBJ_M is used during `multi' builds (each base source file compiles
  58. # to a single object file).
  59. #
  60. # BASE_OBJ_S is used during `single' builds (the whole base layer is
  61. # compiled as a single object file using ftbase.c).
  62. #
  63. BASE_OBJ_M := $(BASE_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
  64. BASE_OBJ_S := $(OBJ_)ftbase.$O
  65. # Base layer root source file for single build
  66. #
  67. BASE_SRC_S := $(BASE_)ftbase.c
  68. # Base layer - single object build
  69. #
  70. $(BASE_OBJ_S): $(BASE_SRC_S) $(BASE_SRC) $(FREETYPE_H)
  71. $(BASE_COMPILE) $T$@ $(BASE_SRC_S)
  72. # Multiple objects build + extensions
  73. #
  74. $(OBJ_)%.$O: $(BASE_)%.c $(FREETYPE_H)
  75. $(BASE_COMPILE) $T$@ $<
  76. # EOF