From e38be346dc661e5fd7541a5c80632bae727236a6 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Mon, 13 Feb 2017 22:59:24 +0100 Subject: [PATCH] Make it possible to build w/o kafel and nl3 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4fa3ef2..d419151 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ ifdef DEBUG CFLAGS += -g -ggdb -gdwarf-4 endif -USE_KAFEL = yes +USE_KAFEL ?= yes ifneq ("$(wildcard kafel/include/kafel.h)","") ifeq ($(USE_KAFEL), yes) CFLAGS += -I./kafel/include/ -DUSE_KAFEL @@ -43,7 +43,7 @@ ifeq ($(USE_KAFEL), yes) endif endif -USE_NL3 = yes +USE_NL3 ?= yes ifeq ("$(wildcard /usr/include/libnl3/netlink/route/link/macvlan.h)","/usr/include/libnl3/netlink/route/link/macvlan.h") ifeq ($(USE_NL3), yes) CFLAGS += -DNSJAIL_NL3_WITH_MACVLAN -I/usr/include/libnl3 -- 2.34.1