blob: 45c5c31b24190fefed92a81ec0768661871c6678 [file] [log] [blame]
# Makefile for building system model as linux module
#
ifeq ("$(OS_KERNEL)", "linux")
MOD_NAME = sysmodel
MOD_DEPS = utils common_api
MOD_TYPE = linux_lib
SRC_DIR = $(MODEL_OUT_DIR)/linux
srcs = bcmolt_model_types.c bcmolt_msg_pack.c
$(shell mkdir -p $(SRC_DIR); ln -s $(MODEL_OUT_DIR)/*.[ch] $(SRC_DIR)/ 2> /dev/null)
# If called by linux kernel builder - add include paths manually.
# It is not elegant, but we'll not have many linux modules
ifneq ("$(KBUILD_SRC)", "")
-include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
endif
endif