ifneq ($(RULES_MAKE), ) include $(RULES_MAKE) endif AER_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/aer_c64Px_obj_17_0_0_0 VOLIB_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/volib_C66_2_1_0_1 GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt" GEN_CMDS__FLAG := -l"configPkg/linker.cmd" ORDERED_OBJS += \ "./main.obj" \ "./clk.obj" \ "./fil.obj" \ "./sys.obj" \ "./sysasnr.obj" \ "./sysbf.obj" \ "./sysbfflt.obj" \ "./sysdrc.obj" \ "./syseram.obj" \ "./sysiram.obj" \ "./sysmss.obj" \ "./mhm.obj" \ "./mss.obj" \ "./mssproc.obj" \ "../bflinker.cmd" \ $(GEN_CMDS__FLAG) \ -laer_c.ae64P \ -lvau/lib/vau_c.ae66 \ -lvpe/lib/vpe_a.ae66 \ -lvpe/lib/vpe_c.ae66 \ -lutil/lib/util_c.ae66 \ -lmhm/lib/mhm_c.ae66 \ -llibc.a \ -include ../makefile.init OS := $(shell uname) ifeq ($(OS), Linux) RM := rm -f RMDIR := rm -d -f -r else RM := rm -f RMDIR := rm -r -f endif # All of the sources participating in the build are defined here ##-include subdir_vars.mk # Add inputs and outputs from these tool invocations to the build variables CMD_SRCS += \ ../bflinker.cmd CFG_SRCS += \ ../app.cfg C_SRCS += \ ../main.c OBJS += \ ./main.obj C_DEPS += \ ./main.d GEN_MISC_DIRS += \ ./configPkg/ GEN_CMDS += \ ./configPkg/linker.cmd GEN_OPTS += \ ./configPkg/compiler.opt GEN_FILES += \ ./configPkg/linker.cmd \ ./configPkg/compiler.opt ifeq ($(OS), Linux) GEN_FILES__QUOTED += \ "configPkg/linker.cmd" \ "configPkg/compiler.opt" GEN_MISC_DIRS__QUOTED += \ "configPkg/" DEPEND_FILES = "main.d" "clk.d" "fil.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "mhm.d" "mss.d" "mssproc.d" OBJECT_FILES = "main.obj" "clk.obj" "fil.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "mhm.obj" "mss.obj" "mssproc.obj" else GEN_FILES__QUOTED += \ "configPkg\linker.cmd" \ "configPkg\compiler.opt" GEN_MISC_DIRS__QUOTED += \ "configPkg" DEPEND_FILES = "main.d" "clk.d" "fil.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "mhm.d" "mss.d" "mssproc.d" OBJECT_FILES = "main.obj" "clk.obj" "fil.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "mhm.obj" "mss.obj" "mssproc.obj" endif C_DEPS__QUOTED += \ "main.d" OBJS__QUOTED += \ "main.obj" C_SRCS__QUOTED += \ "../main.c" ##-include components/subdir_vars.mk C_SRCS += \ ../../../common/components/clk.c \ ../../../common/components/fil.c \ ../../../common/components/sys.c \ ../../../common/components/sysasnr.c \ ../../../common/components/sysbf.c \ ../../../common/components/sysbfflt.c \ ../../../common/components/sysdrc.c \ ../../../common/components/syseram.c \ ../../../common/components/sysiram.c \ ../../../common/components/sysmss.c OBJS += \ clk.obj \ fil.obj \ sys.obj \ sysasnr.obj \ sysbf.obj \ sysbfflt.obj \ sysdrc.obj \ syseram.obj \ sysiram.obj \ sysmss.obj C_DEPS += \ clk.d \ fil.d \ sys.d \ sysasnr.d \ sysbf.d \ sysbfflt.d \ sysdrc.d \ syseram.d \ sysiram.d \ sysmss.d C_DEPS__QUOTED += \ "clk.d" \ "fil.d" \ "sys.d" \ "sysasnr.d" \ "sysbf.d" \ "sysbfflt.d" \ "sysdrc.d" \ "syseram.d" \ "sysiram.d" \ "sysmss.d" OBJS__QUOTED += \ "clk.obj" \ "fil.obj" \ "sys.obj" \ "sysasnr.obj" \ "sysbf.obj" \ "sysbfflt.obj" \ "sysdrc.obj" \ "syseram.obj" \ "sysiram.obj" \ "sysmss.obj" C_SRCS__QUOTED += \ "../../../common/components/clk.c" \ "../../../common/components/fil.c" \ "../../../common/components/sys.c" \ "../../../common/components/sysasnr.c" \ "../../../common/components/sysbf.c" \ "../../../common/components/sysbfflt.c" \ "../../../common/components/sysdrc.c" \ "../../../common/components/syseram.c" \ "../../../common/components/sysiram.c" \ "../../../common/components/sysmss.c" ##-include components/mhm/src/subdir_vars.mk C_SRCS += \ ../../../common/components/mhm/src/mhm.c OBJS += \ mhm.obj C_DEPS += \ mhm.d C_DEPS__QUOTED += \ "mhm.d" OBJS__QUOTED += \ "mhm.obj" C_SRCS__QUOTED += \ "../../../common/components/mhm/src/mhm.c" ##-include components/mss/src/subdir_vars.mk C_SRCS += \ ../../../common/components/mss/src/mss.c \ ../../../common/components/mss/src/mssproc.c OBJS += \ mss.obj \ mssproc.obj C_DEPS += \ mss.d \ mssproc.d C_DEPS__QUOTED += \ "mss.d" \ "mssproc.d" OBJS__QUOTED += \ "mss.obj" \ "mssproc.obj" C_SRCS__QUOTED += \ "../../../common/components/mss/src/mss.c" \ "../../../common/components/mss/src/mssproc.c" ##-include subdir_rules.mk configPkg/linker.cmd: ../app.cfg @echo 'Building file: $<' @echo 'Invoking: XDCtools' "$(XDC_INSTALL_PATH)/xs" --xdcpath="$(BIOS_INSTALL_PATH)/packages;$(VOLIB_INSTALL_PATH)/packages;$(UIA_INSTALL_PATH)/packages;$(XDAIS_INSTALL_PATH)/packages;$(XDAIS_INSTALL_PATH)/examples;../../platforms/packages;$(AER_INSTALL_PATH)/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p evmAM572XCustom -r debug -c "$(C6X_GEN_INSTALL_PATH)" --compileOptions "-g --optimize_with_debug" "$<" @echo 'Finished building: $<' @echo ' ' configPkg/compiler.opt: | configPkg/linker.cmd configPkg/: | configPkg/linker.cmd main.obj: ../main.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d" $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' ##-include components/subdir_rules.mk clk.obj: ../../../common/components/clk.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="./clk.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' fil.obj: ../../../common/components/fil.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="fil.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sys.obj: ../../../common/components/sys.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sys.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysasnr.obj: ../../../common/components/sysasnr.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysasnr.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysbf.obj: ../../../common/components/sysbf.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysbf.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysbfflt.obj: ../../../common/components/sysbfflt.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysbfflt.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysdrc.obj: ../../../common/components/sysdrc.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysdrc.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' syseram.obj: ../../../common/components/syseram.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="syseram.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysiram.obj: ../../../common/components/sysiram.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysiram.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' sysmss.obj: ../../../common/components/sysmss.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysmss.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' ##-include components/mhm/src/subdir_rules.mk mhm.obj: ../../../common/components/mhm/src/mhm.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mhm.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' ##-include components/mss/src/subdir_rules.mk mss.obj: ../../../common/components/mss/src/mss.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mss.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' mssproc.obj: ../../../common/components/mss/src/mssproc.c $(GEN_OPTS) $(GEN_HDRS) @echo 'Building file: $<' @echo 'Invoking: C6000 Compiler' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="../../../common/components" --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mssproc.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<" @echo 'Finished building: $<' @echo ' ' ##-include objects.mk USER_OBJS := LIBS := -laer_c.ae64P -lvau/lib/vau_c.ae66 -lvpe/lib/vpe_a.ae66 -lvpe/lib/vpe_c.ae66 -lutil/lib/util_c.ae66 -lmhm/lib/mhm_c.ae66 -llibc.a ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(S_DEPS)),) -include $(S_DEPS) endif ifneq ($(strip $(S_UPPER_DEPS)),) -include $(S_UPPER_DEPS) endif ifneq ($(strip $(S62_DEPS)),) -include $(S62_DEPS) endif ifneq ($(strip $(C64_DEPS)),) -include $(C64_DEPS) endif ifneq ($(strip $(ASM_DEPS)),) -include $(ASM_DEPS) endif ifneq ($(strip $(CC_DEPS)),) -include $(CC_DEPS) endif ifneq ($(strip $(SV7A_DEPS)),) -include $(SV7A_DEPS) endif ifneq ($(strip $(S55_DEPS)),) -include $(S55_DEPS) endif ifneq ($(strip $(C67_DEPS)),) -include $(C67_DEPS) endif ifneq ($(strip $(CLA_DEPS)),) -include $(CLA_DEPS) endif ifneq ($(strip $(C??_DEPS)),) -include $(C??_DEPS) endif ifneq ($(strip $(CPP_DEPS)),) -include $(CPP_DEPS) endif ifneq ($(strip $(S??_DEPS)),) -include $(S??_DEPS) endif ifneq ($(strip $(C_DEPS)),) -include $(C_DEPS) endif ifneq ($(strip $(C62_DEPS)),) -include $(C62_DEPS) endif ifneq ($(strip $(CXX_DEPS)),) -include $(CXX_DEPS) endif ifneq ($(strip $(C++_DEPS)),) -include $(C++_DEPS) endif ifneq ($(strip $(ASM_UPPER_DEPS)),) -include $(ASM_UPPER_DEPS) endif ifneq ($(strip $(K_DEPS)),) -include $(K_DEPS) endif ifneq ($(strip $(C43_DEPS)),) -include $(C43_DEPS) endif ifneq ($(strip $(INO_DEPS)),) -include $(INO_DEPS) endif ifneq ($(strip $(S67_DEPS)),) -include $(S67_DEPS) endif ifneq ($(strip $(SA_DEPS)),) -include $(SA_DEPS) endif ifneq ($(strip $(S43_DEPS)),) -include $(S43_DEPS) endif ifneq ($(strip $(OPT_DEPS)),) -include $(OPT_DEPS) endif ifneq ($(strip $(PDE_DEPS)),) -include $(PDE_DEPS) endif ifneq ($(strip $(S64_DEPS)),) -include $(S64_DEPS) endif ifneq ($(strip $(C_UPPER_DEPS)),) -include $(C_UPPER_DEPS) endif ifneq ($(strip $(C55_DEPS)),) -include $(C55_DEPS) endif endif -include ../makefile.defs # Add inputs and outputs from these tool invocations to the build variables EXE_OUTPUTS += \ AM572x_bf.out \ EXE_OUTPUTS__QUOTED += \ "AM572x_bf.out" \ BIN_OUTPUTS += \ AM572x_bf.hex \ BIN_OUTPUTS__QUOTED += \ "AM572x_bf.hex" \ # All Target all: AM572x_bf.out # Tool invocations AM572x_bf.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS) @echo 'Building target: $@' @echo 'Invoking: C6000 Linker' "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 -g --define=am5728 --define=core1 --diag_warning=225 --diag_wrap=off --display_error_number -z -m"AM572x_bf.map" --heap_size=0x800 --stack_size=0x800 -i"$(AER_INSTALL_PATH)/packages/ti/mas/aer/lib" -i"$(VOLIB_INSTALL_PATH)/packages/ti/mas/" -i"$(C6X_GEN_INSTALL_PATH)/lib" -i"$(C6X_GEN_INSTALL_PATH)/include" --reread_libs --define=CORE1=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="AM572x_bf_linkInfo.xml" --rom_model -o "AM572x_bf.out" $(ORDERED_OBJS) @echo 'Finished building target: $@' @echo ' ' AM572x_bf.hex: $(EXE_OUTPUTS) @echo 'Invoking: C6000 Hex Utility' "$(C6X_GEN_INSTALL_PATH)/bin/hex6x" -o "AM572x_bf.hex" $(EXE_OUTPUTS__QUOTED) @echo 'Finished building: $@' @echo ' ' # Other Targets clean: -$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED) -$(RMDIR) $(GEN_MISC_DIRS__QUOTED) -$(RM) ${DEPEND_FILES} -$(RM) ${OBJECT_FILES} -@echo 'Finished clean' -@echo ' ' .PHONY: all clean dependents .SECONDARY: -include ../makefile.targets