Add translations for various sub-directories
[binutils-gdb.git] / sim / bfin / local.mk
blob64af3a7ed923bb739a8e6fe3fd594fe284c177c1
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2005-2024 Free Software Foundation, Inc.
4 ## Written by Analog Devices, Inc.
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% = $(SDL_CFLAGS)
21 nodist_%C%_libsim_a_SOURCES = \
22 %D%/modules.c
23 %C%_libsim_a_SOURCES = \
24 $(common_libcommon_a_SOURCES)
25 %C%_libsim_a_LIBADD = \
26 $(patsubst %,%D%/%,$(SIM_NEW_COMMON_OBJS)) \
27 $(patsubst %,%D%/dv-%.o,$(SIM_HW_DEVICES)) \
28 $(patsubst %,%D%/dv-%.o,$(%C%_SIM_EXTRA_HW_DEVICES)) \
29 %D%/bfin-sim.o \
30 %D%/devices.o \
31 %D%/gui.o \
32 %D%/interp.o \
33 %D%/machs.o \
34 %D%/sim-resume.o
35 $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h
37 noinst_LIBRARIES += %D%/libsim.a
39 ## Override wildcards that trigger common/modules.c to be (incorrectly) used.
40 %D%/modules.o: %D%/modules.c
42 %D%/%.o: common/%.c ; $(SIM_COMPILE)
43 -@am__include@ %D%/$(DEPDIR)/*.Po
45 %C%_run_SOURCES =
46 %C%_run_LDADD = \
47 %D%/nrun.o \
48 %D%/libsim.a \
49 $(SIM_COMMON_LIBS)
51 noinst_PROGRAMS += %D%/run
53 %C%_SIM_EXTRA_HW_DEVICES = \
54 bfin_cec \
55 bfin_ctimer \
56 bfin_dma \
57 bfin_dmac \
58 bfin_ebiu_amc \
59 bfin_ebiu_ddrc \
60 bfin_ebiu_sdc \
61 bfin_emac \
62 bfin_eppi \
63 bfin_evt \
64 bfin_gpio \
65 bfin_gpio2 \
66 bfin_gptimer \
67 bfin_jtag \
68 bfin_mmu \
69 bfin_nfc \
70 bfin_otp \
71 bfin_pfmon \
72 bfin_pint \
73 bfin_pll \
74 bfin_ppi \
75 bfin_rtc \
76 bfin_sic \
77 bfin_spi \
78 bfin_trace \
79 bfin_twi \
80 bfin_uart \
81 bfin_uart2 \
82 bfin_wdog \
83 bfin_wp \
84 eth_phy
86 %D%/linux-fixed-code.h: @MAINT@ $(srcdir)/%D%/linux-fixed-code.s %D%/local.mk %D%/$(am__dirstamp)
87 $(AM_V_GEN)$(AS_FOR_TARGET_BFIN) $(srcdir)/%D%/linux-fixed-code.s -o %D%/linux-fixed-code.o
88 $(AM_V_at)(\
89 set -e; \
90 echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \
91 echo "static const unsigned char bfin_linux_fixed_code[] ="; \
92 echo "{"; \
93 $(OBJDUMP_FOR_TARGET_BFIN) -d -z %D%/linux-fixed-code.o > $@.dis; \
94 sed -n \
95 -e 's:^[^ ]* :0x:' \
96 -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \
97 $@.dis; \
98 rm -f $@.dis; \
99 echo "};" \
100 ) > $@.tmp
101 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/linux-fixed-code.h
102 $(AM_V_at)touch $(srcdir)/%D%/linux-fixed-code.h