63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
##############################################################################
|
|
# boards/renesas/rx65n/rx65n-rsk2mb/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
|
|
|
|
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)linker_script.ld
|
|
|
|
CROSSDEV = rx-elf-
|
|
CC = $(CROSSDEV)gcc
|
|
CXX = $(CROSSDEV)g++
|
|
CPP = $(CROSSDEV)gcc -E -P -x c
|
|
LD = $(CROSSDEV)ld
|
|
STRIP = $(CROSSDEV)strip --strip-unneeded
|
|
AR = $(CROSSDEV)ar rcs
|
|
AS = $(CROSSDEV)as
|
|
NM = $(CROSSDEV)nm
|
|
OBJCOPY = $(CROSSDEV)objcopy
|
|
OBJDUMP = $(CROSSDEV)objdump
|
|
|
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
ARCHOPTIMIZATION = -g
|
|
endif
|
|
|
|
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
ARCHOPTIMIZATION += -Os -fno-strict-aliasing -fomit-frame-pointer
|
|
endif
|
|
|
|
ARCHPICFLAGS = -fpic
|
|
ARCHCFLAGS = -fno-common -std=c99
|
|
ARCHCPUFLAGS = -mcpu=rx64m
|
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
|
|
CFLAGS := $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
|
|
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
|
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) $(ARCHWARNINGSXX)
|
|
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
|
|
|
LDMODULEFLAGS = -r -e module_initialize
|
|
LDMODULEFLAGS += -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/modlib/gnu-elf.ld)
|
|
|
|
CMODULEFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
|
|
|
|
ASMEXT = .asm
|