]> git.zerfleddert.de Git - rsbs2/blame - bmc/Makefile
first bits for AVR BMC firmware
[rsbs2] / bmc / Makefile
CommitLineData
d7bda89e
MG
1CC=avr-gcc
2CFLAGS=-mmcu=atmega16 -g
3OBJCOPY=avr-objcopy
4PROG=dragon_jtag
5PORT=usb
6PMCU=m16
7
8all: bmc.bin
9
10bmc: bmc.o
11
12bmc.bin: bmc
13 $(OBJCOPY) -j .text -j .data -O binary $^ $@
14
15flash: bmc.bin
16 avrdude -v -c $(PROG) -P $(PORT) -p $(PMCU) -U flash:w:$^
17
18debug: bmc bmc.bin
19 setsid avarice -g -D :4242
20 -avr-gdb -ex 'target remote localhost:4242' bmc
21 -pkill avarice
22
23clean:
24 -rm -f *.o bmc bmc.bin
25
26.PHONY: all clean flash debug
Impressum, Datenschutz