1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/xl2tpd/Makefile
2024-07-22 01:58:46 -03:00

63 lines
1.7 KiB
Makefile
Executable File

ROOTPATH=$(shell pwd)
NEW_VERSION=YES
ANTLRDIR = $(ROOTPATH)/antlr
LIBPCAP=libpcap
LIBPCAPDIR=$(ROOTPATH)/libpcap-1.7.4
LIBPCAPPREFIX=$(ROOTPATH)/libpcap_install
XL2TPD=xl2tpd
XL2TPDDIR=$(ROOTPATH)/xl2tpd-1.2.4
XL2TPDPREFIX=$(ROOTPATH)/xl2tpd_install
MTD-UTILS = mtd-utils
MTD-UTILSDIR = $(ROOTPATH)/mtd-utils-1.4.5
MTD-UTILSREFIX = $(ROOTPATH)/mtd-utils_install
INSTALLDIR =_install/usr/local
CTGWLIBROOT = $(ROOTPATH)/../../private
RM = rm -rf
MV = mv -f
CP = cp -fpR
all : $(XL2TPD) install
$(LIBPCAP):
cd $(LIBPCAPDIR) && ./configure --help
if [ -f $(LIBPCAPDIR)/_is_configure ] ; then \
echo "already configred..... "; \
else \
cd $(LIBPCAPDIR) && ./configure --host=mips-linux --target=mips-unknown-linux-uclibc --prefix=$(LIBPCAPPREFIX) --enable-shared --enable-static --disable-yydebug \
--with-pcap=linux --without-septel --without-dag --without-libnl --without-snf --disable-can --disable-canusb --disable-dbus --disable-bluetooth --enable-ipv6 && make && make install; \
touch $(LIBPCAPDIR)/_is_configure; \
fi
$(XL2TPD): $(LIBPCAP)
#cd $(XL2TPDDIR) && ./configure --help
if [ -f $(XL2TPDDIR)/_is_configure ] ; then \
echo "already configred..... "; \
else \
cd $(XL2TPDDIR) && make && make PREFIX=$(XL2TPDPREFIX) install; \
touch $(XL2TPDDIR)/_is_configure; \
fi
install:
# xl2tpd
cp $(XL2TPDPREFIX)/sbin/xl2tpd $(FILESYSTEM_DIR)/userfs/bin/
clean : $(XL2TPD)-clean
$(XL2TPD)-clean: $(LIBPCAP)-clean
- make -C $(XL2TPDDIR) clean distclean
- $(RM) $(XL2TPDDIR)/_is_configure
$(LIBPCAP)-clean:
- make -C $(LIBPCAPDIR) clean distclean
- $(RM) $(LIBPCAPDIR)/_is_configure
.PHONY : all $(CLASSPATH) $(JAMVM) clean $(JAMVM)-clean $(CLASSPATH)-clean