# Copyright (C) 2013-2014 Czech Technical University in Prague # # Authors: # - Carlos Jenkins # # This document contains proprietary information belonging to Czech # Technical University in Prague. Passing on and copying of this # document, and communication of its contents is not permitted # without prior written authorization. # # File : target_tools.mk # Abstract: # Makefile for CCS toolchain support. # # This file set variables to CCS tools to support build for this toolchain. # This file is included by rpp.tmf before declaring the rules for source # code. # # References: # "Include a tool specification settings" comment block in rpp.tmf # Compiler options documentation available in refs/armcl.pdf include $(START_DIR)/slprj/target_paths.mk include $(RPP_LIB_ROOT)/Makefile.config # RPP options RPP_STATIC_LIB = rpp-lib.lib RPP_OS_LAYER_INC = $(RPP_LIB_ROOT)/os/7.0.2/include/ # Options for target source files TARGET_INCS = TARGET_SRCS = # Compiler command and options CC = "$(COMPILER_ROOT)/bin/armcl" CFLAGS = $(TARGET_CFLAGS) \ -mv7R4 --code_state=32 --float_support=VFPv3D16 \ --abi=eabi --compile_only -O2 --gcc --diag_wrap=on \ --diag_warning=225 --display_error_number \ --enum_type=packed --gen_func_subsections \ -DEXTMODE_DISABLEPRINTF \ --include_path="$(RPP_LIB_ROOT)/rpp/include" \ --include_path="$(RPP_LIB_ROOT)/lwip/src/include" \ --include_path="$(RPP_LIB_ROOT)/lwip/src/include/ipv4" \ --include_path="$(RPP_LIB_ROOT)/lwip/src/include/ipv6" \ --include_path="$(RPP_OS_LAYER_INC)" \ --include_path="$(COMPILER_ROOT)/include" # Define when external mode should wait for host connection # CFLAGS += -DON_TARGET_WAIT_FOR_START CFLAGS += $(EXT_CC_OPTS) CFLAGS += $(OPTS) CDEBUG = -g CCOUTPUTFLAG = --output_file= CXX = CXXFLAGS = CXXDEBUG = # Linker command and options LD = $(CC) LDFLAGS = -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi \ -O2 --diag_warning=225 --display_error_number \ --enum_type=packed --run_linker -m"$(MODEL).map" \ --diag_wrap=on --stack_size=$(RPP_STACK_SIZE) \ --heap_size=$(RPP_HEAP_SIZE) --reread_libs --warn_sections \ --display_error_number --rom_model \ --search_path="$(RPP_LIB_ROOT)" \ --library="$(RPP_STATIC_LIB)" \ --retain="$(RPP_STATIC_LIB)(.intvecs)" \ --search_path="$(COMPILER_ROOT)/lib" \ --library="rtsv7R4_T_le_v3D16_eabi.lib" \ "$(RPP_LIB_ROOT)/rpp/RM48L952FlashLnk.cmd" \ --generate_dead_funcs_list=$(MODEL)-deadfuncs.xml LDDEBUG = -g LDOUTPUTFLAG = --output_file= # Archiver command and options AR = "$(COMPILER_ROOT)/bin/armar" ARFLAGS = -r # Binary file format converter command and options ifeq ($(OS),Windows_NT) OBJCOPY = copy else OBJCOPY = cp endif OBJCOPYFLAGS = # Specify the output extension from compiler OBJ_EXT = .obj # Specify extension from linker PROGRAM_FILE_EXT = .o # Specify extension for final product at end of build EXE_FILE_EXT = .out