mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
Three part names, etc.
This commit is contained in:
44
Makefile.in
44
Makefile.in
@ -1,9 +1,23 @@
|
|||||||
#
|
#
|
||||||
# Makefile for directory with subdirs to build.
|
# Makefile for directory with subdirs to build.
|
||||||
|
# Copyright (C) 1990, 1991 Cygnus Support
|
||||||
#
|
#
|
||||||
# Last Mod Wed Jul 24 18:25:48 PDT 1991, by rich@cygint.cygnus.com
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
#
|
||||||
|
# Last Mod Tue Aug 20 12:48:54 PDT 1991, by rich@cygint.cygnus.com
|
||||||
#
|
#
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
srcdir = .
|
srcdir = .
|
||||||
@ -15,9 +29,9 @@ destdir = /usr/local
|
|||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
AR = ar
|
AR = ar
|
||||||
AR_FLAGS = cqv
|
AR_FLAGS = cqv
|
||||||
BISONPATH = $(srcdir)/../bison`if [ -d $(srcdir)/bison.$(target) ] ; then echo .$(target) ; fi`
|
BISONPATH =
|
||||||
|
|
||||||
BISON = $(BISONPATH)$(subdir)/bison -L $(BISONPATH)/
|
BISON = `if [ -d $(srcdir)/../bison\`if [ -d $(srcdir)/bison.$(target) ] ; then echo .$(target) ; fi\`$(subdir) ] ; then echo $(srcdir)/../bison\`if [ -d $(srcdir)/bison.$(target) ] ; then echo .$(target) ; fi\`$(subdir)/bison -L $(srcdir)/../bison\`if [ -d $(srcdir)/bison.$(target) ] ; then echo .$(target) ; fi\`/; else echo yacc ; fi`
|
||||||
|
|
||||||
SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib
|
SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib
|
||||||
OTHERS =
|
OTHERS =
|
||||||
@ -78,6 +92,8 @@ pass:
|
|||||||
"LOADLIBES=$(srcdir)/../gnulib`if [ -d $(srcdir)/binutils.$(target) ] ; \
|
"LOADLIBES=$(srcdir)/../gnulib`if [ -d $(srcdir)/binutils.$(target) ] ; \
|
||||||
then echo .$(target) ; fi`$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
|
then echo .$(target) ; fi`$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
|
||||||
"LDFLAGS=-nostdlib /lib/crt0.o \
|
"LDFLAGS=-nostdlib /lib/crt0.o \
|
||||||
|
-L$(srcdir)/../gnulib`if [ -d $(srcdir)/gnulib.$(target) ] ; \
|
||||||
|
then echo .$(target) ; fi`$(subdir)/$(stagepass)/ \
|
||||||
-B$(srcdir)/../ld`if [ -d $(srcdir)/ld.$(target) ] ; \
|
-B$(srcdir)/../ld`if [ -d $(srcdir)/ld.$(target) ] ; \
|
||||||
then echo .$(target) ; fi`$(subdir)/$(stagepass)/"
|
then echo .$(target) ; fi`$(subdir)/$(stagepass)/"
|
||||||
|
|
||||||
@ -148,7 +164,7 @@ force:
|
|||||||
Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
|
Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
|
||||||
(cd $(srcdir) ; \
|
(cd $(srcdir) ; \
|
||||||
./configure +destdir=$(destdir) +norecurse \
|
./configure +destdir=$(destdir) +norecurse \
|
||||||
`if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
|
`if [ "$(srcdir)" != "." ] ; then echo +subdirs; fi` \
|
||||||
$(host) +target=$(target))
|
$(host) +target=$(target))
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -163,6 +179,7 @@ bfd.ilrt.tar.Z: force_update
|
|||||||
make clean
|
make clean
|
||||||
./configure -rm sun4
|
./configure -rm sun4
|
||||||
rm -f bfd.ilrt.tar.Z
|
rm -f bfd.ilrt.tar.Z
|
||||||
|
chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) -print`
|
||||||
tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) \
|
tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) \
|
||||||
| compress -v >bfd.ilrt.tar.Z
|
| compress -v >bfd.ilrt.tar.Z
|
||||||
|
|
||||||
@ -170,7 +187,22 @@ force_update:
|
|||||||
|
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.20 1991/07/31 02:47:14 gnu
|
# Revision 1.25 1991/08/22 07:15:49 rich
|
||||||
|
# Three part names, etc.
|
||||||
|
#
|
||||||
|
# Revision 1.24 1991/08/20 01:57:31 rich
|
||||||
|
# Another try at passing gnulib's location.
|
||||||
|
#
|
||||||
|
# Revision 1.23 1991/08/16 21:47:41 rich
|
||||||
|
# Pass on BISON as bison only if bison is here.
|
||||||
|
#
|
||||||
|
# Revision 1.22 1991/08/07 19:15:26 rich
|
||||||
|
# +forcesubdirs -> +subdirs
|
||||||
|
#
|
||||||
|
# Revision 1.21 1991/07/31 18:07:59 gnu
|
||||||
|
# Set file permissions the same for everyone before making tar file.
|
||||||
|
#
|
||||||
|
# Revision 1.20 1991/07/31 02:47:14 gnu
|
||||||
# Add bfd.ilrt.tar.Z "make" rules.
|
# Add bfd.ilrt.tar.Z "make" rules.
|
||||||
#
|
#
|
||||||
# Revision 1.19 1991/07/27 07:46:34 rich
|
# Revision 1.19 1991/07/27 07:46:34 rich
|
||||||
|
@ -5,21 +5,95 @@
|
|||||||
|
|
||||||
srctrigger=libbfd.c
|
srctrigger=libbfd.c
|
||||||
srcname="bfd"
|
srcname="bfd"
|
||||||
commontargets=true
|
|
||||||
|
|
||||||
# per-host:
|
# per-host:
|
||||||
|
|
||||||
if [ ! -f config/hmake-${host} ] ; then
|
if [ "${host_os}" = "posix" ] ; then
|
||||||
echo No such host available: ${host}
|
bfd_host=posix
|
||||||
|
else
|
||||||
|
case "${host_cpu}" in
|
||||||
|
rs6000) bfd_host=aix ;;
|
||||||
|
mips)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
dec) bfd_host=dec3100 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
m88k)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
*)
|
||||||
|
case "${host_os}" in
|
||||||
|
dgux) bfd_host=dgux ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
m68k)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
hp) bfd_host=hp9000 ;;
|
||||||
|
sony) bfd_host=news ;;
|
||||||
|
sun) bfd_host=sun3 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
i386)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
*)
|
||||||
|
case "${host_os}" in
|
||||||
|
sysv) bfd_host=i386v ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
sparc)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
sun) bfd_host=sun4 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
rtpc) bfd_host=rtbsd ;;
|
||||||
|
tahoe | vax) bfd_host=${host_cpu} ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f config/hmake-${bfd_host} ] ; then
|
||||||
|
echo '***' BFD does not support host ${host}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
host_makefile_frag=config/hmake-${bfd_host}
|
||||||
|
|
||||||
# per-target:
|
# per-target:
|
||||||
|
|
||||||
if [ ! -f config/tmake-${target} ] ; then
|
case ${target_os} in
|
||||||
echo No such target available: ${target}
|
aout | coff | bout) bfd_target=${target_cpu}-${target_os} ;;
|
||||||
|
sunos*)
|
||||||
|
case "${target_cpu}" in
|
||||||
|
m68k) bfd_target=sun3 ;;
|
||||||
|
sparc) bfd_target=sun4 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
newsos) bfd_target=news ;;
|
||||||
|
*)
|
||||||
|
case "${target_cpu}" in
|
||||||
|
tahoe | vax)
|
||||||
|
bfd_target=${target_cpu} ;;
|
||||||
|
mips)
|
||||||
|
case "${host_vendor}" in
|
||||||
|
dec) bfd_host=dec3100 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ ! -f config/tmake-${bfd_target} ] ; then
|
||||||
|
echo '***' BFD does not support target ${target}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
target_makefile_fragment=config/tmake-${bfd_target}
|
||||||
|
|
||||||
files=
|
files=
|
||||||
links=
|
links=
|
||||||
|
Reference in New Issue
Block a user