Browse code

kazoo: Makefile comment updated to reference main Makefile

Daniel-Constantin Mierla authored on 02/11/2020 10:16:38
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 #
2
-# WARNING: do not run this directly, it should be run by the master Makefile
2
+# WARNING: do not run this directly, it should be run by the main Makefile
3 3
 
4 4
 include ../../Makefile.defs
5 5
 auto_gen=
Browse code

kazoo: updated to the new mod interface

Victor Seva authored on 28/09/2018 08:12:43
Showing 1 changed files
... ...
@@ -32,9 +32,6 @@ else
32 32
 	LIBS += $(shell $(BUILDER) --libs libevent)
33 33
 endif
34 34
 
35
-DEFS += -DKAMAILIO_MOD_INTERFACE
36
-
37
-
38 35
 SERLIBPATH=../../lib
39 36
 SER_LIBS=$(SERLIBPATH)/srdb1/srdb1
40 37
 
Browse code

kazoo: removed unused references to lib kmi and srdb2

- removed commented parts of code

Daniel-Constantin Mierla authored on 02/01/2017 19:40:11
Showing 1 changed files
... ...
@@ -36,7 +36,6 @@ DEFS += -DKAMAILIO_MOD_INTERFACE
36 36
 
37 37
 
38 38
 SERLIBPATH=../../lib
39
-SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
40
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
39
+SER_LIBS=$(SERLIBPATH)/srdb1/srdb1
41 40
 
42 41
 include ../../Makefile.modules
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,42 @@
1
+#
2
+# WARNING: do not run this directly, it should be run by the master Makefile
3
+
4
+include ../../Makefile.defs
5
+auto_gen=
6
+NAME=kazoo.so
7
+JLIB=json
8
+
9
+BUILDER = $(shell which pkg-config)
10
+ifeq ($(BUILDER),)
11
+	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
12
+else
13
+	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c)
14
+endif
15
+
16
+ifneq ($(JSONC),)
17
+	JLIB=json-c
18
+endif
19
+
20
+ifeq ($(BUILDER),)
21
+	DEFS+=-I$(LOCALBASE)/include -I$(SYSBASE)/include \
22
+		-I$(SYSBASE)/include/$(JLIB)
23
+	LIBS=-L$(LOCALBASE)/lib -I$(SYSBASE)/lib -lrabbitmq -l$(JLIB) -luuid -levent
24
+else
25
+	DEFS += $(shell $(BUILDER) --cflags $(JLIB))
26
+	LIBS += $(shell $(BUILDER) --libs $(JLIB))
27
+	DEFS += $(shell $(BUILDER) --cflags uuid)
28
+	LIBS += $(shell $(BUILDER) --libs uuid)
29
+	DEFS += $(shell $(BUILDER) --cflags librabbitmq)
30
+	LIBS += $(shell $(BUILDER) --libs librabbitmq)
31
+	DEFS += $(shell $(BUILDER) --cflags libevent)
32
+	LIBS += $(shell $(BUILDER) --libs libevent)
33
+endif
34
+
35
+DEFS += -DKAMAILIO_MOD_INTERFACE
36
+
37
+
38
+SERLIBPATH=../../lib
39
+SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
40
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
41
+
42
+include ../../Makefile.modules