]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/board/examples/ddr_thermal_test_app/makefile
Merge pull request #860 in PROCESSOR-SDK/pdk from don/makefile_common_comp to master
[processor-sdk/pdk.git] / packages / ti / board / examples / ddr_thermal_test_app / makefile
1 #
2 # This file is the makefile for building ddr test app.
3 #
4 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
7 ifeq ($(IS_BAREMETAL),yes)
8 APP_NAME = board_baremetal_ddr_thermal_test_app
9 else
10 APP_NAME = board_ddr_thermal_test_app
11 endif
13 ifeq ($(IS_BAREMETAL),yes)
14 BUILD_OS_TYPE       = baremetal
15 COMP_LIST_COMMON    = $(PDK_COMMON_BAREMETAL_COMP)
16 else
17 BUILD_OS_TYPE = tirtos
18 CFLAGS_OS_DEFINES = -DUSE_BIOS
19 EXTERNAL_INTERFACES = bios xdc
20 COMP_LIST_COMMON    = $(PDK_COMMON_TIRTOS_COMP)
21 ifeq ($(SOC), j721e)
22   XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
23 endif
24 endif
25 SRCDIR = src
26 INCDIR = inc
28 # List all the external components/interfaces, whose interface header files
29 # need to be included for this component
30 INCLUDE_EXTERNAL_INTERFACES = pdk $(EXTERNAL_INTERFACES)
31 INCLUDE_INTERNAL_INTERFACES =
33 ifneq ($(CSL_BUILD),$(filter $(CSL_BUILD), CSL))
34   COMP_LIST_COMMON += csl2 csl_trim
35 endif
37 # Common source files and CFLAGS across all platforms and cores
38 PACKAGE_SRCS_COMMON = .
39 SRCS_COMMON = main.c
41 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_OS_DEFINES)
43 # Core/SoC/platform specific source files and CFLAGS
44 # Example:
45 #   SRCS_<core/SoC/platform-name> =
46 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
48 # Include common make files
49 ifeq ($(MAKERULEDIR), )
50 #Makerule path not defined, define this and assume relative path from ROOTDIR
51   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
52   export MAKERULEDIR
53 endif
54 include $(MAKERULEDIR)/common.mk
56 # OBJs and libraries are built by using rule defined in rules_<target>.mk
57 #     and need not be explicitly specified here
59 # Nothing beyond this point