summaryrefslogtreecommitdiff
path: root/src/perl/Makefile.am
blob: 4022876d591e2a06fec3cea7e4d2e18ea93ed2aa (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
moduledir = $(libdir)/irssi/modules
module_LTLIBRARIES = libirssi_perl.la

irssi-perl.c: perl-signals.h

INCLUDES = $(GLIB_CFLAGS) \
	-DSCRIPTDIR=\""$(libdir)/irssi/scripts"\" \
	$(PERL_CFLAGS) \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/core

libirssi_perl_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 = \
	libperl_dynaloader.la \
	get-signals.pl \
	xs/Irssi-bans.xs \
	xs/Irssi-channel.xs \
	xs/Irssi-core.xs \
	xs/Irssi-dcc.xs \
	xs/Irssi-flood.xs \
	xs/Irssi-ignore.xs \
	xs/Irssi-log.xs \
	xs/Irssi-masks.xs \
	xs/Irssi-modes.xs \
	xs/Irssi-netsplit.xs \
	xs/Irssi-notifylist.xs \
	xs/Irssi-query.xs \
	xs/Irssi-rawlog.xs \
	xs/Irssi-server.xs \
	xs/Irssi-settings.xs \
	xs/Irssi-window.xs \
	xs/Irssi.xs \
	xs/Irssi.pm \
	xs/Makefile.PL.in \
	xs/typemap

noinst_HEADERS = \
	module.h \
	xs/module.h

all-local:
	cd xs && if [ ! -f Makefile ]; then if [ "x$(PERL_LIB_DIR)" = "x" ]; then $(perlpath) Makefile.PL; else $(perlpath) Makefile.PL LIB=$(PERL_LIB_DIR); fi; fi && $(MAKE) && cd ..

install-exec-local:
	cd xs && make install && cd ..

libirssi_perl_la_LIBADD = $(PERL_LDFLAGS)