blob: 4715e9255624201ef42f7608d1cbe831566ba403 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# This dummy Makefile doesn't build anything.
2# It just adds paths to Maple SDK header files and libraries
3#
4MOD_NAME = maple_sdk
5MOD_TYPE = lib
6
7MOD_INC_DIRS = $(SRC_DIR)/sdk/host_driver/api
8MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/host_api
9
10ifeq ("$(ENABLE_CLI)", "y")
11 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_customized/embedded_cli
12 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_customized/os_abstraction/os_cli
13endif
14
15ifneq ("$(BOARD)", "")
16 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_customized/board/$(BOARD)
17endif
18
19MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/transport
20MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/model
21MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/common_gpon
22MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/sw_version
23
24MOD_LIBS = -L$(SRC_DIR)/sdk/build/output
25MOD_LIBS += -lmodel
26MOD_LIBS += -lcommon_api
27MOD_LIBS += -ltransport
28MOD_LIBS += -ldevice_selector
29ifneq ("$(BOARD)", "")
30 MOD_LIBS += -lbcm_board
31endif
32
33ifeq ("$(SIMULATION_BUILD)", "y")
34 MOD_LIBS += -ltr_plugin_udp
35else
36 MOD_LIBS += -ltr_plugin_mux -ltr_plugin_raw -ltr_plugin_raw_ud
37endif
38
39ifeq ("$(ENABLE_CLI)", "y")
40 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_reference/api_dev_log
41 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_reference/api_cli
42 MOD_INC_DIRS += $(SRC_DIR)/sdk/host_reference/device_selector
43 MOD_LIBS += -lapi_cli
44 MOD_LIBS += -lapi_dev_log
45endif