Makefile.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Makefile template for Configure for the mn10300 sim library.
  2. # Copyright (C) 1996-2015 Free Software Foundation, Inc.
  3. # Written by Cygnus Support.
  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/>.
  17. ## COMMON_PRE_CONFIG_FRAG
  18. MN10300_OBJS = \
  19. itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
  20. $(SIM_NEW_COMMON_OBJS) \
  21. op_utils.o \
  22. sim-hload.o \
  23. sim-resume.o \
  24. sim-reason.o \
  25. sim-stop.o
  26. SIM_OBJS = $(MN10300_OBJS) interp.o
  27. SIM_EXTRA_CLEAN = clean-igen
  28. # Extra dependencies for "sim-main.h"
  29. SIM_EXTRA_DEPS = mn10300_sim.h itable.h idecode.h
  30. # Select mn10300 support in nltvals.def.
  31. NL_TARGET = -DNL_TARGET_mn10300
  32. INCLUDE = mn10300_sim.h $(srcdir)/../../include/gdb/callback.h
  33. # List of extra flags to always pass to $(CC).
  34. SIM_EXTRA_CFLAGS = -DPOLL_QUIT_INTERVAL=0x20
  35. ## COMMON_POST_CONFIG_FRAG
  36. idecode.o op_utils.o semantics.o: targ-vals.h
  37. BUILT_SRC_FROM_IGEN = \
  38. icache.h \
  39. icache.c \
  40. idecode.h \
  41. idecode.c \
  42. semantics.h \
  43. semantics.c \
  44. model.h \
  45. model.c \
  46. support.h \
  47. support.c \
  48. itable.h \
  49. itable.c \
  50. engine.h \
  51. engine.c \
  52. irun.c
  53. $(BUILT_SRC_FROM_IGEN): tmp-igen
  54. .PHONY: clean-igen
  55. clean-igen:
  56. rm -f $(BUILT_SRC_FROM_IGEN)
  57. rm -f tmp-igen tmp-insns
  58. ../igen/igen:
  59. cd ../igen && $(MAKE)
  60. IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
  61. IGEN_INSN=$(srcdir)/mn10300.igen $(srcdir)/am33.igen $(srcdir)/am33-2.igen
  62. IGEN_DC=$(srcdir)/mn10300.dc
  63. tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
  64. cd ../igen && $(MAKE)
  65. ../igen/igen \
  66. $(IGEN_TRACE) \
  67. -G gen-direct-access \
  68. -M mn10300,am33 -G gen-multi-sim=am33 \
  69. -M am33_2 \
  70. -I $(srcdir) \
  71. -i $(IGEN_INSN) \
  72. -o $(IGEN_DC) \
  73. -x \
  74. -n icache.h -hc tmp-icache.h \
  75. -n icache.c -c tmp-icache.c \
  76. -n semantics.h -hs tmp-semantics.h \
  77. -n semantics.c -s tmp-semantics.c \
  78. -n idecode.h -hd tmp-idecode.h \
  79. -n idecode.c -d tmp-idecode.c \
  80. -n model.h -hm tmp-model.h \
  81. -n model.c -m tmp-model.c \
  82. -n support.h -hf tmp-support.h \
  83. -n support.c -f tmp-support.c \
  84. -n itable.h -ht tmp-itable.h \
  85. -n itable.c -t tmp-itable.c \
  86. -n engine.h -he tmp-engine.h \
  87. -n engine.c -e tmp-engine.c \
  88. -n irun.c -r tmp-irun.c
  89. $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h icache.h
  90. $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c icache.c
  91. $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h idecode.h
  92. $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c idecode.c
  93. $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h semantics.h
  94. $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c semantics.c
  95. $(SHELL) $(srcdir)/../../move-if-change tmp-model.h model.h
  96. $(SHELL) $(srcdir)/../../move-if-change tmp-model.c model.c
  97. $(SHELL) $(srcdir)/../../move-if-change tmp-support.h support.h
  98. $(SHELL) $(srcdir)/../../move-if-change tmp-support.c support.c
  99. $(SHELL) $(srcdir)/../../move-if-change tmp-itable.h itable.h
  100. $(SHELL) $(srcdir)/../../move-if-change tmp-itable.c itable.c
  101. $(SHELL) $(srcdir)/../../move-if-change tmp-engine.h engine.h
  102. $(SHELL) $(srcdir)/../../move-if-change tmp-engine.c engine.c
  103. $(SHELL) $(srcdir)/../../move-if-change tmp-irun.c irun.c
  104. touch tmp-igen
  105. interp.o: interp.c $(INCLUDE)