From 85351febb8a5797928316efd938aabec9dcd7500 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 3 Aug 2017 00:21:07 +0200 Subject: [PATCH] make libconfig optional but keep it for backwards compatability with old config files --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ebbc86604..644b34ec3 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,9 @@ V ?= 2 # Platform PLATFORM ?= $(shell uname) +# Enable supprot for libconfig configuration files +WITH_CONFIG ?= 1 + # Common flags LDLIBS = CFLAGS += -I. -Iinclude -Iinclude/villas @@ -116,7 +119,11 @@ else endif # pkg-config dependencies -PKGS = libconfig openssl +PKGS = openssl jansson + +ifeq ($(WITH_CONFIG),1) + PKGS += libconfig +endif ######## Targets ########