summaryrefslogtreecommitdiff
path: root/src/perl/Makefile.am
blob: 4272cdfe6843184a81727e528eea1bae9a3d4651 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 \
	perl-common.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

CORE_SOURCES = \
	core/Channel.xs \
	core/Core.xs \
	core/Log.xs \
	core/Masks.xs \
	core/Query.xs \
	core/Rawlog.xs \
	core/Server.xs \
	core/Settings.xs \
	core/Window.xs \
	core/Irssi.xs \
	core/Irssi.pm \
	core/Makefile.PL.in \
	core/typemap \
	core/module.h

IRC_SOURCES = \
	irc/Bans.xs \
	irc/Dcc.xs \
	irc/Flood.xs \
	irc/Ignore.xs \
	irc/IrcChannel.xs \
	irc/IrcQuery.xs \
	irc/IrcServer.xs \
	irc/Modes.xs \
	irc/Netsplit.xs \
	irc/Notifylist.xs \
	irc/Irc.xs \
	irc/Irc.pm \
	irc/Makefile.PL.in \
	irc/typemap \
	irc/module.h

EXTRA_DIST = \
	libperl_dynaloader.la \
	get-signals.pl \
	$(CORE_SOURCES) \
	$(IRC_SOURCES)

noinst_HEADERS = \
	module.h \
	perl-common.h

all-local:
	for dir in core irc; do cd $$dir && 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 ..; done

install-exec-local:
	for dir in core irc; do cd $$dir && make install && cd ..; done

libirssi_perl_la_LIBADD = $(PERL_LDFLAGS)