################################################################################
# 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 src/project/freertos/src/subdir.mk
-include src/library/middlewares/uart/gmd/subdir.mk
-include src/library/middlewares/uart/subdir.mk
-include src/library/middlewares/gpio/subdir.mk
-include src/library/middlewares/dmm/subdir.mk
-include src/library/middlewares/delay/subdir.mk
-include src/library/middlewares/3rd_party/freertos/portable/MemMang/subdir.mk
-include src/library/middlewares/3rd_party/freertos/portable/GMD/cm1/subdir.mk
-include src/library/middlewares/3rd_party/freertos/subdir.mk
-include src/library/libraries/drivers/src/subdir.mk
-include src/library/libraries/cmsis/cm1/device_support/startup/gmd/subdir.mk
-include src/library/libraries/cmsis/cm1/device_support/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 += \
cm1_freertos.bin \

SECONDARY_SIZE += \
cm1_freertos.siz \


# All Target
all: cm1_freertos.elf secondary-outputs

# Tool invocations
cm1_freertos.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GNU ARM Cross C Linker'
	arm-none-eabi-gcc -mcpu=cortex-m1 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "D:\GMD_workspace\workspace_cm1\cm1_freertos\src\library\libraries\cmsis\cm1\device_support\startup\gmd\linker\GOWIN_M1_flash_burn.ld" -Xlinker --gc-sections -Wl,-Map,"cm1_freertos.map" -o "cm1_freertos.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

cm1_freertos.bin: cm1_freertos.elf
	@echo 'Invoking: GNU ARM Cross Create Flash Image'
	arm-none-eabi-objcopy -O binary "cm1_freertos.elf"  "cm1_freertos.bin"
	@echo 'Finished building: $@'
	@echo ' '

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

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

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
