[go: up one dir, main page]

Menu

[fbba9c]: / common.mk  Maximize  Restore  History

Download this file

49 lines (42 with data), 1.9 kB

 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
# Common Flags
AM_CFLAGS = -Wno-variadic-macros -Wall --pedantic -fno-exceptions -Wl,--gc-sections \
-ffunction-sections -Os -funsigned-char -funsigned-bitfields -fshort-enums -Weffc++ -DOOOARK_ASSERT
AM_CXXFLAGS = $(AM_CFLAGS)
ARDUINO_CFLAGS = -Wno-variadic-macros -Wall --pedantic -fno-exceptions -Wl,--gc-sections \
-ffunction-sections -Os -funsigned-char -funsigned-bitfields -fshort-enums -DOOOARK_ASSERT
ARDUINO_CXXFLAGS = $(ARDUINO_CFLAGS)
AM_ASMFLAGS = -x assembler-with-cpp -Wa,-gdwarf2
AM_LDFLAGS = -Wl
AM_LIBS=-lm -lc -lm
AM_LIBTOOLFLAGS=--preserve-dup-deps
# Custom Common Flags
CPPFLAGS_common = -I /usr/lib/avr/include -I $(top_srcdir)/oooarkavr/arduino/cores -I $(top_srcdir) \
-I $(top_srcdir)/oooarkavr/arduino/ \
-I $(top_srcdir)/oooarkavr/arduino/cores \
-I $(top_srcdir)/oooarkavr/arduino/libraries \
-I $(top_srcdir)/oooarkavr/arduino/libraries/SoftwareSerial \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Matrix \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Firmata \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Stepper \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Sprite \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Servo \
-I $(top_srcdir)/oooarkavr/arduino/libraries/LiquidCrystal \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Wire \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Wire/utility \
-I $(top_srcdir)/oooarkavr/arduino/libraries/EEPROM \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Ethernet \
-I $(top_srcdir)/oooarkavr/arduino/libraries/Ethernet/utility
LDADD_common = -lm -lc -lm
# Arduino Boards
MCU_1280x16 = -mmcu=atmega1280 -DF_CPU=16000000L
MCU_328Px8 = -mmcu=atmega328p -DF_CPU=8000000L
MCU_328Px16 = -mmcu=atmega328p -DF_CPU=16000000L
MCU_168x16 = -mmcu=atmega168 -DF_CPU=16000000L
# Upload
upload: all $(TARGET).hex
$(top_srcdir)/upload.sh $(top_srcdir)/avrdude.conf
gnome-terminal -x kermit
SUFFIXES: .elf.hex
# Creating Hex
.elf.hex:
avr-objcopy -O ihex -R .eeprom $< $@