]> git.zerfleddert.de Git - rsbs2/blame_incremental - bmc/Makefile
I2C master mode implemented and more decoding
[rsbs2] / bmc / Makefile
... / ...
CommitLineData
1PROG=dragon_jtag
2PORT=usb
3PMCU=m16
4GCCMCU=atmega16
5
6CPUFLAG=-mmcu=$(GCCMCU)
7CC=avr-gcc
8CFLAGS=$(CPUFLAG) -DF_CPU=8000000UL -Wall -g
9LDFLAGS=$(CPUFLAG)
10OBJCOPY=avr-objcopy
11
12all: bmc.bin
13
14bmc: bmc.o usart.o i2c.o ipmb.o
15
16bmc.bin: bmc
17 $(OBJCOPY) -j .text -j .data -O binary $^ $@
18
19flash: bmc.bin
20 avrdude -v -c $(PROG) -P $(PORT) -p $(PMCU) -U flash:w:$^
21
22debug: bmc bmc.bin
23 setsid avarice -g -D :4242
24 -avr-gdb -ex 'target remote localhost:4242' bmc
25
26clean:
27 -rm -f *.o bmc bmc.bin
28
29.PHONY: all clean flash debug
Impressum, Datenschutz