Makefile 972 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. # $Id: Makefile 10203 2008-01-15 03:25:11Z matteo $
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=siit
  11. PKG_VERSION:=1.1
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/siit
  14. SUBMENU:=Network Devices
  15. TITLE:=Stateless IP ICMP Translation Algorithm
  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))