Make it possible to build w/o kafel and nl3 1.3
authorRobert Swiecki <robert@swiecki.net>
Mon, 13 Feb 2017 21:59:24 +0000 (22:59 +0100)
committerRobert Swiecki <robert@swiecki.net>
Mon, 13 Feb 2017 21:59:24 +0000 (22:59 +0100)
Makefile

index 4fa3ef237c08f5648c750076217d26bff0ef2aed..d4191514f0ee36d42199c0610e5f192ac3a5373b 100644 (file)
--- 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