2000-10-03 20:22:59 -04:00
LIBTOOL = $( PERL_LIBTOOL)
2000-09-07 17:55:58 -04:00
moduledir = $( libdir) /irssi/modules
2000-04-26 04:10:09 -04:00
2000-10-03 19:54:56 -04:00
module_LTLIBRARIES = $( module_lib)
noinst_LTLIBRARIES = $( static_lib)
EXTRA_LTLIBRARIES = libperl.la libperl_static.la
libperl_la_LDFLAGS = -avoid-version -rpath $( moduledir)
2000-10-01 21:11:53 -04:00
2000-10-03 18:57:14 -04:00
perl.c : perl -signals .h
2000-04-26 04:10:09 -04:00
INCLUDES = $( GLIB_CFLAGS) \
-DSCRIPTDIR= \" " $( libdir) /irssi/scripts " \" \
$( PERL_CFLAGS) \
-I$( top_srcdir) /src \
-I$( top_srcdir) /src/core
2000-10-03 19:54:56 -04:00
perl_sources = \
2000-10-03 18:57:14 -04:00
perl.c \
2000-10-01 16:48:48 -04:00
perl-common.c \
2000-04-26 04:10:09 -04:00
xsinit.c
2000-10-03 19:54:56 -04:00
libperl_la_DEPENDENCIES = .libs/libperl_orig.a .libs/DynaLoader.a
.libs/libperl_orig.a :
2000-10-03 20:22:59 -04:00
if [ ! -d .libs ] ; then mkdir .libs; fi
rm -f .libs/libperl_orig.a
$( LN_S) $( LIBPERL_A) .libs/libperl_orig.a
2000-10-03 19:54:56 -04:00
.libs/DynaLoader.a :
2000-10-03 20:22:59 -04:00
if [ ! -d .libs ] ; then mkdir .libs; fi
rm -f .libs/DynaLoader.a
$( LN_S) $( DYNALOADER_A) .libs/DynaLoader.a
2000-10-03 19:54:56 -04:00
libperl_la_SOURCES = \
$( perl_sources)
libperl_static_la_SOURCES = \
$( perl_sources)
2000-04-26 04:10:09 -04:00
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
2000-10-01 16:48:48 -04:00
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 \
2000-09-30 18:49:48 -04:00
core/Irssi.xs \
core/Irssi.pm \
core/Makefile.PL.in \
2000-10-01 16:48:48 -04:00
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 \
2000-10-03 18:57:14 -04:00
libperl_orig.la \
2000-10-01 16:48:48 -04:00
get-signals.pl \
$( CORE_SOURCES) \
$( IRC_SOURCES)
2000-04-26 04:10:09 -04:00
2000-04-28 04:07:42 -04:00
noinst_HEADERS = \
module.h \
2000-10-01 16:48:48 -04:00
perl-common.h
2000-04-28 04:07:42 -04:00
2000-04-26 04:10:09 -04:00
all-local :
2000-10-03 18:57:14 -04:00
for dir in common 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
2000-04-26 04:10:09 -04:00
install-exec-local :
2000-10-03 18:57:14 -04:00
for dir in common irc; do cd $$ dir && make install && cd ..; done
2000-09-07 17:55:58 -04:00
2000-10-03 18:57:14 -04:00
libperl_la_LIBADD = $( PERL_LDFLAGS)