summaryrefslogtreecommitdiff
path: root/dde_pcnet32
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-18 22:19:45 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-18 22:41:17 +0000
commit246a095c20f4ce6683cffbc7d512dc91e54a0ab6 (patch)
tree555eef2de9d106ff4bb344d04a775f6c8b0ae24d /dde_pcnet32
parent8665456d404f49b46bb9ba431b207797bdc9b35a (diff)
include bpf in link
Diffstat (limited to 'dde_pcnet32')
-rw-r--r--dde_pcnet32/Makeconf.local6
-rw-r--r--dde_pcnet32/Makefile2
2 files changed, 7 insertions, 1 deletions
diff --git a/dde_pcnet32/Makeconf.local b/dde_pcnet32/Makeconf.local
index 5b2e9082..44f70ab8 100644
--- a/dde_pcnet32/Makeconf.local
+++ b/dde_pcnet32/Makeconf.local
@@ -22,6 +22,12 @@ ifeq ($(strip $(has_libslab)),)
libslab_path := $(BUILDDIR)/libhurd-slab/libhurd-slab.a
endif
+libbpf_path := ../libbpf/libbpf.a
+has_libbpf := $(wildcard $(libbpf_path))
+ifeq ($(strip $(has_libbpf)),)
+ libbpf_path := $(BUILDDIR)/libbpf/libbpf.a
+endif
+
DDEKITLIBDIR = $(PKGDIR)/../libddekit/
DDEKITINCDIR = $(PKGDIR)/../libddekit/include
DDE26LIBDIR = $(PKGDIR)/lib/src
diff --git a/dde_pcnet32/Makefile b/dde_pcnet32/Makefile
index e2aa5338..5b45cc14 100644
--- a/dde_pcnet32/Makefile
+++ b/dde_pcnet32/Makefile
@@ -7,7 +7,7 @@ TARGET = dde_pcnet32
SRC_C = main.c pcnet32.c
-LIBS += $(libmachdev_path) -ldde_linux26.o -ldde_linux26_net $(libddekit_path) -lfshelp -ltrivfs -lpciaccess -lthreads -lshouldbeinlibc -lports $(libslab_path) -lbpf
+LIBS += $(libmachdev_path) -ldde_linux26.o -ldde_linux26_net $(libddekit_path) -lfshelp -ltrivfs -lpciaccess -lthreads -lshouldbeinlibc -lports $(libslab_path) $(libbpf_path)
CFLAGS += -g -I$(PKGDIR)/include -I../libmachdev
# DDE configuration