Support for the SH
This commit is contained in:
parent
984b27cbc3
commit
a86ea03fc2
|
@ -63,7 +63,7 @@ SUBDIRS = " this is set by configire, don't change this "
|
||||||
|
|
||||||
ALL=all-nothing
|
ALL=all-nothing
|
||||||
CLEAN=clean-nothing
|
CLEAN=clean-nothing
|
||||||
INSTALL=install-nothing
|
DO_INSTALL=install-nothing
|
||||||
|
|
||||||
#### host and target dependent Makefile fragments come in here.
|
#### host and target dependent Makefile fragments come in here.
|
||||||
###
|
###
|
||||||
|
@ -90,8 +90,12 @@ STAGESTUFF = $(TARGETLIB) $(OFILES)
|
||||||
all: endian.h $(ALL)
|
all: endian.h $(ALL)
|
||||||
|
|
||||||
clean: $(CLEAN)
|
clean: $(CLEAN)
|
||||||
|
rm -f endian e.h endian.h
|
||||||
|
|
||||||
install: $(INSTALL)
|
install: $(DO_INSTALL)
|
||||||
|
|
||||||
|
info:
|
||||||
|
install-info:
|
||||||
|
|
||||||
### build endian.h via a temporary so that interrupted builds will not
|
### build endian.h via a temporary so that interrupted builds will not
|
||||||
### leave an incomplete endian.h lying around.
|
### leave an incomplete endian.h lying around.
|
||||||
|
@ -191,6 +195,34 @@ clean-h8500: force
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
### sh
|
||||||
|
|
||||||
|
all-sh: force
|
||||||
|
if [ -f ./sh/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
install-sh: force
|
||||||
|
if [ -f ./sh/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean-sh: force
|
||||||
|
if [ -f ./sh/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
force:
|
force:
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# appropriate for this directory. For more information, check any
|
# appropriate for this directory. For more information, check any
|
||||||
# existing configure script.
|
# existing configure script.
|
||||||
|
|
||||||
configdirs="h8300 z8k h8500"
|
configdirs="h8300 z8k h8500 sh"
|
||||||
srctrigger=Makefile.in
|
srctrigger=Makefile.in
|
||||||
srcname="sim"
|
srcname="sim"
|
||||||
target_dependent=true
|
target_dependent=true
|
||||||
|
@ -22,6 +22,7 @@ case "${target}" in
|
||||||
h8300-*-*) sim_target=h8300 ;;
|
h8300-*-*) sim_target=h8300 ;;
|
||||||
h8500-*-*) sim_target=h8500 ;;
|
h8500-*-*) sim_target=h8500 ;;
|
||||||
z8k*-*-*) sim_target=z8k ;;
|
z8k*-*-*) sim_target=z8k ;;
|
||||||
|
sh*-*-*) sim_target=sh ;;
|
||||||
*) sim_target=none ;;
|
*) sim_target=none ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# appropriate for this directory. For more information, check any
|
# appropriate for this directory. For more information, check any
|
||||||
# existing configure script.
|
# existing configure script.
|
||||||
|
|
||||||
srctrigger=compile.c
|
srctrigger=interp.c
|
||||||
srcname="shsim"
|
srcname="shsim"
|
||||||
|
|
||||||
# per-host:
|
# per-host:
|
||||||
|
|
Loading…
Reference in New Issue