summaryrefslogtreecommitdiff
path: root/package/wprobe/src/user/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/wprobe/src/user/Makefile')
-rw-r--r--package/wprobe/src/user/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/wprobe/src/user/Makefile b/package/wprobe/src/user/Makefile
new file mode 100644
index 0000000000..e10dfc0d24
--- /dev/null
+++ b/package/wprobe/src/user/Makefile
@@ -0,0 +1,21 @@
+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)