################################################################################
# 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 duinos/avr/cores/duinos/DuinOS/subdir.mk
-include duinos/avr/cores/duinos/subdir.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 += \
Arduino-IDE_1.5.x-Hardware-duinos-core-avr.lss \

FLASH_IMAGE += \
Arduino-IDE_1.5.x-Hardware-duinos-core-avr.hex \

EEPROM_IMAGE += \
Arduino-IDE_1.5.x-Hardware-duinos-core-avr.eep \

SIZEDUMMY += \
sizedummy \

AVRDUDEDUMMY += \
avrdudedummy \


# All Target
all: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf secondary-outputs

# Tool invocations
Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: AVR C++ Linker'
	avr-g++ -Wl,-Map,Arduino-IDE_1.5.x-Hardware-duinos-core-avr.map,--cref -mmcu=atmega2560 -o "Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

Arduino-IDE_1.5.x-Hardware-duinos-core-avr.lss: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Invoking: AVR Create Extended Listing'
	-avr-objdump -h -S Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf  >"Arduino-IDE_1.5.x-Hardware-duinos-core-avr.lss"
	@echo 'Finished building: $@'
	@echo ' '

Arduino-IDE_1.5.x-Hardware-duinos-core-avr.hex: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Create Flash image (ihex format)'
	-avr-objcopy -R .eeprom -O ihex Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf  "Arduino-IDE_1.5.x-Hardware-duinos-core-avr.hex"
	@echo 'Finished building: $@'
	@echo ' '

Arduino-IDE_1.5.x-Hardware-duinos-core-avr.eep: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Create eeprom image (ihex format)'
	-avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf  "Arduino-IDE_1.5.x-Hardware-duinos-core-avr.eep"
	@echo 'Finished building: $@'
	@echo ' '

sizedummy: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Invoking: Print Size'
	-avr-size --format=avr --mcu=atmega2560 Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Finished building: $@'
	@echo ' '

avrdudedummy: Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	@echo 'Invoking: AVRDude'
	/usr/local/CrossPack-AVR-20100115/bin/avrdude -pm2560 -Uflash:w:Arduino-IDE_1.5.x-Hardware-duinos-core-avr.hex:a
	@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)$(AVRDUDEDUMMY)$(CPP_DEPS)$(C_UPPER_DEPS)$(SIZEDUMMY) Arduino-IDE_1.5.x-Hardware-duinos-core-avr.elf
	-@echo ' '

secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY) $(AVRDUDEDUMMY)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
