Makefile 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:=@!LINUX_2_6_31
  16. FILES:=$(PKG_BUILD_DIR)/siit.$(LINUX_KMOD_SUFFIX)
  17. AUTOLOAD:=$(call AutoLoad,50,siit)
  18. endef
  19. define KernelPackage/siit/description
  20. Stateless IP ICMP Translation Algorithm
  21. endef
  22. define Build/Prepare
  23. mkdir -p $(PKG_BUILD_DIR)
  24. cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/
  25. endef
  26. define Build/Compile
  27. $(MAKE) -C $(LINUX_DIR) \
  28. CROSS_COMPILE="$(TARGET_CROSS)" \
  29. ARCH="$(LINUX_KARCH)" \
  30. SUBDIRS="$(PKG_BUILD_DIR)" \
  31. KERNELDIR=$(LINUX_DIR) \
  32. CC="$(TARGET_CC)" \
  33. modules
  34. endef
  35. $(eval $(call KernelPackage,siit))