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
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-# Kamailio build system
2
-#
3
-# common Makefile variables 
4
-# (source files, objs, etc)
5
-
6
-
7
-#
8
-# expects: auto_gen defined
9
-#
10
-# defines: sources, objs, depends
11
-#
12
-
13
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
14
-		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
15
-		$(wildcard parser/contact/*.c) $(wildcard db/*.c) \
16
-		$(wildcard parser/sdp/*.c) \
17
-		$(wildcard rand/*.c) $(wildcard rand/isaac/*.c) ) \
18
-		$(wildcard cfg/*.c) $(auto_gen)
19
-ifeq ($(CORE_TLS), 1)
20
-	sources+= $(wildcard tls/*.c)
21
-endif
22
-objs=$(sources:.c=.o)
23
-extra_objs=
24
-depends=$(sources:.c=.d)
25
-cmodules=
26
-static_modules=
27
-static_modules_path=
Browse code

build system: Remove SVN ID and history

Olle E. Johansson authored on 10/01/2015 07:57:18
Showing 1 changed files
... ...
@@ -1,5 +1,4 @@
1
-#
2
-# $Id$
1
+# Kamailio build system
3 2
 #
4 3
 # common Makefile variables 
5 4
 # (source files, objs, etc)
Browse code

build system: support for multiple modules dirs

Multiple modules directories are now supported.
The list of the modules directories is in Makefile.dirs in
$(modules_dirs).
Name restrictions: the names must not match any makefile variable name
and they shouldn't contain any '-' char.

The modules and modules doc/READMEs will be installed in separate dirs
(e.g. for modules_dirs="modules modules_s modules_k" , the modules
will be installed in .../lib/ser/modules , ...lib/ser/modules_s
and ...lib/ser/modules_k).
The module man pages will all be installed in the same man dir
(but so far only some ser modules have man pages so we should be
safe).

New make targets:
every-module - make all the modules in all the module dirs
install-every-module - like above, but install
install-every-module-doc
install-every-module-man

Targets dependent on $(modules_dirs) content:
$(m), $(m)-doc, $(m)-readme, $(m)-man, install-$(m),
install-$(m)-doc, install-$(m)-man.

E.g.: for modules_dirs=modules modules_k modules_s
make modules - make all modules in the directory "modules".
make modules_k - make all the modules in the directory modules_k.
make every-module - make all the modules in the directories
modules, modules_k and modules_s.
make install-modules_s - install all the modules in the directory
modules_s.

Andrei Pelinescu-Onciul authored on 27/03/2009 19:44:36
Showing 1 changed files
... ...
@@ -23,6 +23,6 @@ endif
23 23
 objs=$(sources:.c=.o)
24 24
 extra_objs=
25 25
 depends=$(sources:.c=.d)
26
-modules=
26
+cmodules=
27 27
 static_modules=
28 28
 static_modules_path=
Browse code

Compile also the files in parser/sdp

Jan Janak authored on 24/03/2009 19:04:18
Showing 1 changed files
... ...
@@ -14,6 +14,7 @@
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15 15
 		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16 16
 		$(wildcard parser/contact/*.c) $(wildcard db/*.c) \
17
+		$(wildcard parser/sdp/*.c) \
17 18
 		$(wildcard rand/*.c) $(wildcard rand/isaac/*.c) ) \
18 19
 		$(wildcard cfg/*.c) $(auto_gen)
19 20
 ifeq ($(CORE_TLS), 1)
Browse code

Let the config framework compiled together with SER core

Miklos Tirpak authored on 05/12/2007 15:32:55
Showing 1 changed files
... ...
@@ -14,7 +14,8 @@
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15 15
 		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16 16
 		$(wildcard parser/contact/*.c) $(wildcard db/*.c) \
17
-		$(wildcard rand/*.c) $(wildcard rand/isaac/*.c) ) $(auto_gen)
17
+		$(wildcard rand/*.c) $(wildcard rand/isaac/*.c) ) \
18
+		$(wildcard cfg/*.c) $(auto_gen)
18 19
 ifeq ($(CORE_TLS), 1)
19 20
 	sources+= $(wildcard tls/*.c)
20 21
 endif
Browse code

- added ISAAC, Bob Jenkins's fast pseudo-random generator and some wrapper arround it (see http://www.burtleburtle.net/bob/rand/isaacafa.html)

Andrei Pelinescu-Onciul authored on 14/06/2007 23:23:47
Showing 1 changed files
... ...
@@ -13,7 +13,8 @@
13 13
 
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15 15
 		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16
-		$(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
16
+		$(wildcard parser/contact/*.c) $(wildcard db/*.c) \
17
+		$(wildcard rand/*.c) $(wildcard rand/isaac/*.c) ) $(auto_gen)
17 18
 ifeq ($(CORE_TLS), 1)
18 19
 	sources+= $(wildcard tls/*.c)
19 20
 endif
Browse code

- tls hooks support: special tls hooks added in core that allow a module or core part to provide a tls implementation. Support for the old in-core tls compile options is preserved (but one can compile with either tls hooks support or tls-in-core support, not with both in the same time). Changes were kept to a minimum. - Makefiles: make TLS=1 deprecated, use instead make TLS_HOOKS=1 or make CORE_TLS=1 (if in-core tls support is needed). Added TLS_EXTRA_LIBS (e.g. make CORE_TLS=1 TLS_EXTRA_LIBS="-lz -lkrb5").

Andrei Pelinescu-Onciul authored on 10/02/2007 18:52:48
Showing 1 changed files
... ...
@@ -14,7 +14,7 @@
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15 15
 		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16 16
 		$(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
17
-ifneq ($(TLS),)
17
+ifeq ($(CORE_TLS), 1)
18 18
 	sources+= $(wildcard tls/*.c)
19 19
 endif
20 20
 objs=$(sources:.c=.o)
Browse code

- cleaned up examples.bak (examples had no g write permissions, I had to mv it to examples.bak & cp examples.bak to examples; chmod g+w because the examples owner was "ser") - undoed some tls stuff

Andrei Pelinescu-Onciul authored on 30/06/2003 16:23:36
Showing 1 changed files
... ...
@@ -14,6 +14,9 @@
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15 15
 		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16 16
 		$(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
17
+ifneq ($(TLS),)
18
+	sources+= $(wildcard tls/*.c)
19
+endif
17 20
 objs=$(sources:.c=.o)
18 21
 extra_objs=
19 22
 depends=$(sources:.c=.d)
Browse code

- big makefile changes - debian fixes (works like a charm now) - ipaddr2he bug fix - changes rpm specs - modified the tar makefile target - new make vars: basedir, cfg-target, modules-target - cfg. file modified on the fly (module-path=modules-target) - ser default cfg. file=cfg-target - etc.

Andrei Pelinescu-Onciul authored on 25/09/2002 19:20:26
Showing 1 changed files
... ...
@@ -11,7 +11,9 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard parser/digest/*.c) $(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) \
15
+		$(wildcard parser/*.c) $(wildcard parser/digest/*.c) \
16
+		$(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
15 17
 objs=$(sources:.c=.o)
16 18
 extra_objs=
17 19
 depends=$(sources:.c=.d)
Browse code

*** empty log message ***

Jan Janak authored on 15/08/2002 12:20:16
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard parser/digest/*.c) $(wildcard db/*.c) ) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard parser/digest/*.c) $(wildcard parser/contact/*.c) $(wildcard db/*.c) ) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
Browse code

*** empty log message ***

Jan Janak authored on 09/08/2002 12:13:05
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard db/*.c) ) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard parser/digest/*.c) $(wildcard db/*.c) ) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
Browse code

database module interface moved.

Jan Janak authored on 09/07/2002 09:08:25
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) ) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) $(wildcard db/*.c) ) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
Browse code

TM callbacks, acc, flags

Jiri Kuthan authored on 13/05/2002 01:15:40
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) ) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) $(wildcard parser/*.c) ) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
Browse code

- fixed makefile mess

Andrei Pelinescu-Onciul authored on 20/02/2002 14:57:14
Showing 1 changed files
... ...
@@ -16,5 +16,5 @@ objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
18 18
 modules=
19
-static_modules=tm
19
+static_modules=
20 20
 static_modules_path=
Browse code

minor fix in build_res_f_req

Jiri Kuthan authored on 19/02/2002 22:38:36
Showing 1 changed files
... ...
@@ -16,5 +16,5 @@ objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
18 18
 modules=
19
-static_modules=
19
+static_modules=tm
20 20
 static_modules_path=
Browse code

- updated Makefiles ( gcc-3.0 specific options, arch. specific defines section, a.s.o) - fixed gcc-3.0 warnings - added f_malloc, an even faster malloc

Andrei Pelinescu-Onciul authored on 11/02/2002 17:56:22
Showing 1 changed files
... ...
@@ -16,3 +16,5 @@ objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
18 18
 modules=
19
+static_modules=
20
+static_modules_path=
Browse code

performance and bug fixes

Jiri Kuthan authored on 07/01/2002 04:39:49
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 # defines: sources, objs, depends
12 12
 #
13 13
 
14
-sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen)
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c) $(wildcard mem/*.c) ) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
Browse code

- added module static link option

Andrei Pelinescu-Onciul authored on 13/12/2001 03:21:09
Showing 1 changed files
... ...
@@ -13,5 +13,6 @@
13 13
 
14 14
 sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen)
15 15
 objs=$(sources:.c=.o)
16
+extra_objs=
16 17
 depends=$(sources:.c=.d)
17 18
 modules=
Browse code

- updated INSTALL w/ more info on building ser - splited Makefile in Makefile, Makefile.sources, Makefile.defs, Makefile.rules, - added Makefile.modules (included by each an every module) - fixed a warning in textops - updated all module Makefile to use Makefile.modules

Andrei Pelinescu-Onciul authored on 08/12/2001 22:06:27
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+#
2
+# $Id$
3
+#
4
+# common Makefile variables 
5
+# (source files, objs, etc)
6
+
7
+
8
+#
9
+# expects: auto_gen defined
10
+#
11
+# defines: sources, objs, depends
12
+#
13
+
14
+sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen)
15
+objs=$(sources:.c=.o)
16
+depends=$(sources:.c=.d)
17
+modules=