everything: shotgun attempt to put PROTO_WS and PROTO_WSS across core and in modules...
[sip-router] / Makefile.radius
1 #
2 # $Id$
3 #
4 #
5 # Radiusclient library detection comes here
6 #
7 # (To be included from Makefiles of radius related modules)
8 #
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.
12 #
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.
18 #
19
20 #
21 # Radiusclient-ng is often installed from tarballs so we
22 # need to look int /usr/local/lib as well
23 #
24 INCLUDES+=-I$(LOCALBASE)/include
25
26 ifeq ($(FREERADIUS),1)
27
28 # - freeradius-client library
29 DEFS+= -DUSE_FREERADIUS
30 RADIUSCLIENT_LIB=freeradius-client
31
32 else
33
34 # - radiusclient-ng v5 or v4 library
35 ifneq ($(radiusclient_ng), 4)
36
37 # radiusclient-ng 5+
38 # DEFS+=-DRADIUSCLIENT_NG_5P
39 RADIUSCLIENT_LIB=radiusclient-ng
40
41 else
42
43 DEFS+=-DRADIUSCLIENT_NG_4
44 RADIUSCLIENT_LIB=radiusclient
45
46 endif
47
48 endif
49
50 LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)