# Copyright (C) 2013 Czech Technical University in Prague # # Authors: # - Carlos Jenkins # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # File : target_tools.mk # Abstract: # Makefile for CCS toolchain support. # # References: # "Include a tool specification settings" comment block in rpp.tmf # Compiler options documentation available in armcl.pdf include $(START_DIR)/slprj/target_paths.mk # Options for target source files TARGET_INCS = TARGET_SRCS = # Compiler command and options CC = "$(COMPILER_ROOT)/bin/armcl" CFLAGS = -mv7R4 --code_state=32 --float_support=VFPv3D16 \ --abi=eabi --compile_only -O2 \ --diag_warning=225 --display_error_number --enum_type=packed \ --include_path="$(COMPILER_ROOT)/include" \ --include_path="$(RPP_LIB_ROOT)/os/include" \ --include_path="$(RPP_LIB_ROOT)/tmp" # FIXME: Remove tmp library when library is ordered 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" --be32 --stack_size=$(RPP_STACK_SIZE) \ --reread_libs --warn_sections --display_error_number --rom_model \ -i"$(COMPILER_ROOT)/lib" -i"$(COMPILER_ROOT)/include" \ --library=rtsv7R4_T_be_v3D16_eabi.lib \ "$(RPP_LIB_ROOT)/TMS570LS313xFlashLnk.cmd" LDDEBUG = -g LDOUTPUTFLAG = --output_file= # Archiver command and options AR = "$(COMPILER_ROOT)/bin/armar" ARFLAGS = -r # Binary file format converter command and options OBJCOPY = cp 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