z80: Fix z80sim build system

This commit is contained in:
Alan C. Assis 2022-01-14 18:22:11 -03:00 committed by Xiang Xiao
parent 3544fc1fd6
commit dfd972a534
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,9 @@
# Tools
# CFLAGS, CPPFLAGS, ASFLAGS, LDFLAGS are set in $(TOPDIR)/Make.defs
ARCH_SRCDIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src
CFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)chip}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)common}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched}

View File

@ -348,6 +348,10 @@ int main(int argc, char **argv, char **envp)
wintool = true;
#endif
}
else if (compiler == COMPILER_SDCC)
{
cmdarg = "-I";
}
else
{
cmdarg = (pathtype == SYSTEM_PATH) ? "-isystem" : "-I";