Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 7006 2007-04-19 12:06:39Z kaloz $
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=foxboard-utils
  10. PKG_VERSION:=1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=foxboard-utils.tar.bz2
  13. PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
  14. PKG_MD5SUM:=
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/foxboard-utils
  18. SECTION:=utils
  19. CATEGORY:=Base system
  20. TITLE:=Foxboard base tools
  21. DESCRIPTION:=\
  22. This package contains a collection of tools for configuring the foxboard gpio pins/leds
  23. URL:=http://www.acmesystems.it
  24. DEPENDS:=@LINUX_2_6_ETRAX
  25. endef
  26. define Build/Compile
  27. $(MAKE) -C $(PKG_BUILD_DIR) CFLAGS=$(TARTGET_CFLAGS) CC=$(TARGET_CC)
  28. $(MAKE) -C $(PKG_BUILD_DIR) PREFIX="$(PKG_INSTALL_DIR)" install
  29. endef
  30. define Package/foxboard-utils/install
  31. $(INSTALL_DIR) $(1)/
  32. $(CP) $(PKG_INSTALL_DIR)/* $(1)
  33. mkdir -p $(1)/www/cgi-bin
  34. cd $(1)/www/cgi-bin; ln -s ../../bin/editcgi.cgi .
  35. endef
  36. $(eval $(call BuildPackage,foxboard-utils))