Added random 64-bit MAC addresses for reliable discovery
[cerebrum.git] / avr / Makefile
blob84feb19ca50f1c0663d10b32ab171bf8322acdae
2 all: objects
5 objects: autocode.c config.c uart.c main.c ../common/comm.c
6 avr-gcc -Wall -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -mmcu=${MCU} -DFDEV_SETUP_STREAM -DF_CPU=${CLOCK} -DCEREBRUM_BAUDRATE=${CEREBRUM_BAUDRATE} -DCONFIG_MAC=${CONFIG_MAC} -std=gnu99 -Os -o main.elf -Wl,--gc-sections,--relax -I . -I../common $^
7 avr-objcopy -O ihex main.elf main.hex
8 avr-size main.elf
10 program:
11 ../tools/reset_arduino.py ${PORT}
12 avrdude -V -c ${PROGRAMMER} -P ${PORT} -b ${PROGRAMMER_BAUDRATE} -U flash:w:main.hex -p ${MCU}
14 clean:
15 rm *.elf main.eep main.lss main.map main.sym main.hex autocode.c config.c *.lst *.o