- 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>
14 lines
253 B
Makefile
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
|