1 # Kamailio build system
3 # Radiusclient library detection comes here
5 # (To be included from Makefiles of radius related modules)
7 # The purpose of this makefile is to perform RADIUS client library
8 # selection (radiusclient-ng or freeradius-client) and setup
9 # library and include paths in DEFS and LIBS variables.
11 # In addition RADIUSCLIENT_NG_4 will be defined when
12 # libradiusclient-ng version 4 is detected. That means the module
13 # should include radiusclient.h, otherwise radiusclient-ng.h
14 # should be included. Variable RADIUSCLIENT_LIB contains the
15 # name of the shared library.
19 # Radiusclient-ng is often installed from tarballs so we
20 # need to look int /usr/local/lib as well
22 INCLUDES+=-I$(LOCALBASE)/include
24 ifeq ($(FREERADIUS),1)
26 # - freeradius-client library
27 DEFS+= -DUSE_FREERADIUS
28 RADIUSCLIENT_LIB=freeradius-client
35 RADIUSCLIENT_LIB=radcli
38 # - radiusclient-ng v5 or v4 library
39 ifneq ($(radiusclient_ng), 4)
42 # DEFS+=-DRADIUSCLIENT_NG_5P
43 RADIUSCLIENT_LIB=radiusclient-ng
47 DEFS+=-DRADIUSCLIENT_NG_4
48 RADIUSCLIENT_LIB=radiusclient
55 LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)