Makefile.radius
b5a32e1a
 #
 # $Id$
 #
 #
 # Radiusclient library detection comes here
 #
 # (To be included from Makefiles of radius related modules)
 #
 # The purpose of this makefile is to perform radiusclient library
 # detection 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
 #
f072585d
 INCLUDES+=-I$(LOCALBASE)/include
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
 
 LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)