mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-18 11:18:34 +08:00
* Makefile.in, configure.in: add support for files used only when
configured native, that is, when host == target.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
|
||||||
|
|
||||||
|
* Makefile.in, configure.in: add support for files used only when
|
||||||
|
configured native, that is, when host = target.
|
||||||
|
|
||||||
Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
|
Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
|
||||||
|
|
||||||
* tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
|
* tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
|
||||||
|
@ -139,7 +139,7 @@ CFLAGS = -g
|
|||||||
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
|
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
|
||||||
INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
|
INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
|
||||||
# None of the things in CFLAGS will do any harm, and on some systems
|
# None of the things in CFLAGS will do any harm, and on some systems
|
||||||
# (e.g. SunOS4) it is important to use the M_CFLAGS.
|
# (e.g. SunOS4) it is important to use the MH_CFLAGS.
|
||||||
LDFLAGS = $(CFLAGS)
|
LDFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
# Where is the "-liberty" library, containing getopt and obstack?
|
# Where is the "-liberty" library, containing getopt and obstack?
|
||||||
@ -153,18 +153,17 @@ OPCODES = ./../opcodes${subdir}/libopcodes.a
|
|||||||
# The config/mh-* file must define REGEX and REGEX1 on USG machines.
|
# The config/mh-* file must define REGEX and REGEX1 on USG machines.
|
||||||
# If your sysyem is missing alloca(), or, more likely, it's there but
|
# If your sysyem is missing alloca(), or, more likely, it's there but
|
||||||
# it doesn't work, define ALLOCA & ALLOCA1 too.
|
# it doesn't work, define ALLOCA & ALLOCA1 too.
|
||||||
# If your system is missing putenv(), add putenv.c to XM_ADD_FILES.
|
|
||||||
|
|
||||||
# Libraries and corresponding dependencies for compiling gdb.
|
# Libraries and corresponding dependencies for compiling gdb.
|
||||||
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
||||||
# TERMCAP comes after readline, since readline depends on it.
|
# TERMCAP comes after readline, since readline depends on it.
|
||||||
CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
|
CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
|
||||||
${XM_CLIBS} ${TM_CLIBS}
|
${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS}
|
||||||
CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
|
CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \
|
||||||
${RL_LIB} ${MMALLOC_LIB}
|
${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY}
|
||||||
|
|
||||||
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
||||||
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
||||||
|
|
||||||
VERSION = 4.6.6
|
VERSION = 4.6.6
|
||||||
DIST=gdb
|
DIST=gdb
|
||||||
@ -276,7 +275,7 @@ TARDIRS = doc # tests
|
|||||||
# GDB "info" files, which should be included in their entirety
|
# GDB "info" files, which should be included in their entirety
|
||||||
INFOFILES = gdb.info*
|
INFOFILES = gdb.info*
|
||||||
|
|
||||||
DEPFILES= ${TDEPFILES} ${XDEPFILES}
|
DEPFILES= ${TDEPFILES} ${XDEPFILES} ${NATDEPFILES}
|
||||||
|
|
||||||
SOURCES=$(SFILES) $(ALLDEPFILES) $(YYFILES)
|
SOURCES=$(SFILES) $(ALLDEPFILES) $(YYFILES)
|
||||||
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
|
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
|
||||||
@ -395,11 +394,12 @@ alldeps.mak: ${srcdir}/config
|
|||||||
for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \
|
for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \
|
||||||
echo $$i >>allconfig.tmp; \
|
echo $$i >>allconfig.tmp; \
|
||||||
awk <$$i ' \
|
awk <$$i ' \
|
||||||
$$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" { \
|
$$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \
|
||||||
|
|| $$1 == "NATDEPFILES" { \
|
||||||
for (i = 2; i <= NF; i++) \
|
for (i = 2; i <= NF; i++) \
|
||||||
print $$i >> "alldeps.tmp" ; \
|
print $$i >> "alldeps.tmp" ; \
|
||||||
} \
|
} \
|
||||||
$$1 == "TM_FILE=" || $$1 == "XM_FILE=" { \
|
$$1 == "TM_FILE=" || $$1 == "XM_FILE=" || $$1 == "NAT_FILE" { \
|
||||||
print $$2 >> "allparam.tmp" }' ; \
|
print $$2 >> "allparam.tmp" }' ; \
|
||||||
done
|
done
|
||||||
sort <alldeps.tmp | uniq | \
|
sort <alldeps.tmp | uniq | \
|
||||||
@ -519,7 +519,8 @@ kdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS}
|
|||||||
# Put the proper machine-specific files first.
|
# Put the proper machine-specific files first.
|
||||||
# createtags will edit the .o in DEPFILES into .c
|
# createtags will edit the .o in DEPFILES into .c
|
||||||
TAGS: ${TAGFILES}
|
TAGS: ${TAGFILES}
|
||||||
$(srcdir)/createtags $(TM_FILE) ${XM_FILE} $(DEPFILES) ${TAGFILES}
|
$(srcdir)/createtags $(TM_FILE) ${XM_FILE} ${NAT_FILE} \
|
||||||
|
$(DEPFILES) ${TAGFILES}
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
|
|
||||||
# Making distributions of GDB and friends.
|
# Making distributions of GDB and friends.
|
||||||
|
@ -233,13 +233,19 @@ fi
|
|||||||
# We really shouldn't depend on there being a space after TM_FILE= ...
|
# We really shouldn't depend on there being a space after TM_FILE= ...
|
||||||
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
|
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
|
||||||
|
|
||||||
|
if [ "${target}" = "${host}" ] ; then
|
||||||
|
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
|
||||||
|
fi
|
||||||
|
|
||||||
host_makefile_frag=config/${gdb_host}.mh
|
host_makefile_frag=config/${gdb_host}.mh
|
||||||
target_makefile_frag=config/${gdb_target}.mt
|
target_makefile_frag=config/${gdb_target}.mt
|
||||||
|
|
||||||
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
||||||
# ?config/* file, we don't make the corresponding links. But we have
|
# (NAT_FILE) is not set in the ?config/* file, we don't make the
|
||||||
# to remove the xm.h files and tm.h files anyway, e.g. when switching
|
# corresponding links. But we have to remove the xm.h files and tm.h
|
||||||
# from "configure host" to "configure none".
|
# files anyway, e.g. when switching from "configure host" to
|
||||||
|
# "configure none".
|
||||||
|
|
||||||
files=
|
files=
|
||||||
links=
|
links=
|
||||||
rm -f xm.h
|
rm -f xm.h
|
||||||
@ -252,6 +258,11 @@ if [ "${targetfile}" != "" ]; then
|
|||||||
files="${files} ${targetfile}"
|
files="${files} ${targetfile}"
|
||||||
links="${links} tm.h"
|
links="${links} tm.h"
|
||||||
fi
|
fi
|
||||||
|
rm -f nat.h
|
||||||
|
if [ "${nativefile}" != "" ]; then
|
||||||
|
files="${files} ${nativefile}"
|
||||||
|
links="${links} nat.h"
|
||||||
|
fi
|
||||||
|
|
||||||
# post-target:
|
# post-target:
|
||||||
|
|
||||||
@ -263,4 +274,10 @@ case ${srcdir} in
|
|||||||
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "${nativefile}" != "" ] ; then
|
||||||
|
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= ' \
|
||||||
|
< Makefile > Makefile.tem
|
||||||
|
mv -f Makefile.tem Makefile
|
||||||
|
fi
|
||||||
|
|
||||||
cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
|
cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
|
||||||
|
Reference in New Issue
Block a user