]> cvs.zerfleddert.de Git - rsbs2/blame - bmc/Makefile
beginning i2c
[rsbs2] / bmc / Makefile
CommitLineData
d7bda89e 1CC=avr-gcc
d6f38d0d 2CFLAGS=-mmcu=atmega16 -DF_CPU=8000000UL -Wall -g
d7bda89e
MG
3OBJCOPY=avr-objcopy
4PROG=dragon_jtag
5PORT=usb
6PMCU=m16
7
8all: bmc.bin
9
99e4226b 10bmc: bmc.o usart.o i2c.o
d7bda89e
MG
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
d7bda89e
MG
21
22clean:
23 -rm -f *.o bmc bmc.bin
24
25.PHONY: all clean flash debug
Impressum, Datenschutz