Browse code

auth_identity: converted to the new module interface

Federico Cabiddu authored on 27/09/2018 15:22:49 • Victor Seva committed on 28/09/2018 11:03:26
Showing 1 changed files
... ...
@@ -42,7 +42,5 @@ LIBS+= $(TLS_EXTRA_LIBS)
42 42
 #
43 43
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap
44 44
 
45
-DEFS+=-DSER_MOD_INTERFACE
46
-
47 45
 include ../../Makefile.modules
48 46
 
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,48 @@
1
+
2
+include ../../Makefile.defs
3
+auto_gen=
4
+NAME=auth_identity.so
5
+
6
+ifeq ($(CROSS_COMPILE),)
7
+CURL_BUILDER=$(shell \
8
+	if pkg-config --exists libcurl; then \
9
+		echo 'pkg-config libcurl'; \
10
+	else \
11
+		which curl-config; \
12
+	fi)
13
+SSL_BUILDER=$(shell \
14
+	if pkg-config --exists libssl; then \
15
+		echo 'pkg-config libssl'; \
16
+	fi)
17
+endif
18
+
19
+ifneq ($(CURL_BUILDER),)
20
+	DEFS += $(shell $(CURL_BUILDER) --cflags )
21
+	LIBS += $(shell $(CURL_BUILDER) --libs)
22
+else
23
+	DEFS+=-I$(LOCALBASE)/include
24
+	LIBS+=-L$(LOCALBASE)/lib -lcurl
25
+endif
26
+
27
+ifneq ($(SSL_BUILDER),)
28
+	DEFS += $(shell $(SSL_BUILDER) --cflags)
29
+	LIBS += $(shell $(SSL_BUILDER) --libs)
30
+else
31
+	DEFS += -I$(LOCALBASE)/ssl/include
32
+	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
33
+			-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
34
+			-lssl -lcrypto
35
+	# NOTE: depending on the way in which libssl was compiled you might
36
+	#       have to add -lz -lkrb5   (zlib and kerberos5).
37
+	#       E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
38
+endif
39
+LIBS+= $(TLS_EXTRA_LIBS)
40
+
41
+# Static linking, if you'd like to use TLS and AUTH_IDENTITY at the same time
42
+#
43
+#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap
44
+
45
+DEFS+=-DSER_MOD_INTERFACE
46
+
47
+include ../../Makefile.modules
48
+