mirror of https://github.com/sipwise/kamailio.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
# Kamailio build system
|
|
#
|
|
# Radiusclient library detection comes here
|
|
#
|
|
# (To be included from Makefiles of radius related modules)
|
|
#
|
|
# 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
|
|
# 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
|
|
#
|
|
INCLUDES+=-I$(LOCALBASE)/include
|
|
|
|
ifeq ($(FREERADIUS),1)
|
|
|
|
# - freeradius-client library
|
|
DEFS+= -DUSE_FREERADIUS
|
|
RADIUSCLIENT_LIB=freeradius-client
|
|
|
|
else
|
|
ifeq ($(RADCLI),1)
|
|
|
|
# - radcli library
|
|
DEFS+= -DUSE_RADCLI
|
|
RADIUSCLIENT_LIB=radcli
|
|
|
|
else
|
|
# - radiusclient-ng v5 or v4 library
|
|
ifneq ($(radiusclient_ng), 4)
|
|
|
|
# radiusclient-ng 5+
|
|
# DEFS+=-DRADIUSCLIENT_NG_5P
|
|
RADIUSCLIENT_LIB=radiusclient-ng
|
|
|
|
else
|
|
|
|
DEFS+=-DRADIUSCLIENT_NG_4
|
|
RADIUSCLIENT_LIB=radiusclient
|
|
|
|
endif
|
|
endif
|
|
|
|
endif
|
|
|
|
LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)
|