################################################################################
# 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/SOURCE/user_interface/subdir.mk
-include user/SOURCE/io/subdir.mk
-include user/SOURCE/interfaces/subdir.mk
-include user/SOURCE/hardware/subdir.mk
-include user/SOURCE/functions/subdir.mk
-include user/SOURCE/dmr_codec/subdir.mk
-include user/SOURCE/subdir.mk
-include user/DRV/subdir.mk
-include user/subdir.mk
-include ucos3/ucos/ucos_in_ram/subdir.mk
-include ucos3/ucos/ucos_in_flash/subdir.mk
-include ucos3/lib/subdir.mk
-include ucos3/bsp/subdir.mk
-include arch/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
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 

# All Target
all: dh4570_IAP.elf dh4570_IAP.bin dh4570_IAP.elf.asm

# Output Target
dh4570_IAP.bin: dh4570_IAP.elf
	@echo 'Outputing file $@'
	csky-elfabiv2-objcopy -O binary "$<" "$@"

dh4570_IAP.elf.asm: dh4570_IAP.elf
	@echo 'Outputing file $@'
	csky-elfabiv2-objdump -d "$<" > "$@"

# Tool invocations
dh4570_IAP.elf: $(OBJS) $(USER_OBJS) C:\C-Sky\workspace-cds\dh4570_IAP\ckcpu.ld
	@echo 'Building target: $@'
	@csky-elfabiv2-gcc -mcpu=ck803s -nostartfiles -Wl,--gc-sections -lc -T"C:\C-Sky\workspace-cds\dh4570_IAP\ckcpu.ld" -o "dh4570_IAP.elf" $(OBJS) $(USER_OBJS) $(LIBS)

# Other Targets
clean:
	-$(RM) dh4570_IAP.bin dh4570_IAP.elf.asm
	-$(RM) $(OBJS)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) dh4570_IAP.elf
	-@echo ' '

.PHONY: all clean dependents

-include ../makefile.targets
