-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (48 loc) · 1.92 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PROJECT_DIR = $(CURDIR)
USER_LIB_PATH := $(PROJECT_DIR)/lib
# ARDUINO_LIBS += I2Cdev NewPing Servo mpu SFE_BMP180 freeram PID EEPROM Adafruit_NeoPixel
ARDUINO_LIBS += I2Cdev NewPing mpu SFE_BMP180 freeram PID EEPROM Servo
ARCHITECTURE = avr
BOARD_TAG = nano
BOARD_SUB = atmega328
MCU = atmega328p
# RESET_CMD=python controler/remoteReset.py
MONITOR_BAUDRATE = 57600
AVRDUDE_ARD_BAUDRATE = 57600
# MONITOR_PORT = /dev/ttyUSB?
MONITOR_PORT = /dev/rfcomm0
#-Wl,-u,vfscanf -lscanf_flt -lm
# CXXFLAGS += -D MPU6500 -Wl,-u,vfscanf -lscanf_flt -lm
CXXFLAGS += -D MPU9150 -Os
ARDUINO_QUIET=1
#########################################################
## Reszty nie ruszać
# AVR_TOOLS_DIR = /usr
# AVRDDUDE = /usr/bin/avrdude
# ARDUINO_DIR = /opt/arduino-1.5.7
ARDUINO_DIR = /opt/arduino-1.6.5
AVR_TOOLS_DIR = /opt/arduino-1.6.5/hardware/tools/avr
AVRDUDE = /opt/arduino-1.6.5/hardware/tools/avr/bin/avrdude
AVRDUDE_CONF = /opt/arduino-1.6.5/hardware/tools/avr/etc/avrdude.conf
ARDMK_DIR = /opt/Arduino-Makefile
#########################################################
## A tego to już w szczególności
### CFLAGS_STD
### Set the C standard to be used during compilation.
### Documentation (https://github.com/WeAreLeka/Arduino-Makefile/blob/std-flags/arduino-mk-vars.md#cflags_std)
CFLAGS_STD = -std=gnu11
### CXXFLAGS_STD
### Set the C++ standard to be used during compilation.
### Documentation (https://github.com/WeAreLeka/Arduino-Makefile/blob/std-flags/arduino-mk-vars.md#cxxflags_std)
CXXFLAGS_STD = -std=gnu++11
### CXXFLAGS
### Flags you might want to set for debugging purpose. Comment to stop.
#CXXFLAGS += -pedantic -Wall -Wextra
### CURRENT_DIR
### Do not touch - used for binaries path
CURRENT_DIR = $(shell basename $(CURDIR))
### OBJDIR
### This is were you put the binaries you just compile using 'make'
OBJDIR = $(PROJECT_DIR)/bin/$(BOARD_TAG)/$(CURRENT_DIR)
### path to Arduino.mk, inside the ARDMK_DIR, don't touch.
include $(ARDMK_DIR)/Arduino.mk