diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-26 23:44:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-31 01:42:53 -0500 |
commit | b188e79773c58d91f73152a307ad4da870c63ea3 (patch) | |
tree | 906c95efffa326557924f5fdb31438bec162f249 /libgloss/mcore/Makefile.inc | |
parent | e575fe917636fb3240d501556ef7d98a9ab7cd13 (diff) | |
download | newlib-b188e79773c58d91f73152a307ad4da870c63ea3.zip newlib-b188e79773c58d91f73152a307ad4da870c63ea3.tar.gz newlib-b188e79773c58d91f73152a307ad4da870c63ea3.tar.bz2 |
libgloss: merge mcore into top-level Makefile
Avoid a recursive make to speed things up a bit.
A mcore-elf build shows installed objects & libs produce same code.
Diffstat (limited to 'libgloss/mcore/Makefile.inc')
-rw-r--r-- | libgloss/mcore/Makefile.inc | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libgloss/mcore/Makefile.inc b/libgloss/mcore/Makefile.inc new file mode 100644 index 0000000..f0dec19 --- /dev/null +++ b/libgloss/mcore/Makefile.inc @@ -0,0 +1,52 @@ +if MCORE_BUILD_ELF +multilibtool_DATA += \ + %D%/cmb.ld \ + %D%/cmb.specs +%D%/cmb.ld: %D%/elf-cmb.ld + $(AM_V_GEN)cp $< $@ +%D%/cmb.specs: %D%/elf-cmb.specs + $(AM_V_GEN)cp $< $@ +endif +if MCORE_BUILD_PE +multilibtool_DATA += \ + %D%/cmb.ld \ + %D%/cmb.specs +%D%/cmb.ld: %D%/pe-cmb.ld + $(AM_V_GEN)cp $< $@ +%D%/cmb.specs: %D%/pe-cmb.specs + $(AM_V_GEN)cp $< $@ +endif + +multilibtool_DATA += %D%/crt0.o +libobjs_a_SOURCES += %D%/crt0.S + +%C%_common_lib_sources = \ + %D%/fstat.c \ + %D%/getpid.c \ + isatty.c \ + %D%/kill.c \ + %D%/raise.c \ + %D%/putnum.c \ + %D%/stat.c \ + %D%/unlink.c + +## Here is all of the simulator stuff +multilibtool_LIBRARIES += %D%/libsim.a +%C%_libsim_a_SOURCES = \ + %D%/syscalls.S \ + $(%C%_common_lib_sources) + +## Here is all of the picobug on cmb stuff +multilibtool_LIBRARIES += %D%/libcmb.a +%C%_libcmb_a_SOURCES = \ + %D%/open.c \ + %D%/close.c \ + %D%/lseek.c \ + %D%/sbrk.c \ + %D%/read.c \ + %D%/write.c \ + %D%/print.c \ + %D%/cmb-exit.c \ + %D%/cmb-inbyte.c \ + %D%/cmb-outbyte.c \ + $(%C%_common_lib_sources) |