$(INSTALL_MODULES) \
$(INSTALL_TARGET_MODULES) \
$(INSTALL_X11_MODULES) \
- $(INSTALL_DOSREL)
-
+ $(INSTALL_DOSREL) \
+ $(EXTRA_TARGET_HOST_INSTALL_MODULES)
CC_FOR_TARGET = ` \
if [ -f $$r/gcc/xgcc ] ; then \
fi; \
fi`
+# The first rule in the file had better be this one. Don't put any above it.
+# This lives here to allow makefile fragments to contain dependencies.
+all: all.normal
+.PHONY: all
+
+# These can be overridden by config/mt-*.
+# The _TARGET_ is because they're specified in mt-foo.
+# The _HOST_ is because they're programs that run on the host.
+EXTRA_TARGET_HOST_ALL_MODULES =
+EXTRA_TARGET_HOST_INSTALL_MODULES =
+EXTRA_TARGET_HOST_CHECK_MODULES =
+
#### host and target specific makefile fragments come in here.
###
"`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
"`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
"`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
- "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
+ "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
all-binutils \
all-bison \
all-byacc \
+ $(start-sanitize-cygnus) \
+ all-cgen \
+ $(end-sanitize-cygnus) \
all-cvssrc \
all-db \
all-dejagnu \
all-send-pr \
all-shellutils \
all-sim \
+ $(start-sanitize-cygnus) \
all-snavigator \
+ $(end-sanitize-cygnus) \
all-tar \
all-tcl \
all-texinfo \
$(start-sanitize-ide) \
all-vmake \
$(end-sanitize-ide) \
- all-wdiff
+ all-wdiff \
+ $(EXTRA_TARGET_HOST_ALL_MODULES)
# This is a list of the check targets for all of the modules which are
# compiled using $(FLAGS_TO_PASS).
check-sed \
check-send-pr \
check-shellutils \
+ $(start-sanitize-cygnus) \
check-snavigator \
+ $(end-sanitize-cygnus) \
check-sim \
check-tar \
check-tcl \
$(start-sanitize-ide) \
check-vmake \
$(end-sanitize-ide) \
- check-wdiff
+ check-wdiff \
+ $(EXTRA_TARGET_HOST_CHECK_MODULES)
CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
install-send-pr \
install-shellutils \
install-sim \
+ $(start-sanitize-cygnus) \
install-snavigator \
+ $(end-sanitize-cygnus) \
install-tar \
install-texinfo \
install-textutils \
all-target-gperf \
all-target-examples \
all-target-libstub \
- all-target-cygmon \
+ $(start-sanitize-java) \
all-target-libjava \
- all-target-boehm-gc
+ all-target-boehm-gc \
+ $(end-sanitize-java) \
+ all-target-cygmon
# This is a list of the configure targets for all of the modules which
# are compiled using the target tools.
configure-target-gperf \
configure-target-examples \
configure-target-libstub \
- configure-target-cygmon \
+ $(start-sanitize-java) \
configure-target-libjava \
- configure-target-boehm-gc
+ configure-target-boehm-gc \
+ $(end-sanitize-java) \
+ configure-target-cygmon
# This is a list of the check targets for all of the modules which are
# compiled using $(TARGET_FLAGS_TO_PASS).
check-target-newlib \
check-target-winsup \
check-target-libiberty \
- check-target-gperf \
+ $(start-sanitize-java) \
check-target-libjava \
- check-target-boehm-gc
+ check-target-boehm-gc \
+ $(end-sanitize-java) \
+ check-target-gperf
# This is a list of the install targets for all of the modules which are
# compiled using $(TARGET_FLAGS_TO_PASS).
install-target-winsup \
install-target-libgloss \
install-target-libiberty \
- install-target-gperf \
+ $(start-sanitize-java) \
install-target-libjava \
- install-target-boehm-gc
+ install-target-boehm-gc \
+ $(end-sanitize-java) \
+ install-target-gperf
# This is a list of the targets for which we can do a clean-{target}.
CLEAN_MODULES = \
clean-binutils \
clean-bison \
clean-byacc \
+ $(start-sanitize-cygnus) \
+ clean-cgen \
+ $(end-sanitize-cygnus) \
clean-cvssrc \
clean-db \
clean-dejagnu \
clean-send-pr \
clean-shellutils \
clean-sim \
+ $(start-sanitize-cygnus) \
clean-snavigator \
+ $(end-sanitize-cygnus) \
clean-tar \
clean-tcl \
clean-texinfo \
clean-target-gperf \
clean-target-examples \
clean-target-libstub \
- clean-target-cygmon \
+ $(start-sanitize-java) \
clean-target-libjava \
- clean-target-boehm-gc
+ clean-target-boehm-gc \
+ $(end-sanitize-java) \
+ clean-target-cygmon
# All of the x11 modules that can be cleaned
CLEAN_X11_MODULES = \
clean-tk \
clean-tix
-# The first rule in the file had better be this one. Don't put any above it.
-all: all.normal
-.PHONY: all
-
# The target built for a native build.
.PHONY: all.normal
all.normal: \
$(INSTALL_MODULES) \
$(INSTALL_TARGET_MODULES) \
$(INSTALL_X11_MODULES) \
+ $(EXTRA_TARGET_HOST_INSTALL_MODULES) \
gcc-no-fixedincludes
# Install the gcc headers files, but not the fixed include files,
mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
fi; \
else \
+ if echo '.;' | cmp - $(TARGET_SUBDIR)/$${dir}/tmpmulti.out >/dev/null 2>&1; then \
+ true; \
+ else \
+ rm -f $(TARGET_SUBDIR)/$${dir}/Makefile; \
+ fi; \
mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
fi; \
fi; \
all-bfd: all-libiberty all-intl
all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
all-bison: all-texinfo
+# start-sanitize-java
all-target-boehm-gc: configure-target-boehm-gc
+# end-sanitize-java
all-byacc:
+# start-sanitize-cygnus
+all-cgen:
+# These two have dependencies on cgen, and while this section is alphabetically
+# sorted, I wish to keep these together until things settle.
+all-opcodes: all-cgen
+all-sim: all-cgen
+# end-sanitize-cygnus
all-cvssrc:
configure-target-cygmon: $(ALL_GCC)
all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub
configure-target-gperf: $(ALL_GCC)
all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
all-gprof: all-libiberty all-bfd all-opcodes all-intl
-all-grep: all-libiberty
all-grez: all-libiberty all-bfd all-opcodes
all-gui: all-gdb all-libproc all-target-librx
all-guile:
all-libide: all-ilu
all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide
# end-sanitize-ide
-all-target-libjava: configure-target-libjava
+# start-sanitize-java
+configure-target-libjava: $(ALL_GCC) configure-target-boehm-gc
+all-target-libjava: configure-target-libjava all-gcc all-target-newlib all-target-boehm-gc
+# end-sanitize-java
configure-target-librx: $(ALL_GCC) configure-target-newlib
all-target-librx: configure-target-librx
configure-target-libstdc++: $(ALL_GCC)
all-send-pr: all-prms
all-shellutils:
all-sim: all-libiberty all-bfd all-opcodes all-readline
-all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep all-flexlm
+# start-sanitize-cygnus
+all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep all-flexlm all-libgui
+# end-sanitize-cygnus
all-tar: all-libiberty
all-tcl:
all-tclX: all-tcl all-tk
SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
.PHONY: gas+binutils.tar.gz
-GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof intl
+GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
$(MAKE) -f Makefile.in taz TOOL=gas \
SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"