]> git.zerfleddert.de Git - rsbs2/blobdiff - bmc/Makefile
decrease CPU frequency from 8 to 1MHz
[rsbs2] / bmc / Makefile
index 2e566d010a9bc26de5b40e399168471b0376c75c..6f27e42936c7c4398b6468be61d8ce465e1d88da 100644 (file)
@@ -1,13 +1,19 @@
-CC=avr-gcc
-CFLAGS=-mmcu=atmega16 -g
-OBJCOPY=avr-objcopy
 PROG=dragon_jtag
 PORT=usb
 PMCU=m16
+GCCMCU=atmega16
+#Fuses for 1MHz:
+#avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m
+
+CPUFLAG=-mmcu=$(GCCMCU)
+CC=avr-gcc
+CFLAGS=$(CPUFLAG) -DF_CPU=1000000UL -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 $^ $@
Impressum, Datenschutz