diff options
author | Per Bothner <per@bothner.com> | 1992-06-04 07:38:43 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-06-04 07:38:43 +0000 |
commit | f0e9ba1e6317d118af28ab75a2f8be30bc47071c (patch) | |
tree | 5c27649a62b635914a979a9243546c8933f093c9 /Makefile.in | |
parent | 1221d638c1724bad0b711f5795d04de944766ee7 (diff) | |
download | gdb-f0e9ba1e6317d118af28ab75a2f8be30bc47071c.zip gdb-f0e9ba1e6317d118af28ab75a2f8be30bc47071c.tar.gz gdb-f0e9ba1e6317d118af28ab75a2f8be30bc47071c.tar.bz2 |
* config.sub: Add support for Linux.
* Makefile.in: Use $(FLAGS_TO_PASS) more consistently (at least for libg++).
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 62 |
1 files changed, 13 insertions, 49 deletions
diff --git a/Makefile.in b/Makefile.in index b70c763..856110b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -73,6 +73,13 @@ INSTALL_TARGET = install.all ### for debugging #GCCVERBOSE=-v +GXX = `if [ -d $${rootme}/gcc ] ; \ + then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \ + else echo gcc ; fi` + +XTRAFLAGS = `if [ -d $${rootme}/gcc ] ; \ + then echo -I$${rootme}/gcc/include ; \ + else echo ; fi` #### host and target specific makefile fragments come in here. ### @@ -101,16 +108,14 @@ FLAGS_TO_PASS = \ all: $(ALL) info: cfg-paper.info configure.info standards.info - @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)" + @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) # Note libg++ has to be handled specially (we can't compile it with CC=cc). check: @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \ - "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \ - "MAKEINFO=$(MAKEINFO)" + "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" $(FLAGS_TO_PASS) @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \ - "DODIRS=libg++" "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}" \ - "MAKEINFO=$(MAKEINFO)" + "DODIRS=libg++" $(FLAGS_TO_PASS) "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}" clean-info: @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" @@ -955,30 +960,12 @@ install-send_pr: force fi ### libg++ -GXX = `if [ -d $${rootme}/gcc ] ; \ - then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \ - else echo gcc ; fi` - -XTRAFLAGS = `if [ -d $${rootme}/gcc ] ; \ - then echo -I$${rootme}/gcc/include ; \ - else echo ; fi` all-libg++: all-gas all-ld all-gcc @if [ -d ./libg++ ] ; then \ rootme=`pwd` ; export rootme ; \ (cd ./libg++; \ - $(MAKE) \ - "AR=$(AR)" \ - "AR_FLAGS=$(AR_FLAGS)" \ - "CC=${GXX}" \ - "CFLAGS=$(CFLAGS)" \ - "XTRAFLAGS=${XTRAFLAGS}" \ - "RANLIB=$(RANLIB)" \ - "LOADLIBES=$(LOADLIBES)" \ - "LDFLAGS=$(LDFLAGS)" \ - "BISON=$(BISON)" \ - "MAKEINFO=$(MAKEINFO)" \ - all) ; \ + $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" all) ; \ else \ true ; \ fi @@ -987,17 +974,7 @@ clean-libg++: force @if [ -d ./libg++ ] ; then \ rootme=`pwd` ; export rootme ; \ (cd ./libg++; \ - $(MAKE) \ - "AR=$(AR)" \ - "AR_FLAGS=$(AR_FLAGS)" \ - "CC=$(CC)" \ - "CFLAGS=$(CFLAGS)" \ - "RANLIB=$(RANLIB)" \ - "LOADLIBES=$(LOADLIBES)" \ - "LDFLAGS=$(LDFLAGS)" \ - "BISON=$(BISON)" \ - "MAKEINFO=$(MAKEINFO)" \ - clean) ; \ + $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" clean) ; \ else \ true ; \ fi @@ -1006,20 +983,7 @@ install-libg++: force @if [ -d ./libg++ ] ; then \ rootme=`pwd` ; export rootme ; \ (cd ./libg++; \ - $(MAKE) \ - "AR=$(AR)" \ - "AR_FLAGS=$(AR_FLAGS)" \ - "CC=$(CC)" \ - "CFLAGS=$(CFLAGS)" \ - "RANLIB=$(RANLIB)" \ - "LOADLIBES=$(LOADLIBES)" \ - "LDFLAGS=$(LDFLAGS)" \ - "BISON=$(BISON)" \ - "MAKEINFO=$(MAKEINFO)" \ - "INSTALL=$(INSTALL)" \ - "INSTALL_DATA=$(INSTALL_DATA)" \ - "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ - install) ; \ + $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" install) ; \ else \ true ; \ fi |