diff options
author | Fred Fish <fnf@specifix.com> | 1996-09-14 00:04:09 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-09-14 00:04:09 +0000 |
commit | 20ece5977c43da03f0ae99bab2847f4c8d474fbf (patch) | |
tree | f043a5a21f52ae907da23caee5e180b5b622bdcb /gdb/testsuite/Makefile.in | |
parent | f8b82e49d23b3152120632bd697af35149061c48 (diff) | |
download | gdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.zip gdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.tar.gz gdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.tar.bz2 |
* Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
(just-check): Add shared library paths for libstdc++, tk,
tcl, bfd, and opcodes to the environment variable specified
in RPATH_ENVVAR.
* configure.in: Add support to recognize --enable-shared flag
and generate correct value for RPATH_ENVVAR.
* configure: Regenerated with autoconf.
Diffstat (limited to 'gdb/testsuite/Makefile.in')
-rw-r--r-- | gdb/testsuite/Makefile.in | 126 |
1 files changed, 23 insertions, 103 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 5d774fd..1e8f2fc 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -17,51 +17,21 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -srcdir = . -prefix = /usr/local -program_transform_name = - -exec_prefix = $(prefix) -bindir = $(exec_prefix)/bin -libdir = $(exec_prefix)/lib -tooldir = $(libdir)/$(target_alias) - -datadir = $(exec_prefix)/lib/dejagnu -mandir = $(prefix)/man -man1dir = $(mandir)/man1 -man2dir = $(mandir)/man2 -man3dir = $(mandir)/man3 -man4dir = $(mandir)/man4 -man5dir = $(mandir)/man5 -man6dir = $(mandir)/man6 -man7dir = $(mandir)/man7 -man8dir = $(mandir)/man8 -man9dir = $(mandir)/man9 -infodir = $(prefix)/info -includedir = $(prefix)/include -gxx_includedir = $(tooldir)/g++-include -docdir = $(datadir)/doc -targetdir = $(datadir)/$(target_alias) +srcdir = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +host_alias = @host_alias@ +target_alias = @target_alias@ +program_transform_name = @program_transform_name@ +build_canonical = @build@ +host_canonical = @host@ +target_canonical = @target@ +target_cpu = @gdb_target_cpu@ SHELL = /bin/sh - -INSTALL = install -c -INSTALL_PROGRAM = $(INSTALL) -INSTALL_DATA = $(INSTALL) - -# Do not use CFLAGS, that is set in the top-level config/mh-hp300 to not -# contain -g. In general, the flags to be used for building the tools and -# the flags to be used to build the testsuite probably don't have much to -# do with each other. -TESTSUITE_CFLAGS = -g -CHILLFLAGS = $(TESTSUITE_CFLAGS) -# This should probably be consistent with the top-level Makefile.in, -# gdb/Makefile.in, and gdb/testsuite/gdb.t2*/Makefile.in, so that "make check" -# has the same effect no matter where it is run. -CXXFLAGS = -g -O - -LINK= ln -s -SUBDIRS= +SUBDIRS = @subdirs@ +RPATH_ENVVAR = @RPATH_ENVVAR@ EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \ echo $${rootme}/../../expect/expect ; \ @@ -82,58 +52,6 @@ RUNTEST_FOR_TARGET = `\ fi; \ fi` -CC_FOR_TARGET = ` \ - if [ -f $${rootme}/../../gcc/xgcc ] ; then \ - if [ -f $${rootme}/../../newlib/Makefile ]; then \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \ - else \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ - fi; \ - else \ - if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ - echo $(CC); \ - else \ - t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ - fi; \ - fi` - -CXX = gcc -CXX_FOR_TARGET = ` \ - if [ -f $${rootme}/../../gcc/xgcc ] ; then \ - if [ -f $${rootme}/../../newlib/Makefile ]; then \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \ - else \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ - fi; \ - else \ - if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ - echo $(CXX); \ - else \ - t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ - fi; \ - fi` - -CHILLFLAGS = $(TESTSUITE_CFLAGS) -CHILL = gcc -CHILL_FOR_TARGET = ` \ - if [ -f $${rootme}/../../gcc/xgcc ] ; then \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \ - else \ - if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ - echo $(CHILL); \ - else \ - t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ - fi; \ - fi` - -CHILL_LIB = ` \ - if [ -f $${rootme}/../../gcc/ch/runtime/libchill.a ] ; then \ - echo $${rootme}/../../gcc/ch/runtime/chillrt0.o \ - $${rootme}/../../gcc/ch/runtime/libchill.a; \ - else \ - echo -lchill; \ - fi` - #### host, target, and site specific Makefile frags come in here. # The use of $$(x_FOR_TARGET) reduces the command line length by not @@ -160,10 +78,10 @@ TARGET_FLAGS_TO_PASS = \ "LDFLAGS=$(LDFLAGS)" \ "LIBS=$(LIBS)" \ "RUNTEST=$(RUNTEST)" \ - "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ - "BISON=$(BISON)" + "RUNTESTFLAGS=$(RUNTESTFLAGS)" -all: subdirs +all: + @echo "Nothing to be done for all..." .NOEXPORT: INFODIRS=doc @@ -187,6 +105,7 @@ site.exp: ./config.status Makefile @echo "set host_triplet ${host_canonical}" >> ./tmp0 @echo "set target_alias $(target_alias)" >> ./tmp0 @echo "set target_triplet ${target_canonical}" >> ./tmp0 + @echo "set build_triplet ${build_canonical}" >> ./tmp0 @echo "set srcdir ${srcdir}" >> ./tmp0 @echo "set tool gdb" >> ./tmp0 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0 @@ -203,6 +122,8 @@ just-check: rootme=`pwd`; export rootme; \ srcdir=${srcdir} ; export srcdir ; \ EXPECT=${EXPECT} ; export EXPECT ; \ + $(RPATH_ENVVAR)=$$rootme/../../libstdc++:$$rootme/../../tk/unix:$$rootme/../../tcl/unix:$$rootme/../../bfd:$$rootme/../../opcodes:$$$(RPATH_ENVVAR); \ + export $(RPATH_ENVVAR); \ if [ -f $${rootme}/../../expect/expect ] ; then \ TCL_LIBRARY=$${srcdir}/../../tcl/library ; \ export TCL_LIBRARY ; fi ; \ @@ -221,12 +142,11 @@ subdir_do: force force:; - subdirs: - for dir in ${SUBDIRS}; \ + for dir in ${SUBDIRS} ; \ do \ - echo "$$dir:"; \ - if [ -d $$dir ]; then \ + echo "$$dir:" ; \ + if [ -d $$dir ] ; then \ (rootme=`pwd`/ ; export rootme ; \ rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ cd $$dir; $(MAKE) $(TARGET_FLAGS_TO_PASS)); \ @@ -245,7 +165,7 @@ clean mostlyclean: done ; \ else true; fi -distclean realclean: clean +distclean maintainer-clean realclean: clean -rm -f *~ core *.log *.plog *.sum *.psum site.* -rm -f Makefile config.status *-init.exp -rm -fr *.log summary detail *.plog *.sum *.psum site.* |