################################################################################
# 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 $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(S_DEPS)),)
-include $(S_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
LSS += \
mcp2510.lss \

FLASH_IMAGE += \
mcp2510.hex \

SIZEDUMMY += \
sizedummy \

AVRDUDEDUMMY += \
avrdudedummy \


# All Target
all: mcp2510.elf secondary-outputs

# Tool invocations
mcp2510.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: AVR C Linker'
	avr-gcc -Wl,-Map,mcp2510.map -Wl,-gc-sections -mmcu=atmega32 -o"mcp2510.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

mcp2510.lss: mcp2510.elf
	@echo 'Invoking: AVR Create Extended Listing'
	-avr-objdump -h -S mcp2510.elf  >"mcp2510.lss"
	@echo 'Finished building: $@'
	@echo ' '

mcp2510.hex: mcp2510.elf
	@echo 'Create Flash image (ihex format)'
	-avr-objcopy -R .eeprom -O ihex mcp2510.elf  "mcp2510.hex"
	@echo 'Finished building: $@'
	@echo ' '

sizedummy: mcp2510.elf
	@echo 'Invoking: Print Size'
	-avr-size --format=avr --mcu=atmega32 mcp2510.elf
	@echo 'Finished building: $@'
	@echo ' '

avrdudedummy: mcp2510.elf
	@echo 'Invoking: AVRDude'
	avrdude -pm32 -cstk500v2 -PCOM4 -V -Uflash:w:mcp2510.hex:a
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(ELFS)$(ASM_DEPS)$(OBJS)$(AVRDUDEDUMMY)$(S_UPPER_DEPS)$(LSS)$(FLASH_IMAGE)$(S_DEPS)$(C_DEPS)$(SIZEDUMMY) mcp2510.elf
	-@echo ' '

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
