Small fix to the python NotifyList. Scraped up some loose files.
[cerebrum.git] / avr / Makefile
blobe99d2e30bb4eaf9995011b9bee7690807a29e476
2 all: objects
5 objects: autocode.c config.c uart.c ../common/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_ADDRESS=${CONFIG_ADDRESS} -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 main.elf main.hex autocode.h config.c