Achja, hier mein makefile:
########################################################################
########
# Automatically-generated file. Do not edit!
########################################################################
########
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(S_DEPS)),)
-include $(S_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build
variables
LSS += \
Test.lss \
FLASH_IMAGE += \
Test.hex \
EEPROM_IMAGE += \
Test.eep \
SIZEDUMMY += \
sizedummy \
# All Target
all: Test.elf secondary-outputs
# Tool invocations
Test.elf: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: AVR C++ Linker'
avr-g++ -Wl,-Map,Test.map,--cref -mrelax -Wl,--gc-sections
-mmcu=atmega32 -o "Test.elf" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
Test.lss: Test.elf
@echo 'Invoking: AVR Create Extended Listing'
-avr-objdump -h -S Test.elf >"Test.lss"
@echo 'Finished building: $@'
@echo ' '
Test.hex: Test.elf
@echo 'Create Flash image (ihex format)'
-avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex
Test.elf "Test.hex"
@echo 'Finished building: $@'
@echo ' '
Test.eep: Test.elf
@echo 'Create eeprom image (ihex format)'
-avr-objcopy -j .eeprom --no-change-warnings --change-section-lma
.eeprom=0 -O ihex Test.elf "Test.eep"
@echo 'Finished building: $@'
@echo ' '
sizedummy: Test.elf
@echo 'Invoking: Print Size'
-avr-size --format=avr --mcu=atmega32 Test.elf
@echo 'Finished building: $@'
@echo ' '
# Other Targets
clean:
-$(RM)
$(OBJS)$(C_DEPS)$(EEPROM_IMAGE)$(ELFS)$(FLASH_IMAGE)$(LSS)$(S_DEPS)$(CXX
_DEPS)$(S_UPPER_DEPS)$(C++_DEPS)$(ASM_DEPS)$(CC_DEPS)$(CPP_DEPS)$(C_UPPE
R_DEPS)$(SIZEDUMMY) Test.elf
-@echo ' '
secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY)
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets