Browse code

Makefile.sources: added core/utils/ folder for core files

Daniel-Constantin Mierla authored on 21/01/2020 13:08:57
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@ sources=$(filter-out $(auto_gen), $(wildcard *.c) \
16 16
 		$(wildcard core/parser/contact/*.c) $(wildcard core/parser/sdp/*.c) \
17 17
 		$(wildcard core/rand/*.c) $(wildcard core/rand/isaac/*.c) ) \
18 18
 		$(wildcard core/rand/fortuna/*.c) $(wildcard core/crypto/*.c) \
19
-		$(wildcard core/cfg/*.c) $(auto_gen)
19
+		$(wildcard core/cfg/*.c) $(wildcard core/utils/*.c) $(auto_gen)
20 20
 ifeq ($(CORE_TLS), 1)
21 21
 	sources+= $(wildcard tls/*.c)
22 22
 endif
Browse code

core: add fortuna cryptographic random number generator to core

Henning Westerholt authored on 02/10/2019 23:04:10
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@ sources=$(filter-out $(auto_gen), $(wildcard *.c) \
15 15
 		$(wildcard core/parser/*.c) $(wildcard core/parser/digest/*.c) \
16 16
 		$(wildcard core/parser/contact/*.c) $(wildcard core/parser/sdp/*.c) \
17 17
 		$(wildcard core/rand/*.c) $(wildcard core/rand/isaac/*.c) ) \
18
-		$(wildcard core/crypto/*.c) \
18
+		$(wildcard core/rand/fortuna/*.c) $(wildcard core/crypto/*.c) \
19 19
 		$(wildcard core/cfg/*.c) $(auto_gen)
20 20
 ifeq ($(CORE_TLS), 1)
21 21
 	sources+= $(wildcard tls/*.c)
Browse code

core: move existing MD5 hash implementation into new core subfolder crypto

Henning Westerholt authored on 02/10/2019 22:11:37
Showing 1 changed files
... ...
@@ -15,6 +15,7 @@ sources=$(filter-out $(auto_gen), $(wildcard *.c) \
15 15
 		$(wildcard core/parser/*.c) $(wildcard core/parser/digest/*.c) \
16 16
 		$(wildcard core/parser/contact/*.c) $(wildcard core/parser/sdp/*.c) \
17 17
 		$(wildcard core/rand/*.c) $(wildcard core/rand/isaac/*.c) ) \
18
+		$(wildcard core/crypto/*.c) \
18 19
 		$(wildcard core/cfg/*.c) $(auto_gen)
19 20
 ifeq ($(CORE_TLS), 1)
20 21
 	sources+= $(wildcard tls/*.c)
Browse code

core: makefiles updated to use the new paths to source code files

Daniel-Constantin Mierla authored on 07/12/2016 11:08:54
Showing 1 changed files
... ...
@@ -10,12 +10,12 @@
10 10
 # defines: sources, objs, depends
11 11
 #
12 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)
13
+sources=$(filter-out $(auto_gen), $(wildcard *.c) \
14
+		$(wildcard core/*.c) $(wildcard core/mem/*.c) \
15
+		$(wildcard core/parser/*.c) $(wildcard core/parser/digest/*.c) \
16
+		$(wildcard core/parser/contact/*.c) $(wildcard core/parser/sdp/*.c) \
17
+		$(wildcard core/rand/*.c) $(wildcard core/rand/isaac/*.c) ) \
18
+		$(wildcard core/cfg/*.c) $(auto_gen)
19 19
 ifeq ($(CORE_TLS), 1)
20 20
 	sources+= $(wildcard tls/*.c)
21 21
 endif
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,27 @@
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=