diff options
author | K. Richard Pixley <rich@cygnus> | 1991-08-06 19:12:55 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-08-06 19:12:55 +0000 |
commit | 4101d8683819f444840a46569202d92b6a47fd1d (patch) | |
tree | 1a81d8de75c912eef07a024f7ff2d95326d3bfab /configure | |
parent | dd61f09ec8bf172d3f377fa1c0aab67455170d67 (diff) | |
download | gdb-4101d8683819f444840a46569202d92b6a47fd1d.zip gdb-4101d8683819f444840a46569202d92b6a47fd1d.tar.gz gdb-4101d8683819f444840a46569202d92b6a47fd1d.tar.bz2 |
Host-level GNUmakefiles.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 48 |
1 files changed, 29 insertions, 19 deletions
@@ -180,7 +180,7 @@ fi # script appropriate for this directory. For more information, check # any existing configure script. -configdirs="libiberty bfd binutils gcc readline gdb ld gas gnulib ${clib} prms" +configdirs="libiberty bfd binutils bison gcc readline ld gas gnulib ${clib} gdb prms " srctrigger=README.configure srcname="gnu development package" @@ -516,19 +516,21 @@ for host in ${hosts} ; do fi done # for each target -# # Now build a Makefile for this host. -# if [ -n "${forcesubdirs}" ] ; then -# cd ${hostsubdir} -# cat > GNUmakefile << E!O!F -## Makefile generated by configure for host ${host}. -# -#%: -# for i in ${targets} ; do \ -# $(MAKE) -C Target-\$i \$@ -# -#all clean stage1 stage2 stage3 stage4etags tags TAGS -#E!O!F -# fi + # Now build a Makefile for this host. + if [ -n "${forcesubdirs}" -a ! -n "${removing}" ] ; then + cd ${hostsubdir} + cat > GNUmakefile << E!O!F +# Makefile generated by configure for host ${host}. + +ALL := $(shell ls -d Target-*) + +%: + $(foreach subdir,$(ALL),$(MAKE) -C $(subdir) \$@ &&) true + +all: +E!O!F + cd .. + fi done # for each host # If there are subdirectories, then recurse. @@ -555,7 +557,7 @@ for configdir in ${configdirs} ; do if [ -n "${commons}" ] ; then if [ -d ${configdir} ] ; then (cd ${configdir} ; - ./configure ${commons} ${verbose} ${forcesubdirs} ${removing}) \ + ./configure ${commons} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \ | sed 's/^/ /' else echo Warning: directory \"${configdir}\" is missing. @@ -566,7 +568,7 @@ for configdir in ${configdirs} ; do for host in ${specifics} ; do echo Configuring target specific directory ${configdir}.${host}... (cd ${configdir}.${host} ; - ./configure ${host} ${verbose} ${forcesubdirs} ${removing}) \ + ./configure ${host} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \ | sed 's/^/ /' done # for host in specifics fi # if there are any specifics @@ -591,7 +593,8 @@ for configdir in ${configdirs} ; do if [ -n "${commons}" ] ; then if [ -d ${configdir} ] ; then (cd ${configdir} ; - ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} ${commons}) \ + ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \ + ${commons} +destdir=${destdir}) \ | sed 's/^/ /' else echo Warning: directory \"${configdir}\" is missing. @@ -602,7 +605,8 @@ for configdir in ${configdirs} ; do for target in ${specifics} ; do echo Configuring target specific directory ${configdir}.${target}... (cd ${configdir}.${target} ; - ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} "+target=${target}") \ + ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \ + "+target=${target}" +destdir=${destdir}) \ | sed 's/^/ /' done fi # if any specifics @@ -613,7 +617,13 @@ exit 0 # # $Log$ -# Revision 1.21 1991/07/20 00:55:20 gnu +# Revision 1.23 1991/08/06 19:12:32 rich +# Host-level GNUmakefiles. +# +# Revision 1.22 1991/07/20 01:22:30 rich +# propogate gdb changes and destdir fix +# +# Revision 1.21 1991/07/20 00:55:20 gnu # Roll in new configure that handles GDB. Make sure that the "configure" # that is checked-in reflects the latest "configure.in", which includes gdb. # |