1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 00:49:33 +02:00
openwrt-xburst/package/wprobe/src/user/Makefile

22 lines
346 B
Makefile
Raw Normal View History

CFLAGS = -O2
CPPFLAGS ?= -I../kernel
WFLAGS = -Wall -Werror
LDFLAGS =
LIBNL = -lnl
LIBM = -lm
LIBS = $(LIBNL) $(LIBM)
all: libwprobe.a wprobe-info
libwprobe.a: wprobe.o
rm -f $@
$(AR) rcu $@ $^
$(RANLIB) $@
%.o: %.c
$(CC) $(WFLAGS) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<
wprobe-info: wprobe-info.o wprobe.o
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)