]> git.zerfleddert.de Git - rsbs2/blobdiff - bmc/Makefile
working i2c connection to RSBS2-card
[rsbs2] / bmc / Makefile
index 8adc53d1798a225998a649843f8b6553425e53d0..6f8b4ddde473b69e4c5df6007560a559b39dcb10 100644 (file)
@@ -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
 
Impressum, Datenschutz