[package] fix wrong paths after r18955.
[openwrt.git] / package / wprobe / src / user / Makefile
1 include ../Makefile.inc
2
3 CPPFLAGS += -I../kernel
4 LDFLAGS =
5
6 ifneq ($(HOST_OS),Linux)
7 USE_LIBNL_MICRO=1
8 else
9 USE_LIBNL_MICRO=
10 endif
11
12 ifeq ($(USE_LIBNL_MICRO),1)
13 LIBNL_PREFIX = /usr/local
14 LIBNL = $(LIBNL_PREFIX)/lib/libnl-micro.a
15 CPPFLAGS += -I$(LIBNL_PREFIX)/include/libnl-micro
16 EXTRA_CFLAGS += -DNO_LOCAL_ACCESS
17 else
18 LIBNL = -lnl
19 endif
20
21 LIBM = -lm
22 LIBS = $(LIBNL) $(LIBM)
23
24 all: libwprobe.a wprobe-util
25
26 libwprobe.a: wprobe-lib.o
27 rm -f $@
28 $(AR) rcu $@ $^
29 $(RANLIB) $@
30
31 %.o: %.c
32 $(CC) $(WFLAGS) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $<
33
34 wprobe-util: wprobe-util.o wprobe-lib.o
35 $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
36
37 clean:
38 rm -f *.o *.a wprobe-util
This page took 0.042634 seconds and 5 git commands to generate.