1 # Copyright (C) 2013 Czech Technical University in Prague
4 # - Carlos Jenkins <carlos@jenkins.co.cr>
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.
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.
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/>.
19 # File : rpp_srmain.tlc
25 ##########################
27 ##########################
29 #include $(START_DIR)/slprj/arduino_prefs.mk
31 #LOCAL_AVR_TOOLS_PATH = $(ARDUINO_ROOT)/hardware/tools/avr/bin/
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)
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)
46 ## Specify the output extension from compiler
50 #CXX = $(LOCAL_AVR_TOOLS_PATH)/avr-g++
51 #CXXFLAGS = $(LOCAL_MCU_OPT) -I. $(LOCAL_CXXDEFS) $(LOCAL_OPT)
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
57 ## Specify extension from linker
59 #PROGRAM_FILE_EXT = .elf
61 ## Archiver command and options
62 #AR = $(LOCAL_AVR_TOOLS_PATH)/avr-ar
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
70 ## Specify extension for final product at end of build
71 #EXE_FILE_EXT = $(BINARY_FILE_EXT)
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))