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,19 +0,0 @@
1
-# Kamailio build system
2
-# path config makefile
3
-#
4
-ifneq ($(makefile_dirs_included),1)
5
-
6
-override makefile_dirs_included:=1
7
-
8
-# modules directories
9
-# WARNING: - names must not conflict with any makefile variable or 
10
-#            target name
11
-#          - they should not contain '-' in them (portability: some exported
12
-#            var names might be derived from them and some shell do not 
13
-#            support '-' in variables)
14
-# makefile module related targets will be defined based on them:
15
-# install-$(1), install-$(1)-doc, $(1) a.s.o.
16
-# - old: modules_dirs?= modules modules_s modules_k
17
-modules_dirs?= modules
18
-
19
-endif
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,11 +1,6 @@
1
-# $Id$
2
-#
1
+# Kamailio build system
3 2
 # path config makefile
4 3
 #
5
-# History:
6
-# --------
7
-#  2009-03-27  initial version (andrei)
8
-
9 4
 ifneq ($(makefile_dirs_included),1)
10 5
 
11 6
 override makefile_dirs_included:=1
Browse code

Makefile.dirs: updated the list with module directories

Daniel-Constantin Mierla authored on 11/03/2013 14:57:31
Showing 1 changed files
... ...
@@ -18,6 +18,7 @@ override makefile_dirs_included:=1
18 18
 #            support '-' in variables)
19 19
 # makefile module related targets will be defined based on them:
20 20
 # install-$(1), install-$(1)-doc, $(1) a.s.o.
21
-modules_dirs?= modules modules_s modules_k
21
+# - old: modules_dirs?= modules modules_s modules_k
22
+modules_dirs?= modules
22 23
 
23 24
 endif
Browse code

Makefile.dirs: module_dirs can be set from command line

Daniel-Constantin Mierla authored on 04/10/2010 19:05:47
Showing 1 changed files
... ...
@@ -18,6 +18,6 @@ override makefile_dirs_included:=1
18 18
 #            support '-' in variables)
19 19
 # makefile module related targets will be defined based on them:
20 20
 # install-$(1), install-$(1)-doc, $(1) a.s.o.
21
-modules_dirs= modules modules_s modules_k
21
+modules_dirs?= modules modules_s modules_k
22 22
 
23 23
 endif
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
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+# $Id$
2
+#
3
+# path config makefile
4
+#
5
+# History:
6
+# --------
7
+#  2009-03-27  initial version (andrei)
8
+
9
+ifneq ($(makefile_dirs_included),1)
10
+
11
+override makefile_dirs_included:=1
12
+
13
+# modules directories
14
+# WARNING: - names must not conflict with any makefile variable or 
15
+#            target name
16
+#          - they should not contain '-' in them (portability: some exported
17
+#            var names might be derived from them and some shell do not 
18
+#            support '-' in variables)
19
+# makefile module related targets will be defined based on them:
20
+# install-$(1), install-$(1)-doc, $(1) a.s.o.
21
+modules_dirs= modules modules_s modules_k
22
+
23
+endif