6 CPUFLAG
=-mmcu
=$(GCCMCU
)
8 CFLAGS
=$(CPUFLAG
) -DF_CPU
=8000000UL -Wall
-g
14 bmc
: bmc.o usart.o i2c.o ipmb.o chassis.o
17 $(OBJCOPY
) -j .text
-j .data
-O binary
$^
$@
20 avrdude
-v
-c
$(PROG
) -P
$(PORT
) -p
$(PMCU
) -U flash
:w
:$^
23 setsid avarice
-g
-D
:4242
24 -avr-gdb
-ex
'target remote localhost:4242' bmc
27 -rm -f
*.o bmc bmc.bin
29 .PHONY
: all clean flash debug