Browse code

- makefile containing radiusclient related stuff

Jan Janak authored on 17/06/2005 11:24:55
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,36 @@
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
+#
19
+# Radiusclient-ng is often installed from tarballs so we
20
+# need to look int /usr/local/lib as well
21
+#
22
+DEFS+=-I$(LOCALBASE)/include
23
+LIBS+=-L$(LOCALBASE)/lib
24
+
25
+ifneq ($(radiusclient_ng), 4)
26
+
27
+# radiusclient-ng 5+
28
+# DEFS+=-DRADIUSCLIENT_NG_5P
29
+RADIUSCLIENT_LIB=radiusclient-ng
30
+
31
+else
32
+
33
+DEFS+=-DRADIUSCLIENT_NG_4
34
+RADIUSCLIENT_LIB=radiusclient
35
+
36
+endif