[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_$(BUILD_OS_TYPE)\r
11 \r
12 SRCDIR = . $(PDK_INSTALL_PATH)/ti/drv/sciclient/examples/common\r
13 INCDIR = . $(PDK_INSTALL_PATH)/ti/drv/sciclient/examples/common\r
14 \r
15 ifeq ($(BUILD_OS_TYPE),tirtos)\r
16 CFLAGS_OS_DEFINES = -DUSE_BIOS\r
17 EXTERNAL_INTERFACES = bios xdc\r
18 COMP_LIST_COMMON = $(PDK_COMMON_TIRTOS_COMP)\r
19 # Enable XDC build for application by providing XDC CFG File per core\r
20 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/drv/sciclient/examples/sciclient_fw_testapp/sysbios_$(ISA).cfg\r
21 SRCS_ASM_COMMON = sciclient_fw_exception.asm\r
22 endif\r
23 \r
24 ifeq ($(BUILD_OS_TYPE),freertos)\r
25 CFLAGS_OS_DEFINES = -DFREERTOS\r
26 COMP_LIST_COMMON = $(PDK_COMMON_FREERTOS_COMP)\r
27 EXTERNAL_INTERFACES = freertos\r
28 endif\r
29 \r
30 # List all the external components/interfaces, whose interface header files\r
31 # need to be included for this component\r
32 INCLUDE_EXTERNAL_INTERFACES = pdk sciclient board uart $(EXTERNAL_INTERFACES)\r
33 \r
34 # Common source files and CFLAGS across all platforms and cores\r
35 SRCS_COMMON = sciclient_fw_main.c \\r
36 sciclient_appCommon.c\r
37 \r
38 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_OS_DEFINES)\r
39 PACKAGE_SRCS_COMMON = . ../common\r
40 \r
41 # Core/SoC/platform specific source files and CFLAGS\r
42 # Example:\r
43 # SRCS_<coqre/SoC/platform-name> =\r
44 # CFLAGS_LOCAL_<core/SoC/platform-name> =\r
45 \r
46 # Include common make files\r
47 ifeq ($(MAKERULEDIR), )\r
48 #Makerule path not defined, define this and assume relative path from ROOTDIR\r
49 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules\r
50 export MAKERULEDIR\r
51 endif\r
52 include $(MAKERULEDIR)/common.mk\r
53 \r
54 # OBJs and libraries are built by using rule defined in rules_<target>.mk\r
55 # and need not be explicitly specified here\r
56 \r
57 # Nothing beyond this point\r