]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/transport/ndk/nimu/example/ftpApp/am65xx/cpsw/makefile
Merge pull request #860 in PROCESSOR-SDK/pdk from don/makefile_common_comp to master
[processor-sdk/pdk.git] / packages / ti / transport / ndk / nimu / example / ftpApp / am65xx / cpsw / makefile
1 # Makefile for NIMU FTP sample app
2 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
4 #Name of the directory created under packages/ti/binary/
5 APP_NAME = NIMU_FtpCpsw_ExampleApp
7 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
8 LOCAL_APP_NAME =  NIMU_FtpCpsw_$(BOARD)_$(CORE)ExampleApp
10 SRCDIR = . ../src ../../example/ftpApp/ftpserver  ../../example/src
11 INCDIR = . src/
12 INCDIR += $(bios_PATH)/packages/ti/posix/ccs
13 # Common source files across all platforms and cores
14 SRCS_COMMON += main_am65xx.c nimu_osal.c ftp_commands.c ftp_filerout.c ftpserver.c
16 # List all the external components/interfaces, whose interface header files
17 #  need to be included for this component
18 INCLUDE_EXTERNAL_INTERFACES = bios xdc ndk pdk
20 # List all the components required by the application
21 COMP_LIST_COMMON = $(PDK_COMMON_TIRTOS_COMP)
22 COMP_LIST_COMMON += emac uart_console nimu
24 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
25 CFLAGS_LOCAL_COMMON += -DNIMU_FTP_APP -DNIMU_APP_CPSW
27 ifeq ($(CORE),$(filter $(CORE), mpu1_0))
28 # Enable XDC build for application by providing XDC CFG File per core
29 XDC_CFG_FILE_$(CORE) = $(pdk_PATH)/ti/transport/ndk/nimu/example/am65xx/nimuExample_a53.cfg
30 CFLAGS_LOCAL_COMMON += -std=c99 
31 EXTERNAL_LNKCMD_FILE_LOCAL = $(pdk_PATH)/ti/transport/ndk/nimu/example/am65xx/nimu_linker_a53.lds
32 endif
34 ifeq ($(CORE),$(filter $(CORE), mcu1_0))
35 # Enable XDC build for application by providing XDC CFG File per core
36 XDC_CFG_FILE_$(CORE) = $(pdk_PATH)/ti/transport/ndk/nimu/example/am65xx/nimuExample_r5.cfg
37 EXTERNAL_LNKCMD_FILE_LOCAL = $(pdk_PATH)/ti/transport/ndk/nimu/example/am65xx/nimu_linker_r5.lds
38 endif
40 PACKAGE_SRCS_COMMON = .
43 # Include common make files
44 ifeq ($(MAKERULEDIR), )
45 #Makerule path not defined, define this and assume relative path from ROOTDIR
46   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
47   export MAKERULEDIR
48 endif
49 include $(MAKERULEDIR)/common.mk
51 # OBJs and libraries are built by using rule defined in rules_<target>.mk
52 #     and need not be explicitly specified here
54 # Nothing beyond this point