Makefile 920 B

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