Makefile.in 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # Makefile for libada.
  2. # Copyright (C) 2003-2015 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; see the file COPYING3. If not see
  16. # <http://www.gnu.org/licenses/>.
  17. # Default target; must be first.
  18. all: gnatlib
  19. $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
  20. .PHONY: all
  21. ## Multilib support variables.
  22. MULTISRCTOP =
  23. MULTIBUILDTOP =
  24. MULTIDIRS =
  25. MULTISUBDIR =
  26. MULTIDO = true
  27. MULTICLEAN = true
  28. # Standard autoconf-set variables.
  29. SHELL = @SHELL@
  30. srcdir = @srcdir@
  31. libdir = @libdir@
  32. build = @build@
  33. target = @target@
  34. prefix = @prefix@
  35. # Nonstandard autoconf-set variables.
  36. enable_shared = @enable_shared@
  37. LN_S=@LN_S@
  38. AWK=@AWK@
  39. ifeq (cp -p,$(LN_S))
  40. LN_S_RECURSIVE = cp -pR
  41. else
  42. LN_S_RECURSIVE = $(LN_S)
  43. endif
  44. # Variables for the user (or the top level) to override.
  45. objext=.o
  46. THREAD_KIND=native
  47. TRACE=no
  48. LDFLAGS=
  49. # The tedious process of getting CFLAGS right.
  50. CFLAGS=-g
  51. PICFLAG = @PICFLAG@
  52. GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
  53. GNATLIBCFLAGS= -g -O2
  54. GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \
  55. -fexceptions -DIN_RTS @have_getipinfo@
  56. host_subdir = @host_subdir@
  57. GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
  58. target_noncanonical:=@target_noncanonical@
  59. version := $(shell cat $(srcdir)/../gcc/BASE-VER)
  60. libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
  61. ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
  62. ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
  63. # exeext should not be used because it's the *host* exeext. We're building
  64. # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
  65. # definitions just in case something slips through the safety net provided
  66. # by recursive make invocations in gcc/ada/Makefile.in
  67. LIBADA_FLAGS_TO_PASS = \
  68. "MAKEOVERRIDES=" \
  69. "LDFLAGS=$(LDFLAGS)" \
  70. "LN_S=$(LN_S)" \
  71. "SHELL=$(SHELL)" \
  72. "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
  73. "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
  74. "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
  75. "PICFLAG_FOR_TARGET=$(PICFLAG)" \
  76. "THREAD_KIND=$(THREAD_KIND)" \
  77. "TRACE=$(TRACE)" \
  78. "MULTISUBDIR=$(MULTISUBDIR)" \
  79. "libsubdir=$(libsubdir)" \
  80. "objext=$(objext)" \
  81. "prefix=$(prefix)" \
  82. "exeext=.exeext.should.not.be.used " \
  83. 'CC=the.host.compiler.should.not.be.needed' \
  84. "GCC_FOR_TARGET=$(CC)" \
  85. "CFLAGS=$(CFLAGS)"
  86. # Rules to build gnatlib.
  87. .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
  88. gnatlib: @default_gnatlib_target@
  89. gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile
  90. test -f stamp-libada || \
  91. $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
  92. && touch stamp-libada
  93. -rm -rf adainclude
  94. -rm -rf adalib
  95. $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude
  96. $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib
  97. gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile
  98. test -f stamp-libada || \
  99. $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
  100. && touch stamp-libada
  101. -rm -rf adainclude
  102. -rm -rf adalib
  103. $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude
  104. $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib
  105. osconstool:
  106. $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
  107. install-gnatlib: $(GCC_DIR)/ada/Makefile
  108. $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
  109. # Check uninstalled version.
  110. check:
  111. # Check installed version.
  112. installcheck:
  113. # Build info (none here).
  114. info:
  115. # Build DVI (none here).
  116. dvi:
  117. # Build PDF (none here).
  118. pdf:
  119. # Build html (none here).
  120. html:
  121. # Build TAGS (none here).
  122. TAGS:
  123. .PHONY: check installcheck info dvi pdf html
  124. # Installation rules.
  125. install: install-gnatlib
  126. $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
  127. install-strip: install
  128. install-info:
  129. install-pdf:
  130. install-html:
  131. .PHONY: install install-strip install-info install-pdf install-html
  132. # Cleaning rules.
  133. mostlyclean:
  134. $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
  135. clean:
  136. $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
  137. distclean:
  138. $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
  139. $(RM) Makefile config.status config.log
  140. maintainer-clean:
  141. .PHONY: mostlyclean clean distclean maintainer-clean
  142. # Rules for rebuilding this Makefile.
  143. Makefile: $(srcdir)/Makefile.in config.status
  144. CONFIG_FILES=$@ ; \
  145. CONFIG_HEADERS= ; \
  146. $(SHELL) ./config.status
  147. config.status: $(srcdir)/configure
  148. $(SHELL) ./config.status --recheck
  149. AUTOCONF = autoconf
  150. configure_deps = \
  151. $(srcdir)/configure.ac \
  152. $(srcdir)/../config/acx.m4 \
  153. $(srcdir)/../config/override.m4 \
  154. $(srcdir)/../config/multi.m4
  155. $(srcdir)/configure: @MAINT@ $(configure_deps)
  156. cd $(srcdir) && $(AUTOCONF)
  157. # Don't export variables to the environment, in order to not confuse
  158. # configure.
  159. .NOEXPORT: