################################################################################
# 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 startup_src/subdir.mk
-include src/subdir.mk
-include StdPeriph/subdir.mk
-include STM32_EVAL/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_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 
SECONDARY_FLASH += \
IO_Toggle.hex \

SECONDARY_LIST += \
IO_Toggle.lst \

SECONDARY_SIZE += \
IO_Toggle.siz \


# All Target
all: IO_Toggle.elf secondary-outputs

# Tool invocations
IO_Toggle.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: ARM Sourcery Linux GCC C Linker'
	arm-none-eabi-gcc -T"/home/user/eclipse/STM32/workspace/IO_Toggle/startup_src/stm32_flash.ld" -nostartfiles -Wl,-Map,IO_Toggle.map -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2 -o "IO_Toggle.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '
	$(MAKE) --no-print-directory post-build

IO_Toggle.hex: IO_Toggle.elf
	@echo 'Invoking: ARM Sourcery Linux GNU Create Flash Image'
	arm-none-eabi-objcopy -O binary IO_Toggle.elf  "IO_Toggle.hex"
	@echo 'Finished building: $@'
	@echo ' '

IO_Toggle.lst: IO_Toggle.elf
	@echo 'Invoking: ARM Sourcery Linux GNU Create Listing'
	arm-none-eabi-objdump -h -S IO_Toggle.elf > "IO_Toggle.lst"
	@echo 'Finished building: $@'
	@echo ' '

IO_Toggle.siz: IO_Toggle.elf
	@echo 'Invoking: ARM Sourcery Linux GNU Print Size'
	arm-none-eabi-size  --format=berkeley IO_Toggle.elf
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(SECONDARY_SIZE)$(OBJS)$(C_DEPS)$(ASM_DEPS)$(SECONDARY_FLASH)$(EXECUTABLES)$(SECONDARY_LIST)$(S_UPPER_DEPS) IO_Toggle.elf
	-@echo ' '

post-build:
	-@echo 'Create Binary'
	-arm-none-eabi-objcopy -S  -O binary "IO_Toggle" "IO_Toggle.bin"
	-@echo ' '

secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)

.PHONY: all clean dependents
.SECONDARY: post-build

-include ../makefile.targets
