all-uudecode \
all-wdiff
-
# This is a list of the check targets for all of the modules which are
# compiled using $(FLAGS_TO_PASS).
-CHECK_MODULES = \
+# This is a list of the check targets for all of the modules which are
+# compiled using $(FLAGS_TO_PASS).
+#
+# The list is in two parts. The first lists those tools which
+# are tested as part of the host's native tool-chain, and not
+# tested in a cross configuration.
+NATIVE_CHECK_MODULES = \
+ check-byacc \
+ check-flex
+
+CROSS_CHECK_MODULES = \
check-autoconf \
check-bfd \
check-binutils \
- check-byacc \
check-cvs \
check-dejagnu \
check-diff \
check-etc \
check-fileutils \
check-find \
- check-flex \
check-gas \
check-gawk \
check-gdb \
check-uudecode \
check-wdiff
+CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
+
# This is a list of the install targets for all of the modules which are
# compiled using $(FLAGS_TO_PASS).
INSTALL_MODULES = \
# using $(X11_FLAGS_TO_PASS).
ALL_X11_MODULES = \
all-emacs \
+ all-emacs19 \
all-expect \
all-gash \
all-tclX \
# compiled using $(X11_FLAGS_TO_PASS).
INSTALL_X11_MODULES = \
install-emacs \
+ install-emacs19 \
install-expect \
install-gash \
install-tclX \
# This rule is used to build the modules which use FLAGS_TO_PASS. To
# build a target all-X means to cd to X and make all.
# all-glob is handled specially because it doesn't actually build.
-.PHONY: $(ALL_MODULES) all-glob
-$(ALL_MODULES) all-glob:
+#
+# all-gui, all-libproc and all-librx are handled specially because
+# they are still experimental, and if they fail to build, that
+# shouldn't stop "make all".
+.PHONY: $(ALL_MODULES) all-glob all-gui all-libproc all-librx
+$(ALL_MODULES) all-glob all-gui all-libproc all-librx:
@dir=`echo $@ | sed -e 's/all-//'`; \
- if [ -f ./$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- srcroot=`cd $(srcdir); pwd`; export srcroot; \
- (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+ if [ -d ./$${dir} ] ; then \
+ if [ -f ./$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
+ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+ else \
+ true ; \
+ fi; \
else \
true; \
fi
# This rule is used to check the modules which use FLAGS_TO_PASS. To
# build a target check-X means to cd to X and make all.
-.PHONY: $(CHECK_MODULES)
-$(CHECK_MODULES):
+
+.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
+$(NATIVE_CHECK_MODULES):
+ @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+ dir=`echo $@ | sed -e 's/check-//'`; \
+ if [ -d ./$${dir} ] ; then \
+ if [ -f ./$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
+ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
+ else \
+ true; \
+ fi ; \
+ fi; \
+ fi
+
+$(CROSS_CHECK_MODULES):
@dir=`echo $@ | sed -e 's/check-//'`; \
if [ -f ./$${dir}/Makefile ] ; then \
r=`pwd`; export r; \
all-chillrt: all-binutils all-gas all-gcc all-newlib
# end-sanitize-chill
all-cvs:
-all-dejagnu:
+all-dejagnu: all-tcl all-expect all-tk
all-diff: all-libiberty
all-emacs:
+all-emacs19:
all-etc:
all-expect: all-tcl all-tk
all-fileutils: all-libiberty
all-glob:
all-gprof: all-libiberty all-bfd
all-grep: all-libiberty
+all-gui: all-gdb all-libproc all-librx
all-gzip: all-libiberty
all-hello: all-libiberty
all-indent:
-all-ispell: all-emacs
+all-ispell: all-emacs # all-emacs19 ??? is this needed?
all-ld: all-libiberty all-bfd all-byacc all-flex
all-libg++: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib all-libio
all-libio: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib