30351861 |
# Kamailio build system
|
b5a32e1a |
#
# Radiusclient library detection comes here
#
# (To be included from Makefiles of radius related modules)
#
|
942dedaf |
# The purpose of this makefile is to perform RADIUS client library
# selection (radiusclient-ng or freeradius-client) and setup
# library and include paths in DEFS and LIBS variables.
#
# In addition RADIUSCLIENT_NG_4 will be defined when
|
b5a32e1a |
# libradiusclient-ng version 4 is detected. That means the module
# should include radiusclient.h, otherwise radiusclient-ng.h
# should be included. Variable RADIUSCLIENT_LIB contains the
# name of the shared library.
#
#
# Radiusclient-ng is often installed from tarballs so we
# need to look int /usr/local/lib as well
#
|
f072585d |
INCLUDES+=-I$(LOCALBASE)/include
|
b5a32e1a |
|
942dedaf |
ifeq ($(FREERADIUS),1)
# - freeradius-client library
DEFS+= -DUSE_FREERADIUS
RADIUSCLIENT_LIB=freeradius-client
else
# - radiusclient-ng v5 or v4 library
|
b5a32e1a |
ifneq ($(radiusclient_ng), 4)
# radiusclient-ng 5+
# DEFS+=-DRADIUSCLIENT_NG_5P
RADIUSCLIENT_LIB=radiusclient-ng
else
DEFS+=-DRADIUSCLIENT_NG_4
RADIUSCLIENT_LIB=radiusclient
endif
|
9d24a262 |
|
942dedaf |
endif
|
9d24a262 |
LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)
|