2 # Copyright (C) 2011-2012 Daniel Golle <dgolle@allnet.de>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/rssileds
20 TITLE
:=RSSI real-time LED indicator
22 MAINTAINER
:=Daniel Golle
<dgolle@allnet.de
>
25 define Package
/rssileds
/description
26 A small process written in C to update the signal-strength indicator LEDs
29 define Build
/Configure
32 TARGET_LDFLAGS
+= -liwinfo
-luci
-lubox
-lnl-tiny
35 $(TARGET_CC
) $(TARGET_CFLAGS
) $(TARGET_CPPFLAGS
) -Wall \
36 -o
$(PKG_BUILD_DIR
)/rssileds
$(PKG_BUILD_DIR
)/rssileds.c
$(TARGET_LDFLAGS
)
39 define Package
/rssileds
/install
40 $(INSTALL_DIR
) $(1)/etc
/init.d
41 $(INSTALL_BIN
) .
/files
/rssileds.init
$(1)/etc
/init.d
/rssileds
42 $(INSTALL_DIR
) $(1)/usr
/sbin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rssileds
$(1)/usr
/sbin
/
46 $(eval
$(call BuildPackage
,rssileds
))