diff options
Diffstat (limited to 'nuttx/arch/z80/src/Makefile')
-rw-r--r-- | nuttx/arch/z80/src/Makefile | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/nuttx/arch/z80/src/Makefile b/nuttx/arch/z80/src/Makefile index 4b02b1f0b..c3e2caea7 100644 --- a/nuttx/arch/z80/src/Makefile +++ b/nuttx/arch/z80/src/Makefile @@ -33,18 +33,43 @@ # ############################################################################ -############################################################################ # Makefile fragments -include $(TOPDIR)/Make.defs -include chip/Make.defs -include board/Make.defs -############################################################################ -# Compiler-Dependent Make -COMPILER = ${shell basename "$(CC)"} +# Compiler-Dependent Make: SDCC or ZiLOG ZDS-II + +COMPILER = ${shell basename "$(CC)"} ifeq ($(COMPILER),sdcc) -include Makefile.sdcc + + # Check for SDCC native windows build + + ifeq ($(CONFIG_WINDOWS_NATIVE),y) + + # SDCC Windows native build + + include Makefile.sdccw + else + + # SDCC in a POSIX environment (Linux, OSX, or Cygwin/MSYS) + + include Makefile.sdccl + endif else -include Makefile.zdsii + + # Check for ZDSII native windows build + + ifeq ($(CONFIG_WINDOWS_NATIVE),y) + + # ZDSII Windows native build + + include Makefile.zdsiiw + else + + # ZDSII in a POSIX environment (Cygwin/MSYS) + + include Makefile.zdsiil + endif endif |