Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.1
  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. endef
  18. define Package/rssileds/description
  19. A small process written in C to update the signal-strength indicator LEDs
  20. endef
  21. define Build/Prepare
  22. mkdir -p $(PKG_BUILD_DIR)
  23. $(CP) ./src/* $(PKG_BUILD_DIR)/
  24. endef
  25. define Build/Configure
  26. endef
  27. define Build/Compile
  28. $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
  29. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
  30. endef
  31. define Package/rssileds/install
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,rssileds))