* Makefile.in, configure.in: if target isn't supported, build a
harmless makefile.
This commit is contained in:
parent
44c5672585
commit
47dba87afa
3 changed files with 71 additions and 5 deletions
6
sim/ChangeLog
Normal file
6
sim/ChangeLog
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Mon Feb 8 11:46:06 1993 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||||
|
|
||||||
|
* Makefile.in, configure.in: if target isn't supported, build a
|
||||||
|
harmless makefile.
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,10 @@ DEP = mkdep
|
||||||
|
|
||||||
SUBDIRS = " this is set by configire, don't change this "
|
SUBDIRS = " this is set by configire, don't change this "
|
||||||
|
|
||||||
|
ALL=all-nothing
|
||||||
|
CLEAN=clean-nothing
|
||||||
|
INSTALL=install-nothing
|
||||||
|
|
||||||
#### host and target dependent Makefile fragments come in here.
|
#### host and target dependent Makefile fragments come in here.
|
||||||
###
|
###
|
||||||
|
|
||||||
|
@ -85,11 +89,24 @@ STAGESTUFF = $(TARGETLIB) $(OFILES)
|
||||||
|
|
||||||
all: endian.h $(ALL)
|
all: endian.h $(ALL)
|
||||||
|
|
||||||
|
clean: $(CLEAN)
|
||||||
|
|
||||||
|
install: $(INSTALL)
|
||||||
|
|
||||||
endian.h: endian
|
endian.h: endian
|
||||||
./endian > endian.h
|
./endian > endian.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### none
|
||||||
|
|
||||||
|
all-nothing: force
|
||||||
|
|
||||||
|
clean-nothing: force
|
||||||
|
|
||||||
|
install-nothing: force
|
||||||
|
|
||||||
|
|
||||||
### z8k
|
### z8k
|
||||||
|
|
||||||
all-z8k: force
|
all-z8k: force
|
||||||
|
@ -108,6 +125,14 @@ install-z8k: force
|
||||||
true ; \
|
true ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clean-z8k: force
|
||||||
|
if [ -f ./z8k/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
### h8300
|
### h8300
|
||||||
|
|
||||||
|
@ -127,6 +152,42 @@ install-h8300: force
|
||||||
true ; \
|
true ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clean-h8300: force
|
||||||
|
if [ -f ./h8300/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
### h8500
|
||||||
|
|
||||||
|
all-h8500: force
|
||||||
|
if [ -f ./h8500/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
install-h8500: force
|
||||||
|
if [ -f ./h8500/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \
|
||||||
|
else \
|
||||||
|
true ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean-h8500: force
|
||||||
|
if [ -f ./h8500/Makefile ] ; then \
|
||||||
|
rootme=`pwd` ; export rootme ; \
|
||||||
|
( cd ./h8500 ; $(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"
|
configdirs="h8300 z8k h8500"
|
||||||
srctrigger=Makefile.in
|
srctrigger=Makefile.in
|
||||||
srcname="sim"
|
srcname="sim"
|
||||||
target_dependent=true
|
target_dependent=true
|
||||||
|
@ -20,16 +20,15 @@ target_dependent=true
|
||||||
|
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
h8300-*-*) sim_target=h8300 ;;
|
h8300-*-*) sim_target=h8300 ;;
|
||||||
|
h8500-*-*) sim_target=h8500 ;;
|
||||||
z8k*-*-*) sim_target=z8k ;;
|
z8k*-*-*) sim_target=z8k ;;
|
||||||
|
*) sim_target=none ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
configdirs=${sim_target}
|
configdirs=${sim_target}
|
||||||
|
|
||||||
if [ ! -f ${srcdir}/${sim_target}/${sim_target}.mt ] ; then
|
if [ ! -f ${srcdir}/${sim_target}/${sim_target}.mt ] ; then
|
||||||
if [ -n "${sim_target}" ] ; then
|
target_makefile_frag=
|
||||||
echo '***' No file ${srcdir}/${sim_target}/${sim_target}.mt 1>&2
|
|
||||||
fi
|
|
||||||
echo '***' The simulator does not support target ${target} 1>&2
|
|
||||||
else
|
else
|
||||||
target_makefile_frag=${sim_target}/${sim_target}.mt
|
target_makefile_frag=${sim_target}/${sim_target}.mt
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue