🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
3.3 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  1. #
  2. # FreeType 2 template for Unix-specific compiler definitions
  3. #
  4. # Copyright (C) 1996-2022 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. CC := @CC@
  13. COMPILER_SEP := $(SEP)
  14. FT_LIBTOOL_DIR ?= $(PLATFORM_DIR)
  15. LIBTOOL := $(FT_LIBTOOL_DIR)/libtool
  16. # The object file extension (for standard and static libraries). This can be
  17. # .o, .tco, .obj, etc., depending on the platform.
  18. #
  19. O := lo
  20. SO := o
  21. # The executable file extension. Although most Unix platforms use no
  22. # extension, we copy the extension detected by autoconf. Useful for cross
  23. # building on Unix systems for non-Unix systems.
  24. #
  25. E := @EXEEXT@
  26. # The library file extension (for standard and static libraries). This can
  27. # be .a, .lib, etc., depending on the platform.
  28. #
  29. A := la
  30. SA := a
  31. # The name of the final library file. Note that the DOS-specific Makefile
  32. # uses a shorter (8.3) name.
  33. #
  34. LIBRARY := lib$(PROJECT)
  35. # Path inclusion flag. Some compilers use a different flag than `-I' to
  36. # specify an additional include path. Examples are `/i=' or `-J'.
  37. #
  38. I := -I
  39. # C flag used to define a macro before the compilation of a given source
  40. # object. Usually it is `-D' like in `-DDEBUG'.
  41. #
  42. D := -D
  43. # The link flag used to specify a given library file on link. Note that
  44. # this is only used to compile the demo programs, not the library itself.
  45. #
  46. L := -l
  47. # Target flag.
  48. #
  49. T := -o$(space)
  50. # C flags
  51. #
  52. # These should concern: debug output, optimization & warnings.
  53. #
  54. # Use the ANSIFLAGS variable to define the compiler flags used to enforce
  55. # ANSI compliance.
  56. #
  57. # We use our own FreeType configuration files overriding defaults.
  58. #
  59. CPPFLAGS := @CPPFLAGS@
  60. CFLAGS := -c @XX_CFLAGS@ @CFLAGS@ \
  61. $DFT_CONFIG_CONFIG_H="<ftconfig.h>" \
  62. $DFT_CONFIG_MODULES_H="<ftmodule.h>" \
  63. $DFT_CONFIG_OPTIONS_H="<ftoption.h>"
  64. # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
  65. #
  66. ANSIFLAGS := @XX_ANSIFLAGS@
  67. # C compiler to use -- we use libtool!
  68. #
  69. # CC might be set on the command line; we store this value in `CCraw'.
  70. # Consequently, we use the `override' directive to ensure that the
  71. # libtool call is always prepended.
  72. #
  73. CCraw := $(CC)
  74. override CC := $(LIBTOOL) --mode=compile $(CCraw)
  75. # Resource compiler to use on Cygwin/MinGW, usually windres.
  76. #
  77. RCraw := @RC@
  78. ifneq ($(RCraw),)
  79. RC := $(LIBTOOL) --tag=RC --mode=compile $(RCraw)
  80. endif
  81. # Linker flags.
  82. #
  83. LDFLAGS := @LDFLAGS@
  84. # export symbols
  85. #
  86. CCraw_build := @CC_BUILD@ # native CC of building system
  87. E_BUILD := @EXEEXT_BUILD@ # extension for executable on building system
  88. EXPORTS_LIST := $(OBJ_DIR)/ftexport.sym
  89. CCexe := $(CCraw_build) # used to compile `apinames' only
  90. # Library linking.
  91. #
  92. LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
  93. -rpath $(libdir) -version-info $(version_info) \
  94. $(LDFLAGS) -no-undefined \
  95. -export-symbols $(EXPORTS_LIST)
  96. # For the demo programs.
  97. FT_DEMO_CFLAGS := @FT_DEMO_CFLAGS@
  98. FT_DEMO_LDFLAGS := @FT_DEMO_LDFLAGS@
  99. # EOF