1991-05-19 09:16:46 +09:00
|
|
|
srcname="GDB"
|
|
|
|
srctrigger=main.c
|
|
|
|
|
1991-04-16 08:46:50 +09:00
|
|
|
# per-host:
|
|
|
|
|
1991-05-19 09:16:46 +09:00
|
|
|
if [ ! -f xconfig/${host} ]; then
|
|
|
|
echo "No such host ${host}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1991-07-05 00:59:47 +09:00
|
|
|
# We really shouldn't depend on there being a space after XM_FILE= ...
|
|
|
|
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <xconfig/$host`
|
1991-05-19 09:16:46 +09:00
|
|
|
|
1991-04-16 08:46:50 +09:00
|
|
|
# per-target:
|
1991-05-19 09:16:46 +09:00
|
|
|
|
|
|
|
if [ ! -f tconfig/${target} ]; then
|
|
|
|
echo "No such target ${target}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "${removing}" ] ; then
|
|
|
|
cat xconfig/${host} tconfig/${target} | awk '$1 == "#msg" {
|
|
|
|
print substr($0,6)}'
|
|
|
|
fi
|
|
|
|
|
1991-07-05 00:59:47 +09:00
|
|
|
# We really shouldn't depend on there being a space after TM_FILE= ...
|
|
|
|
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <tconfig/$target`
|
1991-05-19 09:16:46 +09:00
|
|
|
|
|
|
|
host_makefile_frag=xconfig/${host}
|
|
|
|
target_makefile_frag=tconfig/${target}
|
|
|
|
|
1991-07-05 00:59:47 +09:00
|
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
|
1991-07-31 09:34:07 +09:00
|
|
|
# ?config/* file, we don't make the corresponding links. But we have
|
|
|
|
# to remove the xm.h files and tm.h files anyway, e.g. when switching
|
|
|
|
# from "configure host" to "configure none".
|
1991-07-05 00:59:47 +09:00
|
|
|
files=
|
|
|
|
links=
|
1991-07-31 09:34:07 +09:00
|
|
|
rm -f xm.h
|
1991-07-05 00:59:47 +09:00
|
|
|
if [ "${hostfile}" != "" ]; then
|
|
|
|
files="${files} ${hostfile}"
|
|
|
|
links="${links} xm.h"
|
|
|
|
fi
|
1991-07-31 09:34:07 +09:00
|
|
|
rm -f tm.h
|
1991-07-05 00:59:47 +09:00
|
|
|
if [ "${targetfile}" != "" ]; then
|
|
|
|
files="${files} ${targetfile}"
|
|
|
|
links="${links} tm.h"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# post-target:
|
1991-05-19 09:16:46 +09:00
|
|
|
|
1991-07-05 00:59:47 +09:00
|
|
|
case ${srcdir} in
|
|
|
|
.)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
|
|
|
|
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
|
|
|
esac
|
|
|
|
|
1991-07-31 09:34:07 +09:00
|
|
|
cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
|