Browse code

auth_ephemeral: Makefile comment updated to reference main Makefile

Daniel-Constantin Mierla authored on 02/11/2020 10:16:33
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

auth_ephemeral: converted to the new module interface

Federico Cabiddu authored on 27/09/2018 15:17:26 • Victor Seva committed on 28/09/2018 11:03:26
Showing 1 changed files
... ...
@@ -39,6 +39,5 @@ LIBS+= $(TLS_EXTRA_LIBS)
39 39
 # Static linking, if you'd like to use TLS and AUTH_EPHEMERAL at the same time
40 40
 #
41 41
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
42
-DEFS+=-DKAMAILIO_MOD_INTERFACE
43 42
 
44 43
 include ../../Makefile.modules
Browse code

auth_ephemeral: do pkg-config for libcrypto if exists

- discover all the libs to link against
- related to GH #1473

Daniel-Constantin Mierla authored on 14/03/2018 10:15:51
Showing 1 changed files
... ...
@@ -11,6 +11,14 @@ SSL_BUILDER=$(shell \
11 11
 	if pkg-config --exists libssl; then \
12 12
 		echo 'pkg-config libssl'; \
13 13
 	fi)
14
+
15
+ifneq ($(SSL_BUILDER),)
16
+SSL_BUILDER+=$(shell \
17
+	if pkg-config --exists libcrypto; then \
18
+		echo 'libcrypto'; \
19
+	fi)
20
+endif
21
+
14 22
 endif
15 23
 
16 24
 ifneq ($(SSL_BUILDER),)
Browse code

auth_ephemeral: added rpc commands, removed mi commands

Daniel-Constantin Mierla authored on 30/12/2016 09:54:43
Showing 1 changed files
... ...
@@ -33,7 +33,4 @@ LIBS+= $(TLS_EXTRA_LIBS)
33 33
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
34 34
 DEFS+=-DKAMAILIO_MOD_INTERFACE
35 35
 
36
-SERLIBPATH=../../lib
37
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
38
-
39 36
 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,39 @@
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=auth_ephemeral.so
8
+
9
+ifeq ($(CROSS_COMPILE),)
10
+SSL_BUILDER=$(shell \
11
+	if pkg-config --exists libssl; then \
12
+		echo 'pkg-config libssl'; \
13
+	fi)
14
+endif
15
+
16
+ifneq ($(SSL_BUILDER),)
17
+	DEFS += $(shell $(SSL_BUILDER) --cflags)
18
+	LIBS += $(shell $(SSL_BUILDER) --libs)
19
+else
20
+	DEFS += -I$(LOCALBASE)/ssl/include
21
+	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
22
+			-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
23
+			-lssl -lcrypto
24
+	# NOTE: depending on the way in which libssl was compiled you might
25
+	#       have to add -lz -lkrb5   (zlib and kerberos5).
26
+	#       E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
27
+endif
28
+
29
+LIBS+= $(TLS_EXTRA_LIBS)
30
+
31
+# Static linking, if you'd like to use TLS and AUTH_EPHEMERAL at the same time
32
+#
33
+#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
34
+DEFS+=-DKAMAILIO_MOD_INTERFACE
35
+
36
+SERLIBPATH=../../lib
37
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
38
+
39
+include ../../Makefile.modules