summaryrefslogtreecommitdiffstats
path: root/sim-scripts/Makefile
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-01-19 22:37:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-01-19 22:37:10 +0000
commit450998b43e3d448228370fdcfeb7080644b96b7a (patch)
tree8476a5f1962c2368fd8223daf6e20a13149c31df /sim-scripts/Makefile
parent2009-01-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-testing-450998b43e3d448228370fdcfeb7080644b96b7a.tar.bz2
2009-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, Makefile, README, gdb-sim-run.in, jmr3904.in, usleep.c: New files.
Diffstat (limited to '')
-rw-r--r--sim-scripts/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile
new file mode 100644
index 0000000..9fe1d82
--- /dev/null
+++ b/sim-scripts/Makefile
@@ -0,0 +1,43 @@
+#
+# $Id$
+#
+
+INSTALL_DIR=../bin
+GENERATED_SCRIPTS=jmr3904-4.10 sis-4.10
+COMPILED_PROGRAMS=usleep
+
+all: prep ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS} install
+
+prep:
+ test -d ${INSTALL_DIR} || mkdir ${INSTALL_DIR}
+
+usleep: usleep.c
+ $(CC) -o $@ $<
+
+jmr3904-4.10: gdb-sim-run.in jmr3904.in
+ sed -e 's/@CPU@/MIPS/' \
+ -e 's/@CPU_TARGET@/mipstx39/' \
+ -e 's/@BSP@/jmr3904/' \
+ -e '/^##INSERT BSP SUPPORT HERE/r jmr3904.in' <$< >$@
+ chmod +x $@
+
+sis-4.10: gdb-sim-run.in sis.in
+ sed -e 's/@CPU@/SPARC/' \
+ -e 's/@CPU_TARGET@/sparc/' \
+ -e 's/@BSP@/sis/' \
+ -e '/^##INSERT BSP SUPPORT HERE/r sis.in' <$< >$@
+ chmod +x $@
+
+clean:
+ rm -f ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS}
+
+install:
+ for i in ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS} ; do \
+ cp $${i} ${INSTALL_DIR} ; \
+ done
+ cd ${INSTALL_DIR} ; for i in jmr3904 ; do \
+ for v in 4.9 4.8 4.7 4.6 ; do \
+ rm -f $${i}-$${v} ; ln -s $${i}-4.10 $${i}-$${v} ; \
+ done ;\
+ done
+