aboutsummaryrefslogtreecommitdiff
path: root/sim/moxie/Makefile.in
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2009-09-10 21:57:03 +0000
committerAnthony Green <green@redhat.com>2009-09-10 21:57:03 +0000
commit5c27d164d807fdd1f2eee400a81e74f210193118 (patch)
tree01e74ea0539961640048ceef9516f524ea371bfa /sim/moxie/Makefile.in
parentce0bf48891e83c4aa7137bd66a6dd547d55e0ea1 (diff)
downloadgdb-5c27d164d807fdd1f2eee400a81e74f210193118.zip
gdb-5c27d164d807fdd1f2eee400a81e74f210193118.tar.gz
gdb-5c27d164d807fdd1f2eee400a81e74f210193118.tar.bz2
Use common memory infrastructure and introduce device tree support
Diffstat (limited to 'sim/moxie/Makefile.in')
-rw-r--r--sim/moxie/Makefile.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/sim/moxie/Makefile.in b/sim/moxie/Makefile.in
index 9b00b09..a06ee22 100644
--- a/sim/moxie/Makefile.in
+++ b/sim/moxie/Makefile.in
@@ -18,12 +18,29 @@
## COMMON_PRE_CONFIG_FRAG
-SIM_OBJS = interp.o sim-load.o
+dtbdir = @datadir@/gdb-`sed q ${srcdir}/../../gdb/version.in`/dtb
+
+SIM_OBJS = interp.o sim-load.o sim-io.o sim-config.o sim-utils.o \
+sim-options.o sim-module.o sim-core.o sim-endian.o sim-trace.o \
+sim-engine.o sim-fpu.o sim-bits.o sim-profile.o sim-events.o \
+sim-memopt.o
+
SIM_EXTRA_LIBS = -lm -lz
SIM_EXTRA_CLEAN = moxie-clean
+SIM_EXTRA_INSTALL = install-dtb
+SIM_CFLAGS = -DDTB="\"$(dtbdir)/moxie-gdb.dtb\""
## COMMON_POST_CONFIG_FRAG
+all: interp.o moxie-gdb.dtb
+
interp.o: interp.c
+moxie-gdb.dtb: moxie-gdb.dts
+ dtc -O dtb -o moxie-gdb.dtb ${srcdir}/moxie-gdb.dts
+
+install-dtb: moxie-gdb.dtb
+ $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(dtbdir)
+ $(INSTALL_DATA) moxie-gdb.dtb $(DESTDIR)$(dtbdir)/moxie-gdb.dtb
+
moxie-clean: