mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 16:02:36 +02:00
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
LIB := libbcmmcast.so
|
|
|
|
all install: conditional_build
|
|
|
|
|
|
CURR_DIR := $(shell pwd)
|
|
BUILD_DIR:=$(HND_SRC)
|
|
include $(BUILD_DIR)/make.common
|
|
|
|
|
|
ARCH := $(PROFILE_ARCH)
|
|
LIB_INSTALL_DIR := $(BCM_FSBUILD_DIR)/private/lib
|
|
HEADER_INSTALL_DIR := $(BCM_FSBUILD_DIR)/private/include
|
|
ALLOWED_INCLUDE_PATHS := -I.\
|
|
-I$(BUILD_DIR)/userspace/public/include \
|
|
-I$(BUILD_DIR)/userspace/public/include/$(OALDIR) \
|
|
-I$(BUILD_DIR)/userspace/private/include \
|
|
-I$(BUILD_DIR)/userspace/private/include/$(OALDIR) \
|
|
-I$(INC_BRCMDRIVER_PUB_PATH)/$(BRCM_BOARD) \
|
|
-I$(INC_INSTALL_KERNEL_HDR_PATH)/include
|
|
|
|
export ARCH CFLAGS LIB_INSTALL_DIR HEADER_INSTALL_DIR
|
|
export BRCM_OVS_SUPPORT_MCAST
|
|
|
|
|
|
# Final location of LIB for system image. Only the BRCM build system needs to
|
|
# know about this.
|
|
FINAL_LIB_INSTALL_DIR := $(INSTALL_DIR)/lib$(BCM_INSTALL_SUFFIX_DIR)
|
|
|
|
|
|
ifneq ($(strip $(BUILD_MCAST_SNOOP)),)
|
|
|
|
conditional_build:
|
|
mkdir -p objs
|
|
$(MAKE) -C objs -f ../Makefile install
|
|
mkdir -p $(FINAL_LIB_INSTALL_DIR)
|
|
cp -p $(LIB_INSTALL_DIR)/$(LIB) $(FINAL_LIB_INSTALL_DIR)
|
|
|
|
else
|
|
|
|
conditional_build:
|
|
@echo "Skipping $(LIB) (not configured)"
|
|
|
|
endif
|
|
|
|
|
|
clean: clean_legacy
|
|
rm -f $(FINAL_LIB_INSTALL_DIR)/$(LIB)
|
|
-mkdir -p objs
|
|
-$(MAKE) -C objs -f ../Makefile clean
|
|
rm -rf objs
|
|
|
|
# delete objects left over from old Makefile. (Not needed for new directory
|
|
# which started with split makefiles.)
|
|
clean_legacy:
|
|
rm -f *.o *.d $(LIB)
|
|
|
|
CONSUMER_RELEASE_BINARYONLY_PREPARE: binaryonly_prepare
|
|
|
|
binaryonly_prepare:
|
|
-mkdir -p objs
|
|
-$(MAKE) -C objs -f ../Makefile binaryonly_prepare
|
|
rm -rf objs
|
|
|
|
|
|
shell:
|
|
@echo "Entering makefile debug shell (type exit to exit) >>>"
|
|
@bash -i
|
|
@echo "exiting debug shell."
|