[processor-sdk/pdk.git] / packages / ti / drv / sciclient / examples / sciclient_fw_testapp / makefile
1 #\r
2 # This file is the makefile for building Sciclient Unit Test application.\r
3 #\r
4 ifeq ($(RULES_MAKE), )\r
5 include $(PDK_INSTALL_PATH)/ti/build/Rules.make\r
6 else\r
7 include $(RULES_MAKE)\r
8 endif\r
9 \r
10 APP_NAME = sciclient_fw_testapp\r
11 BUILD_OS_TYPE=tirtos\r
12 \r
13 SRCDIR = . ../common\r
14 INCDIR = . ../common\r
15 \r
16 # List all the external components/interfaces, whose interface header files\r
17 # need to be included for this component\r
18 INCLUDE_EXTERNAL_INTERFACES = pdk sciclient osal_tirtos board uart bios xdc\r
19 \r
20 # List all the components required by the application\r
21 COMP_LIST_COMMON = $(PDK_COMMON_TIRTOS_COMP) bios xdc\r
22 ifeq ($(ARCH),c66x)\r
23 COMP_LIST_COMMON += csl_intc\r
24 else\r
25 ifneq ($(ARCH),c71)\r
26 COMP_LIST_COMMON += csl_init\r
27 endif\r
28 endif\r
29 \r
30 # Common source files and CFLAGS across all platforms and cores\r
31 SRCS_COMMON = sciclient_fw_main.c \\r
32 sciclient_appCommon.c\r
33 \r
34 SRCS_ASM_COMMON = sciclient_fw_exception.asm\r
35 \r
36 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)\r
37 PACKAGE_SRCS_COMMON = . ../common\r
38 \r
39 # Enable XDC build for application by providing XDC CFG File per core\r
40 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/drv/sciclient/examples/sciclient_fw_testapp/sysbios_$(ISA).cfg\r
41 \r
42 # ifeq ($(CORE),mpu1_0)\r
43 # LNKFLAGS_LOCAL_mpu1_0 += --entry Entry\r
44 # endif\r
45 # ifeq ($(CORE), mcu1_0)\r
46 # LNKFLAGS_LOCAL_mcu1_0 += --entry_point=_sciclientTestResetVectors\r
47 # endif\r
48 \r
49 # Core/SoC/platform specific source files and CFLAGS\r
50 # Example:\r
51 # SRCS_<coqre/SoC/platform-name> =\r
52 # CFLAGS_LOCAL_<core/SoC/platform-name> =\r
53 \r
54 # Include common make files\r
55 ifeq ($(MAKERULEDIR), )\r
56 #Makerule path not defined, define this and assume relative path from ROOTDIR\r
57 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules\r
58 export MAKERULEDIR\r
59 endif\r
60 include $(MAKERULEDIR)/common.mk\r
61 \r
62 # OBJs and libraries are built by using rule defined in rules_<target>.mk\r
63 # and need not be explicitly specified here\r
64 \r
65 # Nothing beyond this point\r