################################################################################
# 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 User/subdir.mk
-include UsbHostLib/UsbHostLib/Hid/subdir.mk
-include UsbHostLib/UsbHostLib/Core/subdir.mk
-include UsbHostLib/UsbHostLib/AUDIOCLASS/subdir.mk
-include Library/Library/subdir.mk
-include CMSIS/CMSIS/GCC/subdir.mk
-include CMSIS/CMSIS/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 += \
USBH_UAC_HID.hex \

SECONDARY_SIZE += \
USBH_UAC_HID.siz \


# All Target
all: USBH_UAC_HID.elf secondary-outputs

# Tool invocations
USBH_UAC_HID.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: Cross ARM GNU C Linker'
	arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g -T "Y:\NUC4xx\Git\BSP\bsp\Library\Device\Nuvoton\NUC472_442\Source\GCC\gcc_arm.ld" -Xlinker --gc-sections -Wl,-Map,"USBH_UAC_HID.map" --specs=nano.specs -o "USBH_UAC_HID.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

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

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

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

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
