]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/sciclient/examples/sciclient_fw_testapp/makefile
019c01c1f749587d28aaa313b1debf0eda1c65c3
[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  = sciclient csl osal_tirtos board uart bios xdc i2c\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 # Enable copy of vectors\r
43 ifeq ($(ISA),$(filter $(ISA), r5f))\r
44   SRCDIR += $(PDK_VECT_COPY_PATH)\r
45   SRCS_ASM_COMMON += utilsCopyVecs2ATcm.asm\r
46 endif\r
47 \r
48 # ifeq ($(CORE),mpu1_0)\r
49 #     LNKFLAGS_LOCAL_mpu1_0 += --entry Entry\r
50 # endif\r
51 # ifeq ($(CORE), mcu1_0)\r
52 #     LNKFLAGS_LOCAL_mcu1_0 += --entry_point=_sciclientTestResetVectors\r
53 # endif\r
54 \r
55 # Core/SoC/platform specific source files and CFLAGS\r
56 # Example:\r
57 #   SRCS_<coqre/SoC/platform-name> =\r
58 #   CFLAGS_LOCAL_<core/SoC/platform-name> =\r
59 \r
60 # Include common make files\r
61 ifeq ($(MAKERULEDIR), )\r
62 #Makerule path not defined, define this and assume relative path from ROOTDIR\r
63   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules\r
64   export MAKERULEDIR\r
65 endif\r
66 include $(MAKERULEDIR)/common.mk\r
67 \r
68 # OBJs and libraries are built by using rule defined in rules_<target>.mk\r
69 #     and need not be explicitly specified here\r
70 \r
71 # Nothing beyond this point\r