################################################################################
# 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 subdir.mk
-include projects/m5211demo/subdir.mk
-include platforms/m5211demo/subdir.mk
-include drivers/clock/subdir.mk
-include FreeRTOS4p7/subdir.mk
-include FreeRTOS4p7/portable/subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
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: m521x-dbg.elf

# Tool invocations
m521x-dbg.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: Cygwin C Linker'
	m68k-elf-gcc -mcpu=5213 -L"D:\m68k\CodeSourcery\Sourcery G++ Lite\m68k-elf\lib\m5213" -T m5213evb-66-rom-hosted.ld -o"m521x-dbg.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '
	$(MAKE) --no-print-directory post-build

# Other Targets
clean:
	-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) m521x-dbg.elf
	-@echo ' '

post-build:
	-@echo 'generate S19'
	-m68k-elf-objcopy -I elf32-big m521x-dbg.elf -O symbolsrec D:/m68k/tmp/project.s19
	-@echo ' '

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

-include ../makefile.targets
