1## See sim/Makefile.am 2## 3## Copyright (C) 1996-2023 Free Software Foundation, Inc. 4## Written by Cygnus Support. 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. 10## 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. 15## 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/>. 18 19%C%_run_SOURCES = 20%C%_run_LDADD = \ 21 %D%/nrun.o \ 22 %D%/libsim.a \ 23 $(SIM_COMMON_LIBS) 24 25noinst_PROGRAMS += %D%/run 26 27%C%_BUILT_SRC_FROM_IGEN = \ 28 %D%/icache.h \ 29 %D%/icache.c \ 30 %D%/idecode.h \ 31 %D%/idecode.c \ 32 %D%/semantics.h \ 33 %D%/semantics.c \ 34 %D%/model.h \ 35 %D%/model.c \ 36 %D%/support.h \ 37 %D%/support.c \ 38 %D%/itable.h \ 39 %D%/itable.c \ 40 %D%/engine.h \ 41 %D%/engine.c \ 42 %D%/irun.c 43%C%_BUILD_OUTPUTS = \ 44 $(%C%_BUILT_SRC_FROM_IGEN) \ 45 %D%/stamp-igen 46 47## This makes sure build tools are available before building the arch-subdirs. 48SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS) 49 50$(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen 51 52%C%_IGEN_TRACE = # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries 53%C%_IGEN_INSN = $(srcdir)/%D%/v850.igen 54%C%_IGEN_DC = $(srcdir)/%D%/v850.dc 55%D%/stamp-igen: $(%C%_IGEN_INSN) $(%C%_IGEN_DC) $(IGEN) 56 $(AM_V_GEN)$(IGEN_RUN) \ 57 $(%C%_IGEN_TRACE) \ 58 -G gen-direct-access \ 59 -G gen-zero-r0 \ 60 -i $(%C%_IGEN_INSN) \ 61 -o $(%C%_IGEN_DC) \ 62 -x \ 63 -n icache.h -hc %D%/tmp-icache.h \ 64 -n icache.c -c %D%/tmp-icache.c \ 65 -n semantics.h -hs %D%/tmp-semantics.h \ 66 -n semantics.c -s %D%/tmp-semantics.c \ 67 -n idecode.h -hd %D%/tmp-idecode.h \ 68 -n idecode.c -d %D%/tmp-idecode.c \ 69 -n model.h -hm %D%/tmp-model.h \ 70 -n model.c -m %D%/tmp-model.c \ 71 -n support.h -hf %D%/tmp-support.h \ 72 -n support.c -f %D%/tmp-support.c \ 73 -n itable.h -ht %D%/tmp-itable.h \ 74 -n itable.c -t %D%/tmp-itable.c \ 75 -n engine.h -he %D%/tmp-engine.h \ 76 -n engine.c -e %D%/tmp-engine.c \ 77 -n irun.c -r %D%/tmp-irun.c 78 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.h %D%/icache.h 79 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.c %D%/icache.c 80 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.h %D%/idecode.h 81 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.c %D%/idecode.c 82 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.h %D%/semantics.h 83 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.c %D%/semantics.c 84 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.h %D%/model.h 85 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.c %D%/model.c 86 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.h %D%/support.h 87 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.c %D%/support.c 88 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.h %D%/itable.h 89 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.c %D%/itable.c 90 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.h %D%/engine.h 91 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.c %D%/engine.c 92 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-irun.c %D%/irun.c 93 $(AM_V_at)touch $@ 94 95MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS) 96