blob: 6cc5fba34b3b8b8280ee6f1dfc78074f3e103484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
srcname="GDB"
srctrigger=main.c
if [ -z "${template}" ] ; then
make -f Makefile.dist Makefile.in
fi
# per-host:
if [ ! -f xconfig/${host} ]; then
echo "No such host ${host}"
exit 1
fi
targetfile=`awk '
$1 == "XM_FILE=" { print $2 }' <xconfig/$host`
if [ "${targetfile}" = "/" ] ; then
targetfile=/dev/null
fi
# per-target:
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
hostfile=`awk '
$1 == "TM_FILE=" { print $2 }' <tconfig/$target`
if [ "${hostfile}" = "/" ] ; then
hostfile=/dev/null
fi
if [ ! -d readline ]; then
mkdir readline
# This could be a symlink, but getting the name right (because
# srcdir can be either relative or absolute) would be hairy.
cp ${srcdir}/readline/Makefile readline
fi
host_makefile_frag=xconfig/${host}
target_makefile_frag=tconfig/${target}
files="${hostfile} ${targetfile}"
links="xm.h tm.h"
|