]>
Commit | Line | Data |
---|---|---|
de8a2781 MF |
1 | ## See sim/Makefile.am |
2 | ## | |
213516ef | 3 | ## Copyright (C) 1994-2023 Free Software Foundation, Inc. |
de8a2781 MF |
4 | ## |
5 | ## This program is free software; you can redistribute it and/or modify | |
6 | ## it under the terms of the GNU General Public License as published by | |
7 | ## the Free Software Foundation; either version 3 of the License, or | |
8 | ## (at your option) any later version. | |
9 | ## | |
10 | ## This program is distributed in the hope that it will be useful, | |
11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | ## GNU General Public License for more details. | |
14 | ## | |
15 | ## You should have received a copy of the GNU General Public License | |
16 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. | |
ed939535 | 17 | |
c0c25232 MF |
18 | %C%_run_SOURCES = |
19 | %C%_run_LDADD = \ | |
20 | %D%/main.o \ | |
21 | %D%/libsim.a \ | |
22 | $(SIM_COMMON_LIBS) | |
23 | ||
4df74707 MF |
24 | ## This makes sure common parts are available before building the arch-subdirs |
25 | ## which will refer to these. | |
26 | SIM_ALL_RECURSIVE_DEPS += common/libcommon.a | |
27 | %D%/libsim.a: common/libcommon.a | |
28 | $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) | |
29 | ||
c0c25232 MF |
30 | ## Helper targets for running make from the top-level due to run's sis.o. |
31 | %D%/%.o: %D%/%.c | %D%/libsim.a $(SIM_ALL_RECURSIVE_DEPS) | |
93e0ec91 | 32 | $(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) |
c0c25232 | 33 | |
1b1be68b | 34 | noinst_PROGRAMS += %D%/run |
c0c25232 | 35 | |
ee3314c4 MF |
36 | %D%/spreg.c: @MAINT@ %D%/ppc-spr-table %D%/spreg-gen.py %D%/$(am__dirstamp) |
37 | $(AM_V_GEN)$(srcdir)/%D%/spreg-gen.py --source $@.tmp | |
38 | $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/spreg.c | |
39 | $(AM_V_at)touch $(srcdir)/%D%/spreg.c | |
40 | ||
41 | %D%/spreg.h: @MAINT@ %D%/ppc-spr-table %D%/spreg-gen.py %D%/$(am__dirstamp) | |
42 | $(AM_V_GEN)$(srcdir)/%D%/spreg-gen.py --header $@.tmp | |
43 | $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/spreg.h | |
44 | $(AM_V_at)touch $(srcdir)/%D%/spreg.h | |
45 | ||
ed939535 MF |
46 | %C%docdir = $(docdir)/%C% |
47 | %C%doc_DATA = %D%/BUGS %D%/INSTALL %D%/README %D%/RUN |