]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blob - rpp/rpp/target_tools.mk
Fixed library search path. Added --gcc as required by the DRV library.
[jenkicar/rpp-simulink.git] / rpp / rpp / target_tools.mk
1 # Copyright (C) 2013 Czech Technical University in Prague
2 #
3 # Authors:
4 #     - Carlos Jenkins <carlos@jenkins.co.cr>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19 # File : target_tools.mk
20 # Abstract:
21 #     Makefile for CCS toolchain support.
22 #
23 # References:
24 #     "Include a tool specification settings" comment block in rpp.tmf
25 #      Compiler options documentation available in armcl.pdf
26
27
28 include $(START_DIR)/slprj/target_paths.mk
29
30 # Options for target source files
31 TARGET_INCS      =
32 TARGET_SRCS      =
33
34 # Compiler command and options
35 CC      = "$(COMPILER_ROOT)/bin/armcl"
36 CFLAGS  = -mv7R4 --code_state=32 --float_support=VFPv3D16 \
37           --abi=eabi --compile_only -O2 --gcc --diag_wrap=on \
38           --diag_warning=225 --display_error_number --enum_type=packed \
39           --include_path="$(COMPILER_ROOT)/include" \
40           --include_path="$(RPP_LIB_ROOT)/os/include" \
41           --include_path="$(RPP_LIB_ROOT)/drv/include"
42
43 CFLAGS          += $(OPTS)
44 CDEBUG           = -g
45 CCOUTPUTFLAG     = --output_file=
46
47 CXX              =
48 CXXFLAGS         =
49 CXXDEBUG         =
50
51 # Linker command and options
52 LD      = $(CC)
53 LDFLAGS = -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi \
54           -O2 --diag_warning=225 --display_error_number --enum_type=packed \
55           --run_linker -m"$(MODEL).map" --be32 --diag_wrap=on \
56           --stack_size=$(RPP_STACK_SIZE) --heap_size=$(RPP_HEAP_SIZE) \
57           --reread_libs --warn_sections --display_error_number --rom_model \
58           -i"$(COMPILER_ROOT)/lib" -i"$(COMPILER_ROOT)/include" \
59           --library=rtsv7R4_T_be_v3D16_eabi.lib \
60           "$(RPP_LIB_ROOT)/TMS570LS313xFlashLnk.cmd"
61
62 LDDEBUG          = -g
63 LDOUTPUTFLAG     = --output_file=
64
65 # Archiver command and options
66 AR               = "$(COMPILER_ROOT)/bin/armar"
67 ARFLAGS          = -r
68
69 # Binary file format converter command and options
70 OBJCOPY          = cp
71 OBJCOPYFLAGS     =
72
73 # Specify the output extension from compiler
74 OBJ_EXT          = .obj
75
76 # Specify extension from linker
77 PROGRAM_FILE_EXT = .o
78
79 # Specify extension for final product at end of build
80 EXE_FILE_EXT     = .out
81