]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/target_tools.mk
Removing stupid Windows line endings on a couple of files.
[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 : rpp_srmain.tlc
20 # Abstract:
21 #       ?????
22 #       Reference: ???
23
24
25 ##########################
26 # TODO: Adapt file
27 ##########################
28
29 #include $(START_DIR)/slprj/arduino_prefs.mk
30
31 #LOCAL_AVR_TOOLS_PATH = $(ARDUINO_ROOT)/hardware/tools/avr/bin/
32
33 #LOCAL_OPT = -Os
34 #LOCAL_CDEFS = -DF_CPU=$(F_CPU)
35 #LOCAL_CXXDEFS = -DF_CPU=$(F_CPU)
36 #LOCAL_CSTANDARD = -std=gnu99
37 #LOCAL_CWARN = -Wall -Wstrict-prototypes
38 #LOCAL_MCU_OPT = -mmcu=$(MCU)
39 #CDEBUG = -gstabs
40
41 ## Compiler command and options
42 #CC                  = $(LOCAL_AVR_TOOLS_PATH)/avr-gcc
43 #CFLAGS = $(LOCAL_MCU_OPT) -I. $(LOCAL_CDEFS)
44 #CFLAGS += $(LOCAL_OPT) $(LOCAL_CWARN) $(LOCAL_CSTANDARD)
45
46 ## Specify the output extension from compiler
47 #CCOUTPUTFLAG        = -o
48 #OBJ_EXT             = .o
49
50 #CXX                 = $(LOCAL_AVR_TOOLS_PATH)/avr-g++
51 #CXXFLAGS            = $(LOCAL_MCU_OPT) -I. $(LOCAL_CXXDEFS) $(LOCAL_OPT)
52
53 ## Linker command and options
54 #LD                  = $(LOCAL_AVR_TOOLS_PATH)/avr-gcc
55 #LDFLAGS = $(LOCAL_MCU_OPT) $(LOCAL_CDEFS) $(LOCAL_OPT) $(LOCAL_CWARN) $(LOCAL_CSTANDARD) -lm -Wl,-Map,mapFile.map,--cref
56
57 ## Specify extension from linker
58 #LDOUTPUTFLAG        = -o
59 #PROGRAM_FILE_EXT    = .elf
60
61 ## Archiver command and options
62 #AR                  = $(LOCAL_AVR_TOOLS_PATH)/avr-ar
63 #ARFLAGS             = rcs
64
65 ## Binary file format converter command and options
66 #OBJCOPY             = $(LOCAL_AVR_TOOLS_PATH)/avr-objcopy
67 #OBJCOPYFLAGS        = -O ihex -R .eeprom
68 #BINARY_FILE_EXT     = .hex
69
70 ## Specify extension for final product at end of build
71 #EXE_FILE_EXT = $(BINARY_FILE_EXT)
72
73 #TARGET_INC_DIR      = $(ARDUINO_ROOT)/hardware/arduino/cores/arduino
74 #TARGET_INCS         = -I$(TARGET_INC_DIR)
75 #TARGET_SRC_DIR      = $(ARDUINO_ROOT)/hardware/arduino/cores/arduino
76 #LOCAL_ARDUINO_SRCS  = $(notdir $(wildcard $(TARGET_SRC_DIR)/*.cpp)) $(notdir $(wildcard $(TARGET_SRC_DIR)/*.c))
77 #TARGET_SRCS         = $(filter-out main.cpp,$(LOCAL_ARDUINO_SRCS))
78