diff options
Diffstat (limited to 'libgloss/xstormy16/Makefile.inc')
-rw-r--r-- | libgloss/xstormy16/Makefile.inc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libgloss/xstormy16/Makefile.inc b/libgloss/xstormy16/Makefile.inc new file mode 100644 index 000000000..346fee379 --- /dev/null +++ b/libgloss/xstormy16/Makefile.inc @@ -0,0 +1,48 @@ +multilibtool_DATA += \ + %D%/crt0.o \ + %D%/crti.o \ + %D%/crtn.o +libobjs_a_SOURCES += \ + %D%/crt0.s \ + %D%/crti.s \ + %D%/crtn.s + +## Here is all of the simulator stuff +multilibtool_DATA += \ + %D%/sim_high.ld \ + %D%/sim_rom.ld +multilibtool_LIBRARIES += %D%/libsim.a +%C%_libsim_a_SOURCES = \ + %D%/syscalls.S \ + %D%/sim_malloc_start.s \ + %D%/isatty.c + +## Here is stuff for building apps for GDB on the EVA board +multilibtool_DATA += %D%/eva_app.ld +multilibtool_LIBRARIES += %D%/libeva_app.a +%C%_libeva_app_a_SOURCES = \ + %D%/close.c \ + %D%/fstat.c \ + %D%/getpid.c \ + %D%/kill.c \ + %D%/lseek.c \ + %D%/open.c \ + %D%/stat.c \ + %D%/unlink.c \ + %D%/eva_app.c \ + %D%/isatty.c + +## Stub stuff +multilibtool_PROGRAMS += %D%/eva_stub.elf +%C%_eva_stub_elf_SOURCES = \ + %D%/xstormy16_stub.c \ + %D%/crt0_stub.s +%C%_eva_stub_elf_LDFLAGS = \ + $(AM_LDFLAGS) \ + -nostartfiles -T$(srcdir)/%D%/eva_stub.ld + +multilibtool_DATA += \ + %D%/eva_stub.hex +%D%/eva_stub.hex: %D%/eva_stub.elf + $(AM_V_GEN)$(OBJCOPY) -O ihex $< $@ +CLEANFILES += %D%/eva_stub.hex |