]> Git Repo - binutils.git/blobdiff - Makefile.in
note dependence on alpha opcode table
[binutils.git] / Makefile.in
index c7842fd132b7d5f0189266aa8c585529a8fb692a..3840e4dbe089b097f80eb010dc9fdced5c74a9c5 100644 (file)
@@ -134,6 +134,9 @@ OTHERS =
 # should be built using the target tools.
 TARGET_CONFIGDIRS = libiberty libgloss newlib libio librx libstdc++ libg++ winsup
 
+# Target libraries are put under this directory:
+TARGET_SUBDIR = . # Changed by configure to $(target_alias) if cross.
+
 # This is set by the configure script to the arguments passed to configure.
 CONFIG_ARGUMENTS = 
 
@@ -148,8 +151,8 @@ INSTALL_TARGET = install-dirs \
 
 CC_FOR_TARGET = ` \
   if [ -f $$r/gcc/Makefile ] ; then \
-    if [ -f $$r/newlib/Makefile ] ; then \
-      echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+    if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
+      echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
     else \
       echo $$r/gcc/xgcc -B$$r/gcc/; \
     fi; \
@@ -177,8 +180,8 @@ CHILL_FOR_TARGET = ` \
 
 CXX_FOR_TARGET = ` \
   if [ -f $$r/gcc/Makefile ] ; then \
-    if [ -f $$r/newlib/Makefile ] ; then \
-      echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+    if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
+      echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
     else \
       echo $$r/gcc/xgcc -B$$r/gcc/; \
     fi; \
@@ -391,6 +394,7 @@ ALL_MODULES = \
        all-gawk \
        all-gprof \
        all-grep \
+       all-grez \
        all-gzip \
        all-hello \
        all-indent \
@@ -495,6 +499,7 @@ INSTALL_MODULES = \
        install-gawk \
        install-gprof \
        install-grep \
+       install-grez \
        install-gzip \
        install-hello \
        install-indent \
@@ -557,7 +562,6 @@ INSTALL_X11_MODULES = \
 
 # This is a list of the targets for all of the modules which are compiled
 # using $(TARGET_FLAGS_TO_PASS).
-# RENAME these  all-xinberty should be all-target-libiberty
 ALL_TARGET_MODULES = \
        all-target-libio \
        all-target-libstdc++ \
@@ -592,10 +596,6 @@ CHECK_TARGET_MODULES = \
 
 # This is a list of the install targets for all of the modules which are
 # compiled using $(TARGET_FLAGS_TO_PASS).
-CROSS=native # or CROSS=cross
-# Target libraries are put under this directory:
-TARGET_SUBDIR = . # Changed by configure to $(target_alias) if cross.
-
 INSTALL_TARGET_MODULES = \
        install-target-libio \
        install-target-libstdc++ \
@@ -661,7 +661,10 @@ $(DO_X):
                        $${target}); \
            then true; else exit 1; fi; \
          else true; fi; \
-       done;\
+       done
+       @target=`echo $@ | sed -e 's/^do-//'`; \
+       r=`pwd`; export r; \
+       srcroot=`cd $(srcdir); pwd`; export srcroot; \
        for i in $(TARGET_CONFIGDIRS) -dummy-; do \
          if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
            for flag in $(EXTRA_TARGET_FLAGS); do \
@@ -858,8 +861,15 @@ $(CONFIGURE_TARGET_MODULES):
            LD="$(LD_FOR_TARGET)"; export LD; \
            NM="$(NM_FOR_TARGET)"; export NM; \
            RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
+           echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
            cd $(TARGET_SUBDIR)/$${dir}; \
-           $${srcroot}/configure $(CONFIG_ARGUMENTS) --srcdir=$${srcroot}/$${dir}; \
+           if [ -f $${srcroot}/$${dir}/configure ] ; then \
+             $${srcroot}/$${dir}/configure \
+               $(CONFIG_ARGUMENTS) --srcdir=$${srcroot}/$${dir}; \
+           else \
+             $${srcroot}/configure \
+               $(CONFIG_ARGUMENTS) --srcdir=$${srcroot}/$${dir}; \
+           fi; \
          else \
            true; \
          fi \
@@ -884,7 +894,7 @@ $(ALL_TARGET_MODULES):
 # To build a target install-X means to cd to X and make install.
 .PHONY: $(CHECK_TARGET_MODULES)
 $(CHECK_TARGET_MODULES):
-       @dir=`echo $@ | sed -e 's/check-target//'`; \
+       @dir=`echo $@ | sed -e 's/check-target-//'`; \
        if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
          r=`pwd`; export r; \
          srcroot=`cd $(srcdir); pwd`; export srcroot; \
@@ -1017,11 +1027,12 @@ all-flex: all-libiberty all-byacc
 all-gas: all-libiberty all-opcodes all-bfd
 all-gash: all-tcl
 all-gawk:
-ALL_GCC = all_gcc
-all_gcc: all-libiberty all-byacc all-binutils all-gas all-ld
+ALL_GCC = all-gcc
+all-gcc: all-libiberty all-byacc all-binutils all-gas all-ld
 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim $(gdbnlmrequirements)
 all-gprof: all-libiberty all-bfd
 all-grep: all-libiberty
+all-grez: all-libiberty all-bfd
 all-gui: all-gdb all-libproc all-target-librx
 all-gzip: all-libiberty
 all-hello: all-libiberty
@@ -1045,7 +1056,7 @@ all-mmalloc:
 configure-target-newlib: $(ALL_GCC)
 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
 all-opcodes: all-bfd
-all-patch:
+all-patch: all-libiberty
 all-prms: all-libiberty
 all-rcs:
 all-readline:
@@ -1063,7 +1074,7 @@ all-textutils:
 all-tgas: all-libiberty all-bfd
 all-time:
 all-wdiff:
-all-target-winsup: all-target-newlib 
+all-target-winsup: all-target-newlib  configure-target-winsup 
 configure-target-winsup: configure-target-newlib
 all-uudecode: all-libiberty
 configure-target-libiberty: $(ALL_GCC)
This page took 0.030169 seconds and 4 git commands to generate.