]> git.zerfleddert.de Git - rsbs2/blame_incremental - bmc/Makefile
don't kill avarice before the jtag device is returned to normal state
[rsbs2] / bmc / Makefile
... / ...
CommitLineData
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
22clean:
23 -rm -f *.o bmc bmc.bin
24
25.PHONY: all clean flash debug
Impressum, Datenschutz