Makefile 900 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=siit
  10. PKG_VERSION:=1.1
  11. PKG_RELEASE:=2
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/siit
  14. SUBMENU:=Network Devices
  15. TITLE:=Stateless IP ICMP Translation Algorithm
  16. DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)||BROKEN)
  17. FILES:=$(PKG_BUILD_DIR)/siit.ko
  18. AUTOLOAD:=$(call AutoLoad,50,siit)
  19. endef
  20. include $(INCLUDE_DIR)/kernel-defaults.mk
  21. define KernelPackage/siit/description
  22. Stateless IP ICMP Translation Algorithm
  23. endef
  24. define Build/Prepare
  25. mkdir -p $(PKG_BUILD_DIR)
  26. cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/
  27. endef
  28. define Build/Compile
  29. $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules
  30. endef
  31. $(eval $(call KernelPackage,siit))