# might not always be available, and the TARGETNAME from the previous
# target may stick around.
TARGETNAME :=
--include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk
+-include $(top_builddir)/src/lib/json/all.mk
TARGET :=
# Check the targetname defined by libfreeradius-json.mk
# might not always be available, and the TARGETNAME from the previous
# target may stick around.
TARGETNAME :=
--include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk
+-include $(top_builddir)/src/lib/json/all.mk
ifneq "${TARGETNAME}" ""
TARGETNAME := rlm_json
#
# Append SRC_CFLAGS and leave TGT_LDLIBS alone
#
-SRC_CFLAGS += -I$(top_builddir)/src/modules/rlm_json
+SRC_CFLAGS += -I$(top_builddir)/src/lib/json/
TGT_PREREQS := libfreeradius-json.a
#include <freeradius-devel/modules.h>
#include <freeradius-devel/map_proc.h>
#include <freeradius-devel/rad_assert.h>
+#include <freeradius-devel/json/json.h>
#include <ctype.h>
-#include "json.h"
#ifndef HAVE_JSON
# error "rlm_json should not be built unless json-c is available"
# Check to see if we have our internal library libfreeradius-json
# which in turn depends on json-c.
TARGETNAME :=
--include $(top_builddir)/src/modules/rlm_json/libfreeradius-json.mk
+-include $(top_builddir)/src/lib/json/all.mk
TARGET :=
# Add libfreeradius-json to the prereqs (so rlm_rest links to it)