################################################################################
# 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/platform/miv_rv32_hal/subdir.mk
-include src/platform/hal/subdir.mk
-include src/platform/drivers/off_chip/spi_flash/subdir.mk
-include src/platform/drivers/fpga_ip/miv_watchdog/subdir.mk
-include src/platform/drivers/fpga_ip/miv_udma/subdir.mk
-include src/platform/drivers/fpga_ip/miv_plic/subdir.mk
-include src/platform/drivers/fpga_ip/CoreUARTapb/subdir.mk
-include src/platform/drivers/fpga_ip/CoreSysServices_PF/subdir.mk
-include src/platform/drivers/fpga_ip/CoreSPI/subdir.mk
-include src/platform/drivers/fpga_ip/CoreI2C/subdir.mk
-include src/platform/drivers/fpga_ip/CoreGPIO/subdir.mk
-include src/platform/drivers/fpga_ip/CoreAXI4-Lite/subdir.mk
-include src/platform/drivers/fpga_ip/Core10GBaseKR_PHY/subdir.mk
-include src/application/sincos_funcs/subdir.mk
-include src/application/imx334_corei2c/subdir.mk
-include src/application/hdmi_config/subdir.mk
-include src/application/delay/subdir.mk
-include src/application/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

OPTIONAL_TOOL_DEPS := \
$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \


BUILD_ARTIFACT_NAME := mpf_an5270_v2025p1_df
BUILD_ARTIFACT_EXTENSION := elf
BUILD_ARTIFACT_PREFIX :=
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH += \
mpf_an5270_v2025p1_df.hex \

SECONDARY_LIST += \
mpf_an5270_v2025p1_df.lst \

SECONDARY_SIZE += \
mpf_an5270_v2025p1_df.siz \


# All Target
all: main-build

# Main-build Target
main-build: mpf_an5270_v2025p1_df.elf secondary-outputs

# Tool invocations
mpf_an5270_v2025p1_df.elf: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
	@echo 'Building target: $@'
	@echo 'Invoking: GNU RISC-V Cross C Linker'
	riscv64-unknown-elf-gcc -march=rv32i -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mstrict-align -mno-save-restore -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "C:\Work_Folder_Akhil\Q3_2024_2025\Arena_finalizing\PolarFire\AN5270_PIP\New_Softconsole\mpf_an5270_v2025p1_df\src\boards\polarfire-eval-kit\miv-rv32-design\platform_config\linker\miv-rv32-ram.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"mpf_an5270_v2025p1_df.map" --specs=nano.specs -o "mpf_an5270_v2025p1_df.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

mpf_an5270_v2025p1_df.hex: mpf_an5270_v2025p1_df.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GNU RISC-V Cross Create Flash Image'
	riscv64-unknown-elf-objcopy -O ihex "mpf_an5270_v2025p1_df.elf"  "mpf_an5270_v2025p1_df.hex"
	@echo 'Finished building: $@'
	@echo ' '

mpf_an5270_v2025p1_df.lst: mpf_an5270_v2025p1_df.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GNU RISC-V Cross Create Listing'
	riscv64-unknown-elf-objdump --source --all-headers --demangle --line-numbers --wide "mpf_an5270_v2025p1_df.elf" > "mpf_an5270_v2025p1_df.lst"
	@echo 'Finished building: $@'
	@echo ' '

mpf_an5270_v2025p1_df.siz: mpf_an5270_v2025p1_df.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GNU RISC-V Cross Print Size'
	riscv64-unknown-elf-size --format=sysv --radix=16 "mpf_an5270_v2025p1_df.elf"
	@echo 'Finished building: $@'
	@echo ' '

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

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

.PHONY: all clean dependents main-build

-include ../makefile.targets
