summaryrefslogtreecommitdiff
path: root/src/perl/Makefile.am
blob: 4093d2adb06b80299eeddc0fb9adce627de02189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ..