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,36 +0,0 @@
1
-#  $Id$
2
-#
3
-#  libs makefile
4
-#
5
-# This makefile multiplexes the original goal to all the libraries listed in 
6
-# SUBDIRS.
7
-#
8
-
9
-
10
-#SUBDIRS=binrpc cds xcap presence shm_regex
11
-
12
-SUBDIRS=$(filter-out CVS doc $(lib_exclude), $(strip \
13
-			$(patsubst %/Makefile,%,$(wildcard */Makefile))))
14
-
15
-.PHONY: subdirs $(SUBDIRS) 
16
-
17
-# clean install tags proper
18
-
19
-
20
-# we need sub_goals without 'all' target
21
-sub_goals = $(patsubst all,,$(MAKECMDGOALS))
22
-
23
-subdirs: $(SUBDIRS)
24
-
25
-$(SUBDIRS):	
26
-			-@echo "Making $(sub_goals) in $@" ; $(MAKE) $(sub_goals) -C $@
27
-
28
-COREPATH=..
29
-include ../Makefile.targets
30
-
31
-all:	subdirs
32
-
33
-$(clean_targets): subdirs
34
-
35
-install:	subdirs
36
-
Browse code

makefiles: minor COREPATH fixes

- COREPATH must now be always defined because of the longer makefile
include chain.

Andrei Pelinescu-Onciul authored on 23/04/2009 13:45:39
Showing 1 changed files
... ...
@@ -25,6 +25,7 @@ subdirs: $(SUBDIRS)
25 25
 $(SUBDIRS):	
26 26
 			-@echo "Making $(sub_goals) in $@" ; $(MAKE) $(sub_goals) -C $@
27 27
 
28
+COREPATH=..
28 29
 include ../Makefile.targets
29 30
 
30 31
 all:	subdirs
Browse code

makefiles: fixes and speed-ups

- make clean, proper, realclean, distclean and maintainer-clean
will work on all the libs in the lib/ directory.
- clean, proper, realclean, distclean and maintainer-clean targets
split into more specific targets: local-clean, clean-modules,
clean-libs, clean-utils (and the same for the others) => make
proper & friends depend now only on the really needed parts =>
much faster.
- doc directories are entered only if a Makefile is present.
- make maintainer-clean properly deletes the config and the
modules list at the end (it doesn't recreate it).

Andrei Pelinescu-Onciul authored on 22/04/2009 13:46:30
Showing 1 changed files
... ...
@@ -7,7 +7,10 @@
7 7
 #
8 8
 
9 9
 
10
-SUBDIRS=binrpc cds xcap presence shm_regex
10
+#SUBDIRS=binrpc cds xcap presence shm_regex
11
+
12
+SUBDIRS=$(filter-out CVS doc $(lib_exclude), $(strip \
13
+			$(patsubst %/Makefile,%,$(wildcard */Makefile))))
11 14
 
12 15
 .PHONY: subdirs $(SUBDIRS) 
13 16
 
... ...
@@ -22,11 +25,11 @@ subdirs: $(SUBDIRS)
22 25
 $(SUBDIRS):	
23 26
 			-@echo "Making $(sub_goals) in $@" ; $(MAKE) $(sub_goals) -C $@
24 27
 
25
-all:	subdirs
28
+include ../Makefile.targets
26 29
 
27
-proper:	clean
30
+all:	subdirs
28 31
 
29
-clean:	subdirs
32
+$(clean_targets): subdirs
30 33
 
31 34
 install:	subdirs
32 35
 
Browse code

Wrapper functions for regcomp, regexec, regfree, and regerror using shared memory allocators instead of libc malloc/realloc/free. Check the README file for more details.

Miklos Tirpak authored on 03/04/2009 13:03:46
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 
10
-SUBDIRS=binrpc cds xcap presence
10
+SUBDIRS=binrpc cds xcap presence shm_regex
11 11
 
12 12
 .PHONY: subdirs $(SUBDIRS) 
13 13
 
Browse code

- switched all the ser libraries to the new ser lib build system

Andrei Pelinescu-Onciul authored on 08/05/2007 08:30:40
Showing 1 changed files
... ...
@@ -1,15 +1,11 @@
1
-# variables to change
1
+#  $Id$
2
+#
3
+#  libs makefile
4
+#
5
+# This makefile multiplexes the original goal to all the libraries listed in 
6
+# SUBDIRS.
7
+#
2 8
 
3
-INCLUDES += -I$(CURDIR)
4
-LIBS     += -L$(CURDIR)/cds -L$(CURDIR)/qsa
5
-DEFS     += -Wall
6
-
7
-####################################
8
-# make rules
9
-
10
-export LIBS
11
-export DEFS
12
-export INCLUDES
13 9
 
14 10
 SUBDIRS=binrpc cds xcap presence
15 11
 
... ...
@@ -17,10 +13,14 @@ SUBDIRS=binrpc cds xcap presence
17 13
 
18 14
 # clean install tags proper
19 15
 
20
-subdirs:	$(SUBDIRS)
16
+
17
+# we need sub_goals without 'all' target
18
+sub_goals = $(patsubst all,,$(MAKECMDGOALS))
19
+
20
+subdirs: $(SUBDIRS)
21 21
 
22 22
 $(SUBDIRS):	
23
-			@echo "Making $(MAKECMDGOALS) in $@" ; $(MAKE) $(MAKECMDGOALS) -C $@
23
+			-@echo "Making $(sub_goals) in $@" ; $(MAKE) $(sub_goals) -C $@
24 24
 
25 25
 all:	subdirs
26 26
 
Browse code

added support for binrpc library

Vladimir Marek authored on 06/02/2007 08:04:03
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@ export LIBS
11 11
 export DEFS
12 12
 export INCLUDES
13 13
 
14
-SUBDIRS=cds xcap presence
14
+SUBDIRS=binrpc cds xcap presence
15 15
 
16 16
 .PHONY: subdirs $(SUBDIRS) 
17 17
 
Browse code

- improved cleanup of pa, rls and libs - corrected error in watcherinfo authorization

Vaclav Kubart authored on 24/11/2005 15:34:03
Showing 1 changed files
... ...
@@ -2,11 +2,13 @@
2 2
 
3 3
 INCLUDES += -I$(CURDIR)
4 4
 LIBS     += -L$(CURDIR)/cds -L$(CURDIR)/qsa
5
+DEFS     += -Wall
5 6
 
6 7
 ####################################
7 8
 # make rules
8 9
 
9 10
 export LIBS
11
+export DEFS
10 12
 export INCLUDES
11 13
 
12 14
 SUBDIRS=cds xcap presence
Browse code

Added a set of shared libraries with useful functions and common data structures. Short description is in lib/README, more documentation will be added soon.

Vaclav Kubart authored on 25/10/2005 14:10:16
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+# variables to change
2
+
3
+INCLUDES += -I$(CURDIR)
4
+LIBS     += -L$(CURDIR)/cds -L$(CURDIR)/qsa
5
+
6
+####################################
7
+# make rules
8
+
9
+export LIBS
10
+export INCLUDES
11
+
12
+SUBDIRS=cds xcap presence
13
+
14
+.PHONY: subdirs $(SUBDIRS) 
15
+
16
+# clean install tags proper
17
+
18
+subdirs:	$(SUBDIRS)
19
+
20
+$(SUBDIRS):	
21
+			@echo "Making $(MAKECMDGOALS) in $@" ; $(MAKE) $(MAKECMDGOALS) -C $@
22
+
23
+all:	subdirs
24
+
25
+proper:	clean
26
+
27
+clean:	subdirs
28
+
29
+install:	subdirs
30
+