root / scout_avr / Makefile @ 88fb3a79
History | View | Annotate | Download (350 Bytes)
1 |
MCU=atmega128rfa1 |
---|---|
2 |
F_CPU=16000000 |
3 |
SRC=src/*.cpp src/ros_lib/*.cpp |
4 |
FLAGS=-Isrc/ros_lib -Isrc -mmcu=$(MCU) -DF_CPU=$(F_CPU)UL -funsigned-char -Os -fpack-struct -Wall |
5 |
|
6 |
all: scout_avr.hex |
7 |
|
8 |
%.hex: %.elf |
9 |
avr-objcopy -j .text -j .data -O ihex $< $@ |
10 |
|
11 |
scout_avr.elf: $(SRC) |
12 |
avr-g++ $(FLAGS) $(SRC) -o scout_avr.elf |
13 |
|
14 |
clean: |
15 |
rm -f scout_avr.elf scout_avr.hex |