sim: switch config.h usage to defs.h
[binutils-gdb.git] / sim / lm32 / Makefile.in
index 60420a1d0ad30d3ff10fae6fbba828ecd71c4f6d..31c39400df882c9dc41e2fcd3eb852208e77ef09 100644 (file)
@@ -6,61 +6,39 @@
 # List of object files, less common parts.
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
-       sim-hload.o \
-       sim-hrw.o \
-       sim-model.o \
-       sim-reg.o \
-       sim-signal.o \
         cgen-utils.o cgen-trace.o cgen-scache.o \
-        cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
+        cgen-run.o \
         sim-if.o arch.o \
         cpu.o decode.o sem.o model.o mloop.o \
         lm32.o traps.o user.o 
 
 # List of extra dependencies.
 # Generally this consists of simulator specific files included by sim-main.h.
-SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h
+SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h \
+       eng.h
 
 # List of flags to always pass to $(CC).
 #SIM_EXTRA_CFLAGS =
 
 SIM_EXTRA_CLEAN = lm32-clean
 
-# This selects the lm32 newlib/libgloss syscall definitions.
-NL_TARGET = -DNL_TARGET_lm32
-
 ## COMMON_POST_CONFIG_FRAG
 
 arch = lm32 
 
-arch.o: arch.c $(SIM_MAIN_DEPS)
-
-traps.o: traps.c targ-vals.h $(SIM_MAIN_DEPS)
-
-sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
-
 LM32BF_INCLUDE_DEPS = \
        $(CGEN_MAIN_CPU_DEPS) \
        cpu.h decode.h eng.h
 
-lm32.o: lm32.c $(LM32BF_INCLUDE_DEPS)
-
 # FIXME: Use of `mono' is wip.
 mloop.c eng.h: stamp-mloop
 stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
-       $(SHELL) $(srccom)/genmloop.sh \
+       $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
                -mono -fast -pbb -switch sem-switch.c \
                -cpu lm32bf -infile $(srcdir)/mloop.in
        $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
        $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
        touch stamp-mloop
-mloop.o: mloop.c sem-switch.c 
-
-cpu.o: cpu.c $(LM32BF_INCLUDE_DEPS)
-decode.o: decode.c $(LM32BF_INCLUDE_DEPS)
-sem.o: sem.c $(LM32BF_INCLUDE_DEPS)
-model.o: model.c $(LM32BF_INCLUDE_DEPS)
 
 lm32-clean:
        rm -f mloop.c eng.h stamp-mloop