2007-12-29 02:05:26 +01:00
|
|
|
############################################################################
|
|
|
|
# arch/z80/src/Makefile
|
|
|
|
#
|
2021-03-13 11:24:50 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2007-12-29 02:05:26 +01:00
|
|
|
#
|
2021-03-13 11:24:50 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-12-29 02:05:26 +01:00
|
|
|
#
|
2021-03-13 11:24:50 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2007-12-29 02:05:26 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Makefile fragments
|
|
|
|
|
2024-02-28 08:29:35 +01:00
|
|
|
include $(TOPDIR)/tools/apps-or-nuttx-Make.defs
|
2021-07-21 18:48:05 +02:00
|
|
|
include chip/Make.defs
|
2007-12-29 02:05:26 +01:00
|
|
|
|
2021-04-26 11:04:14 +02:00
|
|
|
# Compiler-Dependent Make: SDCC, Clang, or ZiLOG ZDS-II
|
2012-12-05 16:01:11 +01:00
|
|
|
|
|
|
|
COMPILER = ${shell basename "$(CC)"}
|
2021-04-26 11:04:14 +02:00
|
|
|
ifeq ($(patsubst %-clang,clang,$(COMPILER)),clang)
|
|
|
|
|
|
|
|
include Makefile.clang
|
|
|
|
|
|
|
|
else ifeq ($(COMPILER),sdcc)
|
2012-12-05 16:01:11 +01:00
|
|
|
|
|
|
|
# Check for SDCC native windows build
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
|
|
|
|
|
|
|
# SDCC Windows native build
|
|
|
|
|
|
|
|
include Makefile.sdccw
|
|
|
|
else
|
|
|
|
|
2018-06-01 21:25:50 +02:00
|
|
|
# SDCC in a POSIX environment (Linux, macOS, or Cygwin/MSYS)
|
2012-12-05 16:01:11 +01:00
|
|
|
|
|
|
|
include Makefile.sdccl
|
|
|
|
endif
|
2007-12-31 20:05:45 +01:00
|
|
|
else
|
2012-12-05 16:01:11 +01:00
|
|
|
|
|
|
|
# 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
|
2007-12-31 20:05:45 +01:00
|
|
|
endif
|