Makefile.radius 905 B

12345678910111213141516171819202122232425262728293031323334353637
  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 radiusclient library
  10. # detection and setup library and include paths in DEFS and LIBS
  11. # variables. In addition RADIUSCLIENT_NG_4 will be defined when
  12. # libradiusclient-ng version 4 is detected. That means the module
  13. # should include radiusclient.h, otherwise radiusclient-ng.h
  14. # should be included. Variable RADIUSCLIENT_LIB contains the
  15. # name of the shared library.
  16. #
  17. #
  18. # Radiusclient-ng is often installed from tarballs so we
  19. # need to look int /usr/local/lib as well
  20. #
  21. INCLUDES+=-I$(LOCALBASE)/include
  22. ifneq ($(radiusclient_ng), 4)
  23. # radiusclient-ng 5+
  24. # DEFS+=-DRADIUSCLIENT_NG_5P
  25. RADIUSCLIENT_LIB=radiusclient-ng
  26. else
  27. DEFS+=-DRADIUSCLIENT_NG_4
  28. RADIUSCLIENT_LIB=radiusclient
  29. endif
  30. LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)