Add documentation for the MIPS assembler's -march=from-abi command line option
[binutils-gdb.git] / sim / frv / local.mk
blobfab1c5f48cd879e70d1a6a769cb9620c9a724dc9
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1998-2023 Free Software Foundation, Inc.
4 ## Contributed by Red Hat.
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
19 AM_CPPFLAGS_%C% = $(SIM_FRV_TRAPDUMP_FLAGS)
21 ## Some modules don't build cleanly yet.
22 AM_CFLAGS_%C%_memory.o = -Wno-error
23 AM_CFLAGS_%C%_sem.o = -Wno-error
25 nodist_%C%_libsim_a_SOURCES = \
26 %D%/modules.c
27 %C%_libsim_a_SOURCES = \
28 $(common_libcommon_a_SOURCES)
29 %C%_libsim_a_LIBADD = \
30 $(patsubst %,%D%/%,$(SIM_NEW_COMMON_OBJS)) \
31 $(patsubst %,%D%/dv-%.o,$(SIM_HW_DEVICES)) \
33 %D%/cgen-accfp.o \
34 %D%/cgen-fpu.o \
35 %D%/cgen-run.o \
36 %D%/cgen-scache.o \
37 %D%/cgen-trace.o \
38 %D%/cgen-utils.o \
40 %D%/arch.o \
41 %D%/cgen-par.o \
42 %D%/cpu.o \
43 %D%/decode.o \
44 %D%/frv.o \
45 %D%/mloop.o \
46 %D%/model.o \
47 %D%/sem.o \
49 %D%/cache.o \
50 %D%/interrupts.o \
51 %D%/memory.o \
52 %D%/options.o \
53 %D%/pipeline.o \
54 %D%/profile.o \
55 %D%/profile-fr400.o \
56 %D%/profile-fr450.o \
57 %D%/profile-fr500.o \
58 %D%/profile-fr550.o \
59 %D%/registers.o \
60 %D%/reset.o \
61 %D%/sim-if.o \
62 %D%/traps.o
63 $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h
65 noinst_LIBRARIES += %D%/libsim.a
67 ## Override wildcards that trigger common/modules.c to be (incorrectly) used.
68 %D%/modules.o: %D%/modules.c
70 %D%/%.o: common/%.c ; $(SIM_COMPILE)
71 -@am__include@ %D%/$(DEPDIR)/*.Po
73 %C%_run_SOURCES =
74 %C%_run_LDADD = \
75 %D%/nrun.o \
76 %D%/libsim.a \
77 $(SIM_COMMON_LIBS)
79 noinst_PROGRAMS += %D%/run
81 %C%docdir = $(docdir)/%C%
82 %C%doc_DATA = %D%/README
84 ## List all generated headers to help Automake dependency tracking.
85 BUILT_SOURCES += %D%/eng.h
86 %C%_BUILD_OUTPUTS = \
87 %D%/mloop.c \
88 %D%/stamp-mloop
90 ## Generating modules.c requires all sources to scan.
91 %D%/modules.c: | $(%C%_BUILD_OUTPUTS)
93 ## FIXME: Use of `mono' is wip.
94 %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
95 %D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
96 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
97 -mono -scache -parallel-generic-write -parallel-only \
98 -cpu frvbf \
99 -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
100 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
101 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
102 $(AM_V_at)touch $@
104 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
106 ## Target that triggers all cgen targets that works when --disable-cgen-maint.
107 %D%/cgen: %D%/cgen-arch %D%/cgen-cpu-decode
109 %D%/cgen-arch:
110 $(AM_V_GEN)mach=all FLAGS="with-scache"; $(CGEN_GEN_ARCH)
111 $(srcdir)/%D%/arch.h $(srcdir)/%D%/arch.c $(srcdir)/%D%/cpuall.h: @CGEN_MAINT@ %D%/cgen-arch
113 %D%/cgen-cpu-decode:
114 $(AM_V_GEN)cpu=frvbf mach=frv,fr550,fr500,fr450,fr400,tomcat,simple FLAGS="with-scache with-profile=fn with-generic-write with-parallel-only" EXTRAFILES="$(CGEN_CPU_SEM)"; $(CGEN_GEN_CPU_DECODE)
115 $(srcdir)/%D%/cpu.h $(srcdir)/%D%/sem.c $(srcdir)/%D%/model.c $(srcdir)/%D%/decode.c $(srcdir)/%D%/decode.h: @CGEN_MAINT@ %D%/cgen-cpu-decode