fi; \
fi`
+DLLTOOL_FOR_TARGET = ` \
+ if [ -f $$r/binutils/dlltool ] ; then \
+ echo $$r/binutils/dlltool ; \
+ else \
+ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+ echo $(DLLTOOL); \
+ else \
+ t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
+ fi; \
+ fi`
+
AR_FOR_TARGET = ` \
if [ -f $$r/binutils/ar ] ; then \
echo $$r/binutils/ar ; \
"CXXFLAGS=$(CXXFLAGS)" \
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
+ "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
"GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
'CXX=$$(CXX_FOR_TARGET)' \
'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
+ 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
'NM=$$(NM_FOR_TARGET)' \
SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
.PHONY: newlib.tar.gz
-NEWLIB_SUPPORT_DIRS=
+NEWLIB_SUPPORT_DIRS=libgloss
# taz configures for the sun4 target which won't configure newlib.
-# compensate here by configuring newlib for a simple (no multilib support)
-# cross target (sparc64).
+# We need newlib configured so that the .info files are made.
+# Unfortunately, it is not enough to just configure newlib separately:
+# taz will build the .info files but since SUBDIRS won't contain newlib,
+# distclean won't be run (leaving Makefile, config.status, and the tmp files
+# used in building the .info files, eg: *.def, *.ref).
+# Compensate here by configuring newlib for a simple (no multilib support)
+# cross target (sparc64), building the info files, and doing make distclean
+# ourselves.
newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
rootme=`pwd` ; \
cd newlib && ../configure --srcdir $$rootme/newlib \
--host sun4 --target sparc64-elf
+ cd newlib ; make info
+ cd newlib ; make distclean
$(MAKE) -f Makefile.in taz TOOL=newlib \
SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" \
i[345]86-*-solaris2*) host_makefile_frag=config/mh-sysv4 ;;
i[345]86-*-aix*) host_makefile_frag=config/mh-aix386 ;;
i[345]86-*-go32*) host_makefile_frag=config/mh-go32 ;;
- i[345]86-*-pe*) host_makefile_frag=config/mh-i386pe ;;
+ i[345]86-*-win32) host_makefile_frag=config/mh-i386win32 ;;
vax-*-ultrix2*) host_makefile_frag=config/mh-vaxult2 ;;
*-ibm-aix*) host_makefile_frag=config/mh-aix ;;
*-bull-bosx*) host_makefile_frag=config/mh-aix ;;
case "${host}" in
i[345]86-*-go32*)
- configdirs="$configdirs dosrel" ;;
+ configdirs="$configdirs dosrel" ;;
esac
# Remove more programs from consideration, based on the host or
i[345]86-*-go32)
noconfigdirs="tcl tk expect deja-gnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff"
;;
- i[345]86-*-pe*)
- noconfigdirs="tcl tk expect deja-gnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff"
+ i[345]86-*-win32)
+ noconfigdirs="tcl tk expect deja-gnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff gdb"
;;
esac
configdirs=`echo go32 ${configdirs}`
noconfigdirs="$noconfigdirs gdb libg++ libstdc++ libio librx"
;;
+
+ i[345]86-*-win32)
+ # Can't build gdb for win32 target
+ noconfigdirs="$noconfigdirs gdb tk"
+ # but put newlib back
+ configdirs="$configdirs newlib"
+ ;;
i[345]86-*-pe)
- # add the pe support tools to the list
- # but don't build gdb
- configdirs=`echo pei386 ${configdirs}`
- noconfigdirs="$noconfigdirs gdb libg++ libstdc++ libio librx"
+ noconfigdirs="$noconfigdirs libg++ libstdc++ libio librx"
;;
i[345]86-*-sco*)
noconfigdirs="$noconfigdirs gprof"