41 lines
764 B
Makefile
41 lines
764 B
Makefile
#
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=udp-tunnel
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/udp-tunnel
|
|
SECTION:=utils
|
|
CATEGORY:=ROOter
|
|
SUBMENU:=Optional Applications
|
|
TITLE:=UDPTunnel
|
|
MAINTAINER:=Dairyman
|
|
endef
|
|
|
|
define Package/udp-tunnel/description
|
|
UDPTunnel
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall"
|
|
endef
|
|
|
|
define Package/udp-tunnel/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/udptunnel $(1)/sbin/udptunnel
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,udp-tunnel))
|