Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | # This dummy Makefile doesn't build anything. |
| 2 | # It just adds paths to Maple SDK header files and libraries |
| 3 | # |
| 4 | MOD_NAME = maple_sdk |
| 5 | MOD_TYPE = lib |
| 6 | |
| 7 | MOD_INC_DIRS = $(SRC_DIR)/sdk/host_driver/api |
| 8 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/host_api |
| 9 | |
| 10 | ifeq ("$(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 |
| 13 | endif |
| 14 | |
| 15 | ifneq ("$(BOARD)", "") |
| 16 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_customized/board/$(BOARD) |
| 17 | endif |
| 18 | |
| 19 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/transport |
| 20 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/model |
| 21 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/common_gpon |
| 22 | MOD_INC_DIRS += $(SRC_DIR)/sdk/host_driver/sw_version |
| 23 | |
| 24 | MOD_LIBS = -L$(SRC_DIR)/sdk/build/output |
| 25 | MOD_LIBS += -lmodel |
| 26 | MOD_LIBS += -lcommon_api |
| 27 | MOD_LIBS += -ltransport |
| 28 | MOD_LIBS += -ldevice_selector |
| 29 | ifneq ("$(BOARD)", "") |
| 30 | MOD_LIBS += -lbcm_board |
| 31 | endif |
| 32 | |
| 33 | ifeq ("$(SIMULATION_BUILD)", "y") |
| 34 | MOD_LIBS += -ltr_plugin_udp |
| 35 | else |
| 36 | MOD_LIBS += -ltr_plugin_mux -ltr_plugin_raw -ltr_plugin_raw_ud |
| 37 | endif |
| 38 | |
| 39 | ifeq ("$(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 |
| 45 | endif |