]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/target_tools.mk
Implemented target_tools makefile for CCS. Added setup script for installing.
[pes-rpp/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 #       Reference: ???
23
24
25 include $(START_DIR)/slprj/target_paths.mk
26
27 # Compiler command and options
28 #CC = "$(COMPILER_ROOT)/bin/armcl"
29 CC = echo
30 CFLAGS  = -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi \
31           -O2 --diag_warning=225 --display_error_number --enum_type=packed \
32           --include_path="$(COMPILER_ROOT)/include" \
33           --include_path="$(TARGET_ROOT)/lib"
34
35 CFLAGS          += $(OPTS)
36 CDEBUG           = -g --gcc
37 CCOUTPUTFLAG     = --output_file=
38
39 CXX              =
40 CXXFLAGS         =
41 CXXDEBUG         =
42
43 # Linker command and options
44 LD      = $(CC)
45 LDFLAGS = -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi \
46           -O2 --diag_warning=225 --display_error_number --enum_type=packed \
47           -z -m"$(MODEL).map" \
48           -i"$(COMPILER_ROOT)/lib" -i"$(COMPILER_ROOT)/include" \
49           --reread_libs --warn_sections --display_error_number --rom_model \
50           --be32
51
52 LDDEBUG          = -g --gcc
53 LDOUTPUTFLAG     = --output_file=
54
55 # Archiver command and options
56 AR               = "$(COMPILER_ROOT)/bin/armar"
57 ARFLAGS          = -r
58
59 # Binary file format converter command and options
60 OBJCOPY          =
61 OBJCOPYFLAGS     =
62
63 # Specify the output extension from compiler
64 OBJ_EXT          = .o
65
66 # Specify extension from linker
67 PROGRAM_FILE_EXT = .out
68
69 # Specify extension for final product at end of build
70 EXE_FILE_EXT     = $(PROGRAM_FILE_EXT)
71