# 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 ...
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.
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
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