X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/99e4226b74acd4286b735b5da275853701dcacf0..20ef0f397c40ec362d25b6349b3e3383e80fc2af:/bmc/Makefile diff --git a/bmc/Makefile b/bmc/Makefile index 8adc53d..6f8b4dd 100644 --- a/bmc/Makefile +++ b/bmc/Makefile @@ -1,9 +1,13 @@ -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