317a8a8942
Verfy build. Update to latest 2.2.2 toolchain.
103 lines
3.8 KiB
Plaintext
103 lines
3.8 KiB
Plaintext
############################################################################
|
|
# boards/z16/z16f/z16f2800100zcog/scripts/Make.defs
|
|
#
|
|
# 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# 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.
|
|
#
|
|
############################################################################
|
|
|
|
include $(TOPDIR)/.config
|
|
include $(TOPDIR)/tools/Config.mk
|
|
include ${TOPDIR}/arch/z16/src/z16f/Toolchain.defs
|
|
include $(TOPDIR)/tools/zds/Config.mk
|
|
|
|
# CFLAGS
|
|
|
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
|
ARCHASMINCLUDES = -include:$(TOPDIR)\include;$(ZDSSTDINCDIR);$(ZDSZILOGINCDIR)
|
|
EARCHASMINCLUDES = -include:$(TOPDIR)\include;$(ZDSSTDINCDIR);$(ZDSZILOGINCDIR)
|
|
ARCHSTDINCLUDES = -stdinc:$(TOPDIR)\include;$(ZDSSTDINCDIR);$(ZDSZILOGINCDIR)
|
|
ARCHUSRINCLUDES = -usrinc:.
|
|
else
|
|
ARCHASMINCLUDES = -include:'$(WTOPDIR)\include;$(WZDSSTDINCDIR);$(WZDSZILOGINCDIR)'
|
|
EARCHASMINCLUDES = -include:'$(ETOPDIR)\include;$(EZDSSTDINCDIR);$(EZDSZILOGINCDIR)'
|
|
ARCHSTDINCLUDES = -stdinc:'$(WTOPDIR)\include;$(WZDSSTDINCDIR);$(WZDSZILOGINCDIR)'
|
|
ARCHUSRINCLUDES = -usrinc:'.'
|
|
endif
|
|
|
|
# Assembler definitions
|
|
|
|
ARCHASMCPUFLAGS = -cpu:Z16F2811AL -NOigcase
|
|
ARCHASMLIST = -NOlistmac -name -pagelen:56 -pagewidth:80 -quiet
|
|
ARCHASMWARNINGS = -warn
|
|
ARCHASMDEFINES = -define:_Z16F2811AL=1 -define:_Z16K_SERIES=1 -define:_Z16F_SERIES=1 -define:__ASSEMBLY__
|
|
AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) $(ARCHASMWARNINGS) $(ARCHASMOPTIMIZATION)
|
|
|
|
# Compiler definitions
|
|
|
|
ARCHCPUFLAGS = -chartype:S -model:L -NOmodsect -cpu:Z16F2811AL -NOgenprint \
|
|
-asmsw:" $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMWARNINGS) $(ARCHASMOPTIMIZATION)"
|
|
ARCHLIST = -keeplst -NOlist -NOlistinc -NOkeepasm
|
|
ARCHPICFLAGS =
|
|
ARCHWARNINGS = -warn
|
|
ARCHDEFINES = -define:_Z16F2811AL -define:_Z16K_SERIES -define:_Z16F_SERIES
|
|
ARCHINCLUDES = $(ARCHSTDINCLUDES) $(ARCHUSRINCLUDES)
|
|
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHLIST) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
|
|
|
CPPDEFINES = -D_Z16F2811AL -D_Z16K_SERIES -D_Z16F_SERIES -D__ASSEMBLY__
|
|
CPPINCLUDES = -I$(TOPDIR)$(DELIM)include
|
|
CPPFLAGS = $(CPPDEFINES) $(CPPINCLUDES)
|
|
|
|
# Librarian definitions
|
|
|
|
ARFLAGS = -quiet -warn
|
|
|
|
# Linker definitions
|
|
|
|
LDSCRIPT = z16f2800100zcog.linkcmd
|
|
LINKCMDTEMPLATE = $(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
|
|
|
# Windows native host tool definitions
|
|
|
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
|
HOSTCC = mingw32-gcc.exe
|
|
HOSTINCLUDES = -I.
|
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
HOSTLDFLAGS =
|
|
HOSTEXEEXT = .exe
|
|
|
|
# Windows-native host tools
|
|
|
|
#MKDEP = $(TOPDIR)\tools\mkdeps.exe --winnative
|
|
MKDEP = $(TOPDIR)$(DELIM)tools$(DELIM)mknulldeps.sh
|
|
else
|
|
|
|
# Linux/Cygwin host tool definitions
|
|
|
|
HOSTCC = gcc
|
|
HOSTINCLUDES = -I.
|
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
HOSTLDFLAGS =
|
|
|
|
# This is the tool to use for dependencies (i.e., none)
|
|
|
|
MKDEP = $(TOPDIR)$(DELIM)tools$(DELIM)mknulldeps.sh
|
|
|
|
# ZDS-II cannot follow Cygwin soft links, so we will have to use directory copies
|
|
|
|
DIRLINK = $(TOPDIR)$(DELIM)tools$(DELIM)copydir.sh
|
|
DIRUNLINK = $(TOPDIR)$(DELIM)tools$(DELIM)unlink.sh
|
|
endif
|