mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
548478cdb2
SVN-Revision: 15050
22 lines
346 B
Makefile
22 lines
346 B
Makefile
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)
|