Z80: Makefile fix for use with curre SDCC

This commit is contained in:
Gregory Nutt 2017-10-11 07:00:24 -06:00
parent 41f3a2adfe
commit 2f1894f2b4
2 changed files with 40 additions and 8 deletions

View File

@ -91,31 +91,47 @@ $(COBJS): %$(OBJEXT): %.c
$(TOPDIR)/lib/$(SDCCLIB): $(SDCC_LIBDIR)/$(SDCCLIB)
$(Q) cp $(SDCC_LIBDIR)/$(SDCCLIB) $(TOPDIR)/lib/$(SDCCLIB)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _calloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _malloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _realloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _free.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) calloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) malloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) realloc.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) free.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) printf_large.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) sprintf.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) vprintf.rel
ifneq ($(CONFIG_LIBC_ARCH_STRCPY),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) strcpy.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_STRLEN),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) strlen.rel
endif
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strcat.rel
ifneq ($(CONFIG_LIBC_ARCH_STRCHR),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strchr.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_STRCMP),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strcmp.rel
endif
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strcspn.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strncat.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strncmp.rel
ifneq ($(CONFIG_LIBC_ARCH_STRNCPY),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strncpy.rel
endif
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strpbrk.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strrchr.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strspn.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strstr.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _strtok.rel
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _memchr.rel
ifneq ($(CONFIG_LIBC_ARCH_MEMCMP),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _memcmp.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_MEMCPY),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _memcpy.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_MEMSET),y)
$(Q) sdar d $(TOPDIR)/lib/$(SDCCLIB) _memset.rel
endif
# Create a header file that contains addressing information needed by the
# assemlby language start-up code. Locate the IDLE thread stack at the

View File

@ -91,31 +91,47 @@ $(COBJS): %$(OBJEXT): %.c
$(TOPDIR)\lib\$(SDCCLIB): $(SDCC_LIBDIR)\$(SDCCLIB)
$(Q) cp $(SDCC_LIBDIR)\$(SDCCLIB) $(TOPDIR)\lib\$(SDCCLIB)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _calloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _malloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _realloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _free.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) calloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) malloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) realloc.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) free.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) printf_large.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) sprintf.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) vprintf.rel
ifneq ($(CONFIG_LIBC_ARCH_STRCPY),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) strcpy.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_STRLEN),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) strlen.rel
endif
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strcat.rel
ifneq ($(CONFIG_LIBC_ARCH_STRCHR),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strchr.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_STRCMP),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strcmp.rel
endif
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strcspn.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strncat.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strncmp.rel
ifneq ($(CONFIG_LIBC_ARCH_STRNCPY),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strncpy.rel
endif
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strpbrk.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strrchr.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strspn.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strstr.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _strtok.rel
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _memchr.rel
ifneq ($(CONFIG_LIBC_ARCH_MEMCMP),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _memcmp.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_MEMCPY),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _memcpy.rel
endif
ifneq ($(CONFIG_LIBC_ARCH_MEMSET),y)
$(Q) sdar d $(TOPDIR)\lib\$(SDCCLIB) _memset.rel
endif
# Create a header file that contains addressing information needed by the
# assemlby language start-up code. Locate the IDLE thread stack at the