Makefile 898 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2006 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. include $(INCLUDE_DIR)/package.mk
  12. define KernelPackage/siit
  13. SUBMENU:=Network Devices
  14. TITLE:=Stateless IP ICMP Translation Algorithm
  15. DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)||BROKEN)
  16. FILES:=$(PKG_BUILD_DIR)/siit.$(LINUX_KMOD_SUFFIX)
  17. AUTOLOAD:=$(call AutoLoad,50,siit)
  18. endef
  19. include $(INCLUDE_DIR)/kernel-defaults.mk
  20. define KernelPackage/siit/description
  21. Stateless IP ICMP Translation Algorithm
  22. endef
  23. define Build/Prepare
  24. mkdir -p $(PKG_BUILD_DIR)
  25. cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/
  26. endef
  27. define Build/Compile
  28. $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules
  29. endef
  30. $(eval $(call KernelPackage,siit))