OSDN Git Service

* trans-array.c (gfc_trans_preloop_setup): Assertify one condition.
[pf3gnuchains/gcc-fork.git] / gnattools / Makefile.in
index e0cc4e1..794d374 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for gnattools
-#   Copyright 2003, 2004, 2009 Free Software Foundation, Inc.
+#   Copyright 2003, 2004, 2009, 2010 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -44,8 +44,7 @@ PWD_COMMAND = $${PWDCMD-pwd}
 
 # The tedious process of getting CFLAGS right.
 CFLAGS=-g
-LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-GCC_WARN_CFLAGS = $(LOOSE_WARN)
+GCC_WARN_CFLAGS = -W -Wall
 WARN_CFLAGS = @warn_cflags@
 
 ADA_CFLAGS=@ADA_CFLAGS@
@@ -64,8 +63,8 @@ INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada -I$(fsrcdir)/config \
        -I$(fsrcdir)/../include -I$(fsrcdir)
 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
 
-# Variables for gnattools1, native
-TOOLS_FLAGS_TO_PASS_1= \
+# Variables for gnattools, native
+TOOLS_FLAGS_TO_PASS_NATIVE= \
        "CC=../../xgcc -B../../" \
        "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
        "LDFLAGS=$(LDFLAGS)" \
@@ -76,11 +75,13 @@ TOOLS_FLAGS_TO_PASS_1= \
        "exeext=$(exeext)" \
        "fsrcdir=$(fsrcdir)" \
        "srcdir=$(fsrcdir)" \
+       "GNATMAKE=../../gnatmake" \
+       "GNATLINK=../../gnatlink" \
        "GNATBIND=../../gnatbind" \
        "TOOLSCASE=native"
 
 # Variables for regnattools
-TOOLS_FLAGS_TO_PASS_1re= \
+TOOLS_FLAGS_TO_PASS_RE= \
        "CC=../../xgcc -B../../" \
        "CFLAGS=$(CFLAGS)" \
        "ADAFLAGS=$(ADAFLAGS)" \
@@ -93,24 +94,7 @@ TOOLS_FLAGS_TO_PASS_1re= \
        "GNATMAKE=../../gnatmake" \
        "GNATLINK=../../gnatlink" \
        "GNATBIND=../../gnatbind" \
-       "TOOLSCASE=cross" \
-       "INCLUDES="
-
-# Variables for gnattools2, native
-TOOLS_FLAGS_TO_PASS_NATIVE= \
-       "CC=../../xgcc -B../../" \
-       "CFLAGS=$(CFLAGS)" \
-       "ADAFLAGS=$(ADAFLAGS)" \
-       "ADA_CFLAGS=$(ADA_CFLAGS)" \
-       "INCLUDES=$(INCLUDES_FOR_SUBDIR)" \
-       "ADA_INCLUDES=-I../rts $(ADA_INCLUDES_FOR_SUBDIR)" \
-       "exeext=$(exeext)" \
-       "fsrcdir=$(fsrcdir)" \
-       "srcdir=$(fsrcdir)" \
-       "GNATMAKE=../../gnatmake" \
-       "GNATLINK=../../gnatlink" \
-       "GNATBIND=../../gnatbind" \
-       "TOOLSCASE=native"
+       "TOOLSCASE=cross"
 
 # Variables for gnattools, cross
 TOOLS_FLAGS_TO_PASS_CROSS= \
@@ -164,7 +148,7 @@ $(GCC_DIR)/stamp-tools:
        -(cd $(GCC_DIR)/ada/tools; $(LN_S) ../sdefault.adb ../snames.ads ../snames.adb .)
        -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
                  rm -f $(GCC_DIR)/ada/tools/$(word 1,$(subst <, ,$(PAIR)));\
-                 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
+                 $(LN_S) $(fsrcdir)/ada/$(word 2,$(subst <, ,$(PAIR))) \
                        $(GCC_DIR)/ada/tools/$(word 1,$(subst <, ,$(PAIR)));)
        touch $(GCC_DIR)/stamp-tools
 
@@ -177,7 +161,7 @@ $(GCC_DIR)/stamp-tools:
 gnattools-native: $(GCC_DIR)/stamp-tools $(GCC_DIR)/stamp-gnatlib-rts
        # gnattools1
        $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \
-         $(TOOLS_FLAGS_TO_PASS_1) \
+         $(TOOLS_FLAGS_TO_PASS_NATIVE) \
          ../../gnatmake$(exeext) ../../gnatlink$(exeext)
        # gnattools2
        $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \
@@ -189,7 +173,7 @@ gnattools-native: $(GCC_DIR)/stamp-tools $(GCC_DIR)/stamp-gnatlib-rts
 regnattools: $(GCC_DIR)/stamp-gnatlib-rts
        # gnattools1-re
        $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \
-         $(TOOLS_FLAGS_TO_PASS_1re) \
+         $(TOOLS_FLAGS_TO_PASS_RE) INCLUDES="" \
          gnatmake-re gnatlink-re
        # gnattools2
        $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \
@@ -274,18 +258,24 @@ pdf:
 # Build HTML (none here).
 html:
 
+.PHONY: check installcheck info dvi pdf html
+
 # Build TAGS (none here).
 TAGS:
 
 # Installation rules.
 install:
 
+install-strip: install
+
 install-info:
 
 install-pdf:
 
 install-html:
 
+.PHONY: install install-strip install-info install-pdf install-html
+
 # Cleaning rules.
 mostlyclean:
 
@@ -296,6 +286,8 @@ distclean:
 
 maintainer-clean:
 
+.PHONY: mostlyclean clean distclean maintainer-clean
+
 # Rules for rebuilding this Makefile.
 Makefile: $(srcdir)/Makefile.in config.status
        CONFIG_FILES=$@ ; \
@@ -305,9 +297,14 @@ Makefile: $(srcdir)/Makefile.in config.status
 config.status: $(srcdir)/configure
        $(SHELL) ./config.status --recheck
 
-$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac \
-       $(srcdir)/../config/acx.m4 $(srcdir)/../config/override.m4
-       cd $(srcdir) && autoconf
+AUTOCONF = autoconf
+configure_deps = \
+       $(srcdir)/configure.ac \
+       $(srcdir)/../config/acx.m4 \
+       $(srcdir)/../config/override.m4
+
+$(srcdir)/configure: @MAINT@ $(configure_deps)
+       cd $(srcdir) && $(AUTOCONF)
 
 # Don't export variables to the environment, in order to not confuse
 # configure.