AR = ar
AR_FLAGS = qc
CFLAGS = -g
+C++FLAGS = -g -O
RANLIB = ranlib
NM = nm
# C compiler to use to create programs which must be run in the build
# environment.
CC_FOR_BUILD = $(CC)
+C++_FOR_BUILD = gcc
-SUBDIRS = libiberty mmalloc glob readline opcodes bfd gdb binutils ld gas tgas gcc libg++ newlib
+SUBDIRS = libiberty mmalloc glob readline opcodes bfd gdb binutils ld gas tgas gcc libg++ newlib deja-gnu
OTHERS =
ALL = all.normal
fi; \
fi`
+C++_FOR_TARGET = ` \
+ if [ -f $${rootme}/gcc/Makefile ] ; then \
+ echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
+ else \
+ if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
+ echo gcc; \
+ else \
+ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
+ fi; \
+ fi`
+
AS_FOR_TARGET = ` \
if [ -f $${rootme}/gas/Makefile ] ; then \
echo $${rootme}/gas/as.new ; \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
+ "C++FLAGS=$(C++FLAGS)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
- "CC_FOR_BUILD=$(CC_FOR_BUILD)"
+ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
+ "C++_FOR_BUILD=$(C++_FOR_BUILD)"
# Flags to pass down to makes which are built with the target
# environment (e.g. libg++, xiberty, newlib).
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
+ "C++_FOR_BUILD=$(C++_FOR_BUILD)" \
"CC=$(CC_FOR_TARGET)" \
+ "C++=$(C++_FOR_TARGET)" \
"AS=$(AS_FOR_TARGET)" \
"AR=$(AR_FOR_TARGET)" \
"RANLIB=$(RANLIB_FOR_TARGET)" \
"NM=$(NM_FOR_TARGET)" \
"XTRAFLAGS=$(XTRAFLAGS)"
+# The first rule in the file had better be this one. Don't put any above it.
+all: $(ALL)
+
.PHONY: all info install-info clean-info
.NOEXPORT:
-all: $(ALL)
-
info:
@rootme=`pwd` ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=info "DODIRS=$(SUBDIRS)"
all-gcc all-binutils all-libg++ all-readline all-gdb \
all-make all-rcs all-cvs all-diff all-grep \
all-patch all-emacs all-ispell all-etc \
- all-newlib all-gprof all-send_pr all-libm
+ all-newlib all-gprof all-send_pr all-libm all-deja-gnu
all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
all-opcodes all-bfd all-readline all-gdb all-binutils all-gcc \
- all-newlib
+ all-newlib all-deja-gnu
clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
clean-bfd clean-newlib clean-binutils clean-flex \
clean-gcc clean-readline clean-glob clean-gdb \
clean-make clean-diff clean-grep clean-rcs \
clean-cvs clean-patch clean-emacs clean-ispell \
- clean-libg++ clean-gprof clean-send_pr clean-libm clean-xiberty
+ clean-libg++ clean-gprof clean-send_pr clean-libm clean-xiberty \
+ clean-deja-gnu
-rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
clean-stamps:
install-byacc \
install-cvs \
install-diff \
+ install-deja-gnu \
install-emacs \
install-etc \
install-flex \
install-binutils install-opcodes install-byacc install-flex \
install-ld install-gas install-readline \
install-glob install-gdb install-mmalloc \
- install-newlib install-gcc install-etc
+ install-newlib install-gcc install-etc install-deja-gnu
+
+### deja-gnu
+all-deja-gnu: force
+ @if [ -f ./deja-gnu/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+clean-deja-gnu: force
+ @if [ -f ./deja-gnu/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
+ else \
+ true ; \
+ fi
+
+install-deja-gnu: force
+ @if [ -f ./deja-gnu/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
### autoconf
all-autoconf: force
# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
- config.sub config configure.man configure.texi move-if-change
+ config.sub config configure.man configure.texi move-if-change \
+ COPYING.LIB
GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex