################################################################################
# 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/subdir.mk
-include PMSM_FOC/MIDSys/subdir.mk
-include PMSM_FOC/MCUInit/subdir.mk
-include PMSM_FOC/Interrupts/subdir.mk
-include PMSM_FOC/ControlModules/subdir.mk
-include PMSM_FOC/Configuration/subdir.mk
-include Libraries/XMCLib/src/subdir.mk
-include Libraries/Newlib/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(S_DEPS)),)
-include $(S_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 += \
Eval-100W_FOC_XMC13.hex \

SECONDARY_LIST += \
Eval-100W_FOC_XMC13.lst \

SECONDARY_SIZE += \
Eval-100W_FOC_XMC13.siz \


LIST_FILES = $(addsuffix .o.lst, $(basename $(OBJS))) 
MAP_FILE = "Eval-100W_FOC_XMC13.map"

TOOLCHAIN_ROOT=C:/DAVEv4/DAVE-4.3.2/eclipse/ARM-GCC-49
PROJECT_LOC=C:/MC_DAVE432_CeilingFan_100W/Eval-100W_FOC_XMC13

# All Target
all: Eval-100W_FOC_XMC13.elf secondary-outputs

# Tool invocations
Eval-100W_FOC_XMC13.elf: $(OBJS) ../linker_script.ld $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: ARM-GCC C Linker'
	$(file >objects.rsp,$(OBJS))
	"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-gcc" -T"../linker_script.ld" -nostartfiles -Xlinker --gc-sections -specs=nano.specs -L"C:\MC_DAVE432_CeilingFan_100W\Eval-100W_FOC_XMC13\PMSM_FOC\FOCLib" -Wl,-Map,$(MAP_FILE) -mcpu=cortex-m0 -mthumb -g -gdwarf-2 -o "Eval-100W_FOC_XMC13.elf" "@objects.rsp" $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo.
Eval-100W_FOC_XMC13.hex: Eval-100W_FOC_XMC13.elf
	@echo 'Invoking: ARM-GCC Create Flash Image'
	"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-objcopy" -O ihex "Eval-100W_FOC_XMC13.elf" "Eval-100W_FOC_XMC13.hex"
	@echo 'Finished building: $@'
	@echo.
Eval-100W_FOC_XMC13.lst: Eval-100W_FOC_XMC13.elf
	@echo 'Invoking: ARM-GCC Create Listing'
	"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-objdump" -h -S "Eval-100W_FOC_XMC13.elf" > "Eval-100W_FOC_XMC13.lst"
	@echo 'Finished building: $@'
	@echo.
Eval-100W_FOC_XMC13.siz: Eval-100W_FOC_XMC13.elf
	@echo 'Invoking: ARM-GCC Print Size'
	"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-size" --format=berkeley "Eval-100W_FOC_XMC13.elf"
	@echo 'Finished building: $@'
	@echo.
# Other Targets
clean:
	-$(RM) $(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ARM_GCC_FOR_XMC_LINKER_OUTPUT_TYPE_OUTPUTS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) Eval-100W_FOC_XMC13.elf $(LIST_FILES) $(MAP_FILE) objects.rsp
	-@echo.
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
