avrdude: remove renaming of ATmega1281 to 128 for old avrdude versions
[aversive.git] / mk / aversive_project.mk
index cf9c938..f0f6eb9 100644 (file)
@@ -69,7 +69,8 @@ ifeq ($(HOST),avr)
 #    -ahlms:  create assembler listing
 ALL_CFLAGS += -Wa,-adhlns=$(addprefix compiler_files/,$(<:.c=.$(HOST).lst))
 else
-ALL_CFLAGS +=
+ALL_CFLAGS += $(PTHREAD_CFLAGS)
+
 endif
 
 
@@ -101,18 +102,13 @@ ifeq ($(HOST),avr)
 LDFLAGS += -mmcu=$(MCU) $(PRINTF_LDFLAGS)
 LDFLAGS += -Wl,-Map=$(addprefix compiler_files/,$(TARGET).map),--cref
 else
-LDFLAGS += 
+LDFLAGS += $(PTHREAD_LDFLAGS)
 endif
 
 LDFLAGS += $(MATH_LIB)
 
 
-# AVRDUDE does not know the ATMEGA1281 for now, consider it a 128.
-ifeq ($(MCU),atmega1281)
-AVRDUDE_MCU = atmega128
-else
 AVRDUDE_MCU = $(MCU)
-endif
 
 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).$(FORMAT_EXTENSION)
 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep