Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,55 @@
1
+# Kamailio build system
2
+#
3
+# Radiusclient library detection comes here
4
+#
5
+# (To be included from Makefiles of radius related modules)
6
+#
7
+# The purpose of this makefile is to perform RADIUS client library
8
+# selection (radiusclient-ng or freeradius-client) and setup
9
+# library and include paths in DEFS and LIBS variables.
10
+#
11
+# 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
+INCLUDES+=-I$(LOCALBASE)/include
23
+
24
+ifeq ($(FREERADIUS),1)
25
+
26
+# - freeradius-client library
27
+DEFS+= -DUSE_FREERADIUS
28
+RADIUSCLIENT_LIB=freeradius-client
29
+
30
+else
31
+ifeq ($(RADCLI),1)
32
+
33
+# - radcli library
34
+DEFS+= -DUSE_RADCLI
35
+RADIUSCLIENT_LIB=radcli
36
+
37
+else
38
+# - radiusclient-ng v5 or v4 library
39
+ifneq ($(radiusclient_ng), 4)
40
+
41
+# radiusclient-ng 5+
42
+# DEFS+=-DRADIUSCLIENT_NG_5P
43
+RADIUSCLIENT_LIB=radiusclient-ng
44
+
45
+else
46
+
47
+DEFS+=-DRADIUSCLIENT_NG_4
48
+RADIUSCLIENT_LIB=radiusclient
49
+
50
+endif
51
+endif
52
+
53
+endif
54
+
55
+LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)