X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/d6f38d0dfc4f602a6c790fd470deb2b2fd23da77..e641fce6dede45cea9a98812d06ab6e8f0355c70:/bmc/Makefile?ds=inline diff --git a/bmc/Makefile b/bmc/Makefile index 7915e96..5c1c4a4 100644 --- a/bmc/Makefile +++ b/bmc/Makefile @@ -1,13 +1,17 @@ -CC=avr-gcc -CFLAGS=-mmcu=atmega16 -DF_CPU=8000000UL -Wall -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 usart.o +bmc: bmc.o usart.o i2c.o ipmb.o chassis.o bmc.bin: bmc $(OBJCOPY) -j .text -j .data -O binary $^ $@