diff options
author | Steve Chamberlain <sac@cygnus> | 1995-07-03 20:47:27 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-07-03 20:47:27 +0000 |
commit | a220ba0fd769534c2de35cd3c9b88d882476fa78 (patch) | |
tree | 74d15efc7c450f3d4c282b96ff856952133f2dc9 | |
parent | 22d3533cae93cfc6fe9ad74d8b04a7735a4fd3cb (diff) | |
download | gdb-a220ba0fd769534c2de35cd3c9b88d882476fa78.zip gdb-a220ba0fd769534c2de35cd3c9b88d882476fa78.tar.gz gdb-a220ba0fd769534c2de35cd3c9b88d882476fa78.tar.bz2 |
* Makfile.in (DLLTOOL_FOR_TARGET): New name, pass it down.
* configure.in (win32): New target and host.
-rw-r--r-- | Makefile.in | 27 | ||||
-rw-r--r-- | configure.in | 20 |
2 files changed, 36 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in index bfa117c..9b396b0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -197,6 +197,17 @@ AS_FOR_TARGET = ` \ 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 ; \ @@ -253,6 +264,7 @@ BASE_FLAGS_TO_PASS = \ "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)" \ @@ -310,6 +322,7 @@ EXTRA_TARGET_FLAGS = \ '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)' \ @@ -1169,14 +1182,22 @@ gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb 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" \ diff --git a/configure.in b/configure.in index 335415f..3ef4748 100644 --- a/configure.in +++ b/configure.in @@ -111,7 +111,7 @@ case "${host}" in 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 ;; @@ -317,7 +317,7 @@ done case "${host}" in i[345]86-*-go32*) - configdirs="$configdirs dosrel" ;; + configdirs="$configdirs dosrel" ;; esac # Remove more programs from consideration, based on the host or @@ -333,8 +333,8 @@ case "${host}" in 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 @@ -390,11 +390,15 @@ case "${target}" in 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" |