Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2011-2012 Daniel Golle <[email protected]>
  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. PKG_NAME:=rssileds
  9. PKG_VERSION:=0.2
  10. PKG_RELEASE:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/rssileds
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=RSSI real-time LED indicator
  16. DEPENDS:=+libiwinfo
  17. MAINTAINER:=Daniel Golle <[email protected]>
  18. endef
  19. define Package/rssileds/description
  20. A small process written in C to update the signal-strength indicator LEDs
  21. endef
  22. define Build/Prepare
  23. mkdir -p $(PKG_BUILD_DIR)
  24. $(CP) ./src/* $(PKG_BUILD_DIR)/
  25. endef
  26. define Build/Configure
  27. endef
  28. define Build/Compile
  29. $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
  30. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
  31. endef
  32. define Package/rssileds/install
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
  37. endef
  38. $(eval $(call BuildPackage,rssileds))