]> git.zerfleddert.de Git - rsbs2/blobdiff - bmc/Makefile
start implementing power/reset handling as needed on PCs
[rsbs2] / bmc / Makefile
index 85ecb0ba0074966dec734f1ceae7d90a18638c70..5c1c4a49312b2a2ee6d7912ed504c540507d9835 100644 (file)
@@ -1,13 +1,17 @@
-CC=avr-gcc
-CFLAGS=-mmcu=atmega16 -g
-OBJCOPY=avr-objcopy
 PROG=dragon_jtag
 PORT=usb
 PMCU=m16
+GCCMCU=atmega16
+
+CPUFLAG=-mmcu=$(GCCMCU)
+CC=avr-gcc
+CFLAGS=$(CPUFLAG) -DF_CPU=8000000UL -Wall -g
+LDFLAGS=$(CPUFLAG)
+OBJCOPY=avr-objcopy
 
 all: bmc.bin
 
-bmc: bmc.o
+bmc: bmc.o usart.o i2c.o ipmb.o chassis.o
 
 bmc.bin: bmc
        $(OBJCOPY) -j .text -j .data -O binary $^ $@
@@ -18,7 +22,6 @@ flash: bmc.bin
 debug: bmc bmc.bin
        setsid avarice -g -D :4242
        -avr-gdb -ex 'target remote localhost:4242' bmc
-       -pkill avarice
 
 clean:
        -rm -f *.o bmc bmc.bin
Impressum, Datenschutz