1 include ..
/Makefile.inc
3 CPPFLAGS
+= -I..
/kernel
6 ifneq ($(HOST_OS
),Linux
)
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
22 LIBS
= $(LIBNL
) $(LIBM
)
24 all: libwprobe.a wprobe-util
26 libwprobe.a
: wprobe-lib.o
32 $(CC
) $(WFLAGS
) -c
-o
$@
$(CPPFLAGS
) $(CFLAGS
) $(EXTRA_CFLAGS
) $<
34 wprobe-util
: wprobe-util.o wprobe-lib.o
35 $(CC
) -o
$@
$^
$(LDFLAGS
) $(LIBS
)
38 rm -f
*.o
*.a wprobe-util