Makefile (956B)
1 # 2 # Copyright (C) 2006-2015 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 include $(INCLUDE_DIR)/kernel.mk 10 11 PKG_NAME:=siit 12 PKG_VERSION:=1.2 13 PKG_RELEASE:=1 14 PKG_LICENSE:=GPLv2+ 15 16 include $(INCLUDE_DIR)/package.mk 17 18 define KernelPackage/siit 19 SUBMENU:=Network Devices 20 TITLE:=Stateless IP ICMP Translation Algorithm 21 DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)) 22 FILES:=$(PKG_BUILD_DIR)/siit.ko 23 AUTOLOAD:=$(call AutoLoad,50,siit) 24 MAINTAINER:=Vladimir Ulrich <admin@evl.su> 25 endef 26 27 include $(INCLUDE_DIR)/kernel-defaults.mk 28 29 define KernelPackage/siit/description 30 Stateless IP ICMP Translation Algorithm 31 endef 32 33 define Build/Prepare 34 mkdir -p $(PKG_BUILD_DIR) 35 cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/ 36 endef 37 38 define Build/Compile 39 $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules 40 endef 41 42 $(eval $(call KernelPackage,siit))