1 # Makefile template for Configure for the m32r simulator
2 # Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
3 # Contributed by Cygnus Support.
5 # This file is part of GDB, the GNU debugger.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ## COMMON_PRE_CONFIG_FRAG
23 M32R_OBJS
= gx-translate.o
25 CONFIG_DEVICES
= dv-sockser.o
58 # Extra headers included by sim-main.h.
60 arch.h cpuall.h m32r-sim.h cpu-opc.h
62 SIM_EXTRA_CFLAGS
= -DSIM_GX
=1
63 SIM_EXTRA_ALL
= gxtool
64 SIM_EXTRA_INSTALL
= install-gxtool
66 SIM_EXTRA_CLEAN
= m32r-clean
68 # This selects the m32r newlib/libgloss syscall definitions.
69 NL_TARGET
= -DNL_TARGET_m32r
71 ## COMMON_POST_CONFIG_FRAG
77 $(srcdir)/..
/common
/sim-config.h \
78 $(srcdir)/..
/common
/sim-base.h \
79 $(srcdir)/..
/common
/sim-basics.h \
80 $(srcdir)/..
/common
/sim-module.h \
81 $(srcdir)/..
/common
/sim-trace.h \
83 INCLUDE_DEPS
= $(MAIN_INCLUDE_DEPS
) $(SIM_EXTRA_DEPS
) cpu-sim.h
85 $(srcdir)/..
/common
/cgen-mem.h \
86 $(srcdir)/..
/common
/cgen-ops.h
88 sim-if.o
: sim-if.c
$(INCLUDE_DEPS
) $(srcdir)/..
/common
/sim-core.h
90 arch.o
: arch.c
$(INCLUDE_DEPS
)
94 m32r.o
: m32r.c
$(INCLUDE_DEPS
) $(OPS_INCLUDE_DEPS
) cpu.h
97 rm -f mloop.c stamp-arch stamp-cpu stamp-decode
100 gxtool
: ltconfig ltmain.sh
101 $(SHELL
) $(srcdir)/ltconfig
--disable-static
-o
$@
$(srcdir)/ltmain.sh
103 install-gxtool
: gxtool
104 $(INSTALL_PROGRAM
) gxtool
$(bindir)