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