Browse code

cnxcc: Makefile comment updated to reference main Makefile

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

cnxcc: converted to the new module interface

Victor Seva authored on 27/09/2018 15:28:03
Showing 1 changed files
... ...
@@ -47,7 +47,6 @@ endif
47 47
 DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
48 48
 LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49 49
 
50
-DEFS+=-DKAMAILIO_MOD_INTERFACE
51 50
 SERLIBPATH=../../lib
52 51
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
53 52
 include ../../Makefile.modules
Browse code

cnxcc: Makefile - define KAMAILIO_MOD_INTERFACE

Daniel-Constantin Mierla authored on 24/01/2018 08:20:33
Showing 1 changed files
... ...
@@ -47,7 +47,7 @@ endif
47 47
 DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
48 48
 LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49 49
 
50
-DEFS+=-DOPENSER_MOD_INTERFACE
50
+DEFS+=-DKAMAILIO_MOD_INTERFACE
51 51
 SERLIBPATH=../../lib
52 52
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
53 53
 include ../../Makefile.modules
Browse code

cnxcc: removed lib kmi from Makefile

Daniel-Constantin Mierla authored on 02/01/2017 12:15:23
Showing 1 changed files
... ...
@@ -49,6 +49,5 @@ LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49 49
 
50 50
 DEFS+=-DOPENSER_MOD_INTERFACE
51 51
 SERLIBPATH=../../lib
52
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
53 52
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
54 53
 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,54 @@
1
+#
2
+# cnxcc module makefile
3
+#
4
+#
5
+# WARNING: do not run this directly, it should be run by the master Makefile
6
+
7
+include ../../Makefile.defs
8
+auto_gen=
9
+NAME=cnxcc.so
10
+
11
+ifeq ($(CROSS_COMPILE),)
12
+HIREDIS_BUILDER = $(shell \
13
+	if pkg-config --exists hiredis; then \
14
+		echo 'pkg-config hiredis'; \
15
+	fi)
16
+endif
17
+
18
+ifeq ($(HIREDIS_BUILDER),)
19
+	HIREDISDEFS=-I$(LOCALBASE)/include
20
+	HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
21
+else
22
+	HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags)
23
+	HIREDISLIBS = $(shell $(HIREDIS_BUILDER) --libs)
24
+
25
+ifeq ($(HIREDISLIBS),-L -lhiredis)
26
+		HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags) /opt/local/include
27
+		HIREDISLIBS = -L/opt/local/lib -lhiredis
28
+endif
29
+
30
+endif
31
+
32
+ifeq ($(CROSS_COMPILE),)
33
+LEVENT_BUILDER = $(shell \
34
+	if pkg-config --exists libevent; then \
35
+		echo 'pkg-config libevent'; \
36
+	fi)
37
+endif
38
+
39
+ifeq ($(LEVENT_BUILDER),)
40
+	LEVENTDEFS=
41
+	LEVENTLIBS=-L$(LOCALBASE)/lib -levent
42
+else
43
+	LEVENTDEFS = $(shell $(LEVENT_BUILDER) --cflags)
44
+	LEVENTLIBS = $(shell $(LEVENT_BUILDER) --libs)
45
+endif
46
+
47
+DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
48
+LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49
+
50
+DEFS+=-DOPENSER_MOD_INTERFACE
51
+SERLIBPATH=../../lib
52
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
53
+SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
54
+include ../../Makefile.modules