################################################################################
# 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 MotorControl_Drivers/firmware/hal/CortexM3/GNU/subdir.mk
-include MotorControl_Drivers/firmware/hal/CortexM3/subdir.mk
-include MotorControl_Drivers/firmware/drivers_config/sys_config/subdir.mk
-include MotorControl_Drivers/firmware/drivers/mss_usb/subdir.mk
-include MotorControl_Drivers/firmware/drivers/mss_sys_services/subdir.mk
-include MotorControl_Drivers/firmware/drivers/mss_nvm/subdir.mk
-include MotorControl_Drivers/firmware/drivers/mss_hpdma/subdir.mk
-include MotorControl_Drivers/firmware/drivers/mss_gpio/subdir.mk
-include MotorControl_Drivers/firmware/CMSIS/startup_gcc/subdir.mk
-include MotorControl_Drivers/firmware/CMSIS/subdir.mk
-include MotorControl_App/subdir.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 $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH += \
MotorControl_5_1.hex \

SECONDARY_SIZE += \
MotorControl_5_1.siz \


# All Target
all: MotorControl_5_1.elf secondary-outputs

# Tool invocations
MotorControl_5_1.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: Cross ARM C Linker'
	arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "F:\Work\WebreleaseTest\SCTest\2A\Motor_Control_5_1_0\MotorControl_5_1\MotorControl_Drivers\firmware\CMSIS\startup_gcc\debug-in-microsemi-smartfusion2-envm.ld" -Xlinker --gc-sections -Wl,-Map,"MotorControl_5_1.map" --specs=nano.specs -o "MotorControl_5_1.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

MotorControl_5_1.hex: MotorControl_5_1.elf
	@echo 'Invoking: Cross ARM GNU Create Flash Image'
	arm-none-eabi-objcopy -O ihex "MotorControl_5_1.elf"  "MotorControl_5_1.hex"
	@echo 'Finished building: $@'
	@echo ' '

MotorControl_5_1.siz: MotorControl_5_1.elf
	@echo 'Invoking: Cross ARM GNU Print Size'
	arm-none-eabi-size --format=berkeley "MotorControl_5_1.elf"
	@echo 'Finished building: $@'
	@echo ' '

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

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
