Makefile.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # Makefile template for Configure for the V850 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. SHELL = @SHELL@
  18. ## COMMON_PRE_CONFIG_FRAG
  19. SIM_OBJS = \
  20. $(SIM_NEW_COMMON_OBJS) \
  21. simops.o interp.o \
  22. itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
  23. sim-hload.o \
  24. sim-resume.o \
  25. sim-reason.o \
  26. sim-stop.o
  27. # List of extra dependencies.
  28. # Generally this consists of simulator specific files included by sim-main.h.
  29. SIM_EXTRA_DEPS = v850_sim.h sim-main.h simops.h itable.h
  30. # List of flags to always pass to $(CC)
  31. SIM_EXTRA_CFLAGS = \
  32. -DDEBUG \
  33. -I$(srcdir)/../../newlib/libc/sys/sysnecv850
  34. SIM_EXTRA_CLEAN = clean-extra
  35. INCLUDE = $(sim_main_headers) $(SIM_EXTRA_DEPS)
  36. NL_TARGET = -DNL_TARGET_v850
  37. ## COMMON_POST_CONFIG_FRAG
  38. BUILT_SRC_FROM_IGEN = \
  39. icache.h \
  40. icache.c \
  41. idecode.h \
  42. idecode.c \
  43. semantics.h \
  44. semantics.c \
  45. model.h \
  46. model.c \
  47. support.h \
  48. support.c \
  49. itable.h \
  50. itable.c \
  51. engine.h \
  52. engine.c \
  53. irun.c
  54. $(BUILT_SRC_FROM_IGEN): tmp-igen
  55. #
  56. .PHONY: clean-igen
  57. clean-igen:
  58. rm -f $(BUILT_SRC_FROM_IGEN)
  59. rm -f tmp-igen tmp-insns
  60. ../igen/igen:
  61. cd ../igen && $(MAKE)
  62. IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
  63. IGEN_INSN=$(srcdir)/v850.igen
  64. IGEN_DC=$(srcdir)/v850-dc
  65. tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
  66. cd ../igen && $(MAKE)
  67. ../igen/igen \
  68. $(IGEN_TRACE) \
  69. -G gen-direct-access \
  70. -G gen-zero-r0 \
  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. clean-extra: clean-igen
  106. rm -f table.c simops.h gencode
  107. interp.o: interp.c $(INCLUDE)
  108. simops.o: simops.c simops.h $(INCLUDE) targ-vals.h
  109. semantics.o: $(INCLUDE)