aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1996-12-16 22:16:24 +0000
committerRob Savoye <rob@cygnus>1996-12-16 22:16:24 +0000
commitaf685203811c8fdd656857abb1824b0d3c651e28 (patch)
treea8e49444a9d1a23dffc1568e858ce536332dcc32 /sim/erc32
parent063443cf01d7cffebaccc2a2adfc9c8774e9a91e (diff)
downloadgdb-af685203811c8fdd656857abb1824b0d3c651e28.zip
gdb-af685203811c8fdd656857abb1824b0d3c651e28.tar.gz
gdb-af685203811c8fdd656857abb1824b0d3c651e28.tar.bz2
Link with SIM_EXTRA_LIBS, not just EXTRA_LIBS, which is never set.
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/Makefile.in15
1 files changed, 12 insertions, 3 deletions
diff --git a/sim/erc32/Makefile.in b/sim/erc32/Makefile.in
index cc4b586..2a1f477 100644
--- a/sim/erc32/Makefile.in
+++ b/sim/erc32/Makefile.in
@@ -20,14 +20,17 @@
# SIM_AC_OUTPUT combines this with ../common/Make-common.in to produce the
# real Makefile.
+TERMCAP_LIB = @TERMCAP@
+
## Begin config
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
-SIM_EXTRA_LIBS = ../../readline/libreadline.a -ltermcap -lm
+SIM_EXTRA_LIBS = ../../readline/libreadline.a $(TERMCAP_LIB) -lm
SIM_EXTRA_LIBDEPS = ../../readline/libreadline.a
SIM_EXTRA_ALL = sis
SIM_EXTRA_INSTALL = install-sis
SIM_EXTRA_CLEAN = clean-sis
+
# UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
# CFLAGS if faster (infinite) UART speed is desired. Might affect the
# behaviour of UART interrupt routines ...
@@ -39,7 +42,7 @@ SIS_OFILES = exec.o erc32.o func.o help.o float.o
sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
$(CC) $(ALL_CFLAGS) -o sis \
- sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
+ sis.o $(SIS_OFILES) $(COMMON_OBJS) $(SIM_EXTRA_LIBS)
# FIXME: This computes the build host's endianness, doesn't it?
# There is AC_C_BIGENDIAN but it doesn't handle float endianness.
@@ -56,6 +59,13 @@ install-sis:
clean-sis:
rm -f sis end end.h
+configure:
+ @echo "Rebuilding configure..."
+ if [ x"${srcdir}" = x"@srcdir@" ] ; then \
+ srcdir=. ; export srcdir ; \
+ else true ; fi ; \
+ (cd $${srcdir}; autoconf --localdir=../common)
+
# Circumvent Sun Make bug with VPATH.
erc32.o: erc32.c sis.h end.h
exec.o: exec.c sis.h end.h
@@ -63,5 +73,4 @@ float.o: float.c sis.h end.h
func.o: func.c
help.o: help.c
interf.o: interf.c sis.h end.h
-run.o: run.c
sis.o: sis.c sis.h end.h