]> git.zerfleddert.de Git - rsbs2/blobdiff - bmc/Makefile
I2C master mode implemented and more decoding
[rsbs2] / bmc / Makefile
index 2e566d010a9bc26de5b40e399168471b0376c75c..d9ad589182cf17e150276c61f7640b3c3cd89cc8 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
 
 bmc.bin: bmc
        $(OBJCOPY) -j .text -j .data -O binary $^ $@
Impressum, Datenschutz