Browse code

websocket: Makefile comment updated to reference main Makefile

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

websocket: updated to the new mod interface

Daniel-Constantin Mierla authored on 27/09/2018 21:06:52 • Victor Seva committed on 28/09/2018 11:03:26
Showing 1 changed files
... ...
@@ -48,7 +48,5 @@ endif
48 48
 #
49 49
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
50 50
 
51
-DEFS+=-DKAMAILIO_MOD_INTERFACE
52
-
53 51
 include ../../Makefile.modules
54 52
 
Browse code

websocket: removed mi commands

- corresponding rpc commands can be used

Daniel-Constantin Mierla authored on 30/12/2016 08:29:51
Showing 1 changed files
... ...
@@ -50,8 +50,5 @@ endif
50 50
 
51 51
 DEFS+=-DKAMAILIO_MOD_INTERFACE
52 52
 
53
-SERLIBPATH=../../lib
54
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
55
-
56 53
 include ../../Makefile.modules
57 54
 
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,57 @@
1
+#
2
+#
3
+# WARNING: do not run this directly, it should be run by the master Makefile
4
+
5
+include ../../Makefile.defs
6
+auto_gen=
7
+NAME=websocket.so
8
+
9
+EMBEDDED_UTF8_DECODE ?= 0
10
+
11
+ifeq ($(CROSS_COMPILE),)
12
+SSL_BUILDER=$(shell \
13
+	if pkg-config --exists libssl; then \
14
+		echo 'pkg-config libssl'; \
15
+	fi)
16
+
17
+ifneq ($(SSL_BUILDER),)
18
+SSL_BUILDER+=$(shell \
19
+	if pkg-config --exists libcrypto; then \
20
+		echo 'libcrypto'; \
21
+	fi)
22
+endif
23
+
24
+endif
25
+
26
+ifneq ($(SSL_BUILDER),)
27
+	DEFS += $(shell $(SSL_BUILDER) --cflags)
28
+	LIBS += $(shell $(SSL_BUILDER) --libs)
29
+else
30
+	DEFS += -I$(LOCALBASE)/ssl/include
31
+	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
32
+			-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
33
+			-lssl -lcrypto
34
+	# NOTE: depending on the way in which libssl was compiled you might
35
+	#       have to add -lz -lkrb5   (zlib and kerberos5).
36
+	#       E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
37
+endif
38
+
39
+LIBS+= $(TLS_EXTRA_LIBS)
40
+
41
+ifeq ($(EMBEDDED_UTF8_DECODE),0)
42
+	LIBS+= -lunistring
43
+else
44
+	DEFS += -DEMBEDDED_UTF8_DECODE
45
+endif
46
+
47
+# Static linking, if you'd like to use TLS and WEBSOCKET at the same time
48
+#
49
+#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
50
+
51
+DEFS+=-DKAMAILIO_MOD_INTERFACE
52
+
53
+SERLIBPATH=../../lib
54
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
55
+
56
+include ../../Makefile.modules
57
+