mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 07:51:46 +02:00
83 lines
1.7 KiB
Makefile
83 lines
1.7 KiB
Makefile
#
|
|
# In most cases, you only need to modify this first section.
|
|
#
|
|
EXE = wdtctl
|
|
OBJS = wdtctl.o
|
|
|
|
|
|
all dynamic install: $(EXE) generic_exe_install
|
|
|
|
clean: generic_clean
|
|
rm -f $(INSTALL_DIR)/bin/$(EXE)
|
|
|
|
|
|
|
|
#
|
|
# 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
|
|
|
|
ifneq ($(strip $(BRCM_VOICE_SUPPORT)),)
|
|
include $(BUILD_DIR)/make.voice
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
# Public apps are allowed to include header files from the
|
|
# public directory.
|
|
#
|
|
# WARNING: Do not modify this section unless you understand the
|
|
# license implications of what you are doing.
|
|
#
|
|
ALLOWED_INCLUDE_PATHS := -I.\
|
|
-I$(BUILD_DIR)/userspace/public/include \
|
|
-I$(BUILD_DIR)/userspace/public/include/$(OALDIR)
|
|
|
|
|
|
|
|
#
|
|
# Public libs are allowed to link with libraries from the
|
|
# public directory.
|
|
#
|
|
# WARNING: Do not modify this section unless you understand the
|
|
# license implications of what you are doing.
|
|
#
|
|
ALLOWED_LIB_DIRS := /lib:/lib/public
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Implicit rule will make the .c into a .o
|
|
# Implicit rule is $(CC) -c $(CPPFLAGS) $(CFLAGS)
|
|
# See Section 10.2 of Gnu Make manual
|
|
#
|
|
ifneq ($(PREBUILT_BCMBIN),1)
|
|
$(EXE): $(OBJS)
|
|
$(CC) -o $@ $(OBJS) -Wl,-rpath,$(CMS_LIB_RPATH) $(CMS_LIB_PATH) $(LIBS)
|
|
else
|
|
$(EXE):
|
|
cp -f $(TOP_PLATFORM)/$(shell pwd | sed 's/\(.*router-sysdep\/\)//')/$(PRBM_DIR)/$@ ./
|
|
endif
|
|
|
|
|
|
#
|
|
# Include the rule for making dependency files.
|
|
# The '-' in front of the second include suppresses
|
|
# error messages when make cannot find the .d files.
|
|
# It will just regenerate them.
|
|
# See Section 4.14 of Gnu Make.
|
|
#
|
|
|
|
include $(BUILD_DIR)/make.deprules
|
|
|
|
-include $(OBJS:.o=.d)
|
|
|
|
|