t-mep 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # -*- makefile -*-
  2. # GCC makefile fragment for MeP
  3. # Copyright (C) 2001-2015 Free Software Foundation, Inc.
  4. # Contributed by Red Hat Inc
  5. #
  6. # This file is part of GCC.
  7. #
  8. # GCC is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 3, or (at your option)
  11. # any later version.
  12. #
  13. # GCC is distributed in the hope that it will be useful, but WITHOUT
  14. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  16. # License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GCC; see the file COPYING3. If not see
  20. # <http://www.gnu.org/licenses/>. */
  21. # Force genpreds to be rebuilt in case MeP-Integrator changed the predicates
  22. GTM_H = tm.h $(tm_file_list) $(srcdir)/config/mep/mep-intrin.h insn-constants.h
  23. TCFLAGS = -mlibrary
  24. mep-pragma.o: $(srcdir)/config/mep/mep-pragma.c $(CONFIG_H) $(SYSTEM_H) \
  25. coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(C_PRAGMA_H) \
  26. $(CPPLIB_H) hard-reg-set.h output.h $(srcdir)/config/mep/mep-protos.h \
  27. function.h insn-config.h reload.h $(TARGET_H)
  28. $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
  29. MULTILIB_OPTIONS = mel mall-opts mfar
  30. MULTILIB_DIRNAMES = el allopt far
  31. MD_INCLUDES = \
  32. $(srcdir)/config/mep/intrinsics.md \
  33. $(srcdir)/config/mep/predicates.md \
  34. $(srcdir)/config/mep/constraints.md
  35. mep.o : $(srcdir)/config/mep/mep-intrin.h dumpfile.h
  36. # begin-isas
  37. MEP_CORE = ext_core1
  38. MEP_COPRO = ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64
  39. # end-isas
  40. # To use this, you must have cgen and cgen/cpu in the same source tree as
  41. # gcc.
  42. cgen-maint :
  43. S=`cd $(srcdir); pwd`; \
  44. cd $$S/config/mep && \
  45. guile -s $$S/../cgen/cgen-intrinsics.scm \
  46. -s $$S/../cgen \
  47. $(CGENFLAGS) \
  48. -a $$S/../cgen/cpu/mep.cpu \
  49. -m mep,c5 \
  50. -i mep,$(MEP_CORE),$(MEP_COPRO) \
  51. -K mep,$(MEP_CORE),$(MEP_COPRO) \
  52. -M intrinsics.md \
  53. -N mep-intrin.h \
  54. -P intrinsics.h
  55. # start-extra-headers
  56. EXTRA_HEADERS = $(srcdir)/config/mep/intrinsics.h \
  57. $(srcdir)/config/mep/default.h
  58. # end-extra-headers