diff options
Diffstat (limited to 'src/perl/Makefile.am')
-rw-r--r-- | src/perl/Makefile.am | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am new file mode 100644 index 00000000..4093d2ad --- /dev/null +++ b/src/perl/Makefile.am @@ -0,0 +1,30 @@ +noinst_LTLIBRARIES = libperl.la + +libperl_la_DEPENDENCIES = perl-signals.h + +INCLUDES = $(GLIB_CFLAGS) \ + -DPLUGINSDIR=\""$(libdir)/irssi/plugins"\" \ + -DSCRIPTDIR=\""$(libdir)/irssi/scripts"\" \ + $(PERL_CFLAGS) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/core + +libperl_la_SOURCES = \ + irssi-perl.c \ + xsinit.c + +perl-signals.h: $(top_srcdir)/docs/signals.txt $(srcdir)/get-signals.pl + cat $(top_srcdir)/docs/signals.txt | $(perlpath) $(srcdir)/get-signals.pl > perl-signals.h + +EXTRA_DIST = \ + get-signals.pl \ + xs/Irssi.xs \ + xs/Irssi.pm \ + xs/Makefile.PL.in \ + xs/typemap + +all-local: + cd xs && if [ ! -f Makefile ]; then $(perlpath) Makefile.PL; fi && $(MAKE) && cd .. + +install-exec-local: + cd xs && make install && cd .. |