luci/modules/luci-mod-status/src/Makefile
Jo-Philipp Wich 8b1d831935 luci-mod-status: refactor luci-bwc
- Read interface statistics from /sys/class/net/
 - Discover all wireless interfaces, not just specifically named ones

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-20 18:55:05 +01:00

14 lines
253 B
Makefile

%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -Wall -c -o $@ $<
clean:
rm -f luci-bwc *.o
luci-bwc: luci-bwc.o
$(CC) $(LDFLAGS) -o $@ $^ -ldl
compile: luci-bwc
install: compile
mkdir -p $(DESTDIR)/usr/bin
cp luci-bwc $(DESTDIR)/usr/bin/luci-bwc