local.mk 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ## See sim/Makefile.am
  2. ##
  3. ## Copyright (C) 1996-2022 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. %C%_BUILT_SRC_FROM_IGEN = \
  19. %D%/icache.h \
  20. %D%/icache.c \
  21. %D%/idecode.h \
  22. %D%/idecode.c \
  23. %D%/semantics.h \
  24. %D%/semantics.c \
  25. %D%/model.h \
  26. %D%/model.c \
  27. %D%/support.h \
  28. %D%/support.c \
  29. %D%/itable.h \
  30. %D%/itable.c \
  31. %D%/engine.h \
  32. %D%/engine.c \
  33. %D%/irun.c
  34. %C%_BUILD_OUTPUTS = \
  35. $(%C%_BUILT_SRC_FROM_IGEN) \
  36. %D%/stamp-igen
  37. ## This makes sure build tools are available before building the arch-subdirs.
  38. SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
  39. $(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen
  40. %C%_IGEN_TRACE = # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
  41. %C%_IGEN_INSN = $(srcdir)/%D%/mn10300.igen
  42. %C%_IGEN_INSN_INC = %D%/am33.igen %D%/am33-2.igen
  43. %C%_IGEN_DC = $(srcdir)/%D%/mn10300.dc
  44. %D%/stamp-igen: $(%C%_IGEN_INSN) $(%C%_IGEN_INSN_INC) $(%C%_IGEN_DC) $(IGEN)
  45. $(AM_V_GEN)$(IGEN_RUN) \
  46. $(%C%_IGEN_TRACE) \
  47. -G gen-direct-access \
  48. -M mn10300,am33 -G gen-multi-sim=am33 \
  49. -M am33_2 \
  50. -I $(srcdir)/%D% \
  51. -i $(%C%_IGEN_INSN) \
  52. -o $(%C%_IGEN_DC) \
  53. -x \
  54. -n icache.h -hc %D%/tmp-icache.h \
  55. -n icache.c -c %D%/tmp-icache.c \
  56. -n semantics.h -hs %D%/tmp-semantics.h \
  57. -n semantics.c -s %D%/tmp-semantics.c \
  58. -n idecode.h -hd %D%/tmp-idecode.h \
  59. -n idecode.c -d %D%/tmp-idecode.c \
  60. -n model.h -hm %D%/tmp-model.h \
  61. -n model.c -m %D%/tmp-model.c \
  62. -n support.h -hf %D%/tmp-support.h \
  63. -n support.c -f %D%/tmp-support.c \
  64. -n itable.h -ht %D%/tmp-itable.h \
  65. -n itable.c -t %D%/tmp-itable.c \
  66. -n engine.h -he %D%/tmp-engine.h \
  67. -n engine.c -e %D%/tmp-engine.c \
  68. -n irun.c -r %D%/tmp-irun.c
  69. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.h %D%/icache.h
  70. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.c %D%/icache.c
  71. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.h %D%/idecode.h
  72. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.c %D%/idecode.c
  73. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.h %D%/semantics.h
  74. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.c %D%/semantics.c
  75. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.h %D%/model.h
  76. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.c %D%/model.c
  77. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.h %D%/support.h
  78. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.c %D%/support.c
  79. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.h %D%/itable.h
  80. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.c %D%/itable.c
  81. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.h %D%/engine.h
  82. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.c %D%/engine.c
  83. $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-irun.c %D%/irun.c
  84. $(AM_V_at)touch $@
  85. MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)