Browse code

app_perl: Makefile comment updated to reference main Makefile

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

app_perl: converted to the new module interface

Federico Cabiddu authored on 27/09/2018 14:59:52 • Victor Seva committed on 28/09/2018 11:03:26
Showing 1 changed files
... ...
@@ -19,9 +19,6 @@ ifeq ($(PERLCCOPTS),)
19 19
 endif
20 20
 DEFS+=$(PERLCCOPTS)
21 21
 
22
-
23
-DEFS+=-DKAMAILIO_MOD_INTERFACE
24
-
25 22
 SERLIBPATH=../../lib
26 23
 
27 24
 PODFILES=kamailioxs.xs `find lib/perl -name *.pm`
Browse code

app_perl: removed mi command (was not enabled anyhow)

Daniel-Constantin Mierla authored on 30/12/2016 08:19:46
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 # perl module makefile
2 2
 #
3
-# 
3
+#
4 4
 # WARNING: do not run this directly, it should be run by the master Makefile
5 5
 
6 6
 include ../../Makefile.defs
... ...
@@ -23,7 +23,6 @@ DEFS+=$(PERLCCOPTS)
23 23
 DEFS+=-DKAMAILIO_MOD_INTERFACE
24 24
 
25 25
 SERLIBPATH=../../lib
26
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
27 26
 
28 27
 PODFILES=kamailioxs.xs `find lib/perl -name *.pm`
29 28
 
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,74 @@
1
+# perl module makefile
2
+#
3
+# 
4
+# WARNING: do not run this directly, it should be run by the master Makefile
5
+
6
+include ../../Makefile.defs
7
+auto_gen=kamailioxs.c
8
+NAME=app_perl.so
9
+LIBS=
10
+
11
+ifeq ($(PERLLDOPTS),)
12
+	LIBS+=`perl -MExtUtils::Embed -e ldopts`
13
+else
14
+	LIBS+=$(PERLLDOPTS)
15
+endif
16
+
17
+ifeq ($(PERLCCOPTS),)
18
+	PERLCCOPTS=$(shell perl -MExtUtils::Embed -e ccopts)
19
+endif
20
+DEFS+=$(PERLCCOPTS)
21
+
22
+
23
+DEFS+=-DKAMAILIO_MOD_INTERFACE
24
+
25
+SERLIBPATH=../../lib
26
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
27
+
28
+PODFILES=kamailioxs.xs `find lib/perl -name *.pm`
29
+
30
+ifeq ($(TYPEMAP),)
31
+	ifeq ($(PERLLIBPATH),)
32
+		PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'`
33
+	endif
34
+	TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
35
+endif
36
+
37
+include ../../Makefile.modules
38
+
39
+perl.d: kamailioxs.o
40
+perl.o: perl.c kamailioxs.o
41
+
42
+kamailioxs.o: CFLAGS+=-Wno-unused
43
+
44
+kamailioxs.c: kamailioxs.xs typemap
45
+	xsubpp -typemap $(TYPEMAP) -typemap typemap kamailioxs.xs > kamailioxs.c
46
+
47
+.PHONY: perlpod
48
+perlpod: doc/app_perl_pod.xml
49
+
50
+doc/app_perl_pod.sgml: kamailioxs.xs
51
+	cat $(PODFILES) | pod2docbook --doctype=chapter --title='Kamailio Perl API' --no-header - doc/app_perl_pod.sgml
52
+
53
+install-perl-scripts:
54
+	echo "installing Perl Kamailio packages ..."
55
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl
56
+	$(INSTALL_CFG) lib/perl/*.pm $(modules_prefix)/$(lib_dir)/perl
57
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio
58
+	$(INSTALL_CFG) lib/perl/Kamailio/*.pm \
59
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio
60
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
61
+	$(INSTALL_CFG) lib/perl/Kamailio/LDAPUtils/*.pm \
62
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/LDAPUtils
63
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
64
+	$(INSTALL_CFG) lib/perl/Kamailio/Utils/*.pm \
65
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/Utils
66
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
67
+	$(INSTALL_CFG) lib/perl/Kamailio/VDB/*.pm \
68
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB
69
+	mkdir -p $(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
70
+	$(INSTALL_CFG) lib/perl/Kamailio/VDB/Adapter/*.pm \
71
+		$(modules_prefix)/$(lib_dir)/perl/Kamailio/VDB/Adapter
72
+
73
+install-scripts: install-perl-scripts
74
+