Makefile.in 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #### Makefile.in --- Makefile template for the M32C simulator
  2. ### Copyright (C) 2005-2015 Free Software Foundation, Inc.
  3. ### Contributed by Red Hat, Inc.
  4. ###
  5. ### This file is part of the GNU simulators.
  6. ###
  7. ### This program is free software; you can redistribute it and/or modify
  8. ### it under the terms of the GNU General Public License as published by
  9. ### the Free Software Foundation; either version 3 of the License, or
  10. ### (at your option) any later version.
  11. ###
  12. ### This program is distributed in the hope that it will be useful,
  13. ### but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ### GNU General Public License for more details.
  16. ###
  17. ### You should have received a copy of the GNU General Public License
  18. ### along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. ## COMMON_PRE_CONFIG_FRAG
  20. SIM_EXTRA_CFLAGS = -Wall -DTIMER_A
  21. SIM_RUN_OBJS = \
  22. main.o \
  23. $(ENDLIST)
  24. SIM_OBJS = \
  25. gdb-if.o \
  26. int.o \
  27. load.o \
  28. mem.o \
  29. misc.o \
  30. reg.o \
  31. r8c.o \
  32. m32c.o \
  33. srcdest.o \
  34. syscalls.o \
  35. trace.o \
  36. $(ENDLIST)
  37. # SIM_EXTRA_ALL = sample.x sample2.x
  38. LIBS = $B/bfd/libbfd.a $B/libiberty/libiberty.a
  39. ## COMMON_POST_CONFIG_FRAG
  40. arch = m32c
  41. r8c.c : r8c.opc opc2c
  42. ./opc2c -l r8c.out $(srcdir)/r8c.opc > r8c.c
  43. m32c.c : m32c.opc opc2c
  44. ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
  45. opc2c : opc2c.o safe-fgets.o
  46. $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)
  47. sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
  48. ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
  49. ../../ld/ld-new sample.o -o sample.x -T$(srcdir)/sample.ld
  50. sample.mot : sample.x
  51. ../../binutils/objcopy --srec-forceS3 -O srec sample.x sample.mot
  52. sample2.x : sample2.o gloss.o $(srcdir)/sample.ld
  53. ../../ld/ld-new sample2.o gloss.o -o sample2.x -T$(srcdir)/sample.ld
  54. sample2.o : $(srcdir)/sample2.c
  55. ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample2.c -o sample2.o
  56. gloss.o : $(srcdir)/gloss.S
  57. ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/gloss.S -o gloss.o
  58. encodings:
  59. grep '/\* [01]' $(srcdir)/r8c.opc | sort
  60. gdb-if.o : cpu.h mem.h load.h syscalls.h
  61. int.o : int.h cpu.h mem.h
  62. load.o : load.h cpu.h mem.h
  63. main.o : cpu.h mem.h misc.h load.h
  64. mem.o : mem.h cpu.h syscalls.h
  65. misc.o : cpu.h misc.h
  66. reg.o : cpu.h
  67. srcdest.c : cpu.h mem.h
  68. syscalls.c : cpu.h mem.h syscalls.h
  69. r8c.o : cpu.h mem.h misc.h int.h
  70. opc2c.o : opc2c.c safe-fgets.h
  71. $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c
  72. safe-fgets.o : safe-fgets.c safe-fgets.h
  73. $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c