mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 16:02:36 +02:00
47 lines
884 B
Makefile
47 lines
884 B
Makefile
|
|
|
|
#GLOBAL_RELEASE_SCRIPT_NOTOUCH
|
|
|
|
|
|
ifneq ($(wildcard Makefile.fullsrc),)
|
|
|
|
include Makefile.fullsrc
|
|
|
|
else
|
|
|
|
EXE = bcmmcastctl
|
|
LN = bmc
|
|
dynamic: generic_exe_install
|
|
|
|
clean:
|
|
rm -f $(EXE)
|
|
rm -f $(INSTALL_DIR)/bin/$(LN)
|
|
|
|
ifneq ($(PREBUILT_BCMBIN),1)
|
|
bcmmcastctl:
|
|
cp $(EXE)_$(PROFILE).save $(EXE)
|
|
ln -sf $(EXE) $(INSTALL_DIR)/bin/$(LN)
|
|
else
|
|
bcmmcastctl:
|
|
cp -f $(TOP_PLATFORM)/$(shell pwd | sed 's/\(.*router-sysdep\/\)//')/$(PRBM_DIR)/$@ ./
|
|
endif
|
|
|
|
|
|
#
|
|
# Set our CommEngine directory (by splitting the pwd into two words
|
|
# at /userspace and taking the first word only).
|
|
# Then include the common defines under CommEngine.
|
|
#
|
|
|
|
CURR_DIR := $(shell pwd)
|
|
BUILD_DIR:=$(HND_SRC)
|
|
|
|
include $(BUILD_DIR)/make.common
|
|
endif
|
|
|
|
install: $(EXE)
|
|
install -m 755 $(EXE) $(INSTALL_DIR)/bin
|
|
$(STRIP) $(INSTALL_DIR)/bin/$(EXE)
|
|
mkdir -p $(INSTALL_DIR)/sbin
|
|
ln -sf ../bin/$(EXE) $(INSTALL_DIR)/sbin/$(EXE)
|
|
|