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
|
|
|
|
2001-06-27 18:56:17 -04:00
|
|
|
module_LTLIBRARIES = $(perl_module_lib)
|
|
|
|
noinst_LTLIBRARIES = $(perl_static_lib)
|
2001-02-17 05:35:35 -05:00
|
|
|
EXTRA_LTLIBRARIES = \
|
2001-06-27 18:56:17 -04:00
|
|
|
libperl_core.la \
|
|
|
|
libperl_static.la
|
2000-10-03 19:54:56 -04:00
|
|
|
|
2001-02-17 05:35:35 -05:00
|
|
|
libperl_core_la_LDFLAGS = -avoid-version -rpath $(moduledir)
|
2000-10-01 21:11:53 -04:00
|
|
|
|
2001-01-03 02:34:12 -05:00
|
|
|
perl.c: perl-signals-list.h
|
2000-04-26 04:10:09 -04:00
|
|
|
|
|
|
|
INCLUDES = $(GLIB_CFLAGS) \
|
|
|
|
-DSCRIPTDIR=\""$(libdir)/irssi/scripts"\" \
|
2001-02-22 15:39:35 -05:00
|
|
|
-DPERL_LIB_DIR=\""$(PERL_LIB_DIR)"\" \
|
2000-04-26 04:10:09 -04:00
|
|
|
$(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 \
|
2001-01-03 02:34:12 -05:00
|
|
|
perl-signals.c \
|
2000-04-26 04:10:09 -04:00
|
|
|
xsinit.c
|
|
|
|
|
2001-02-17 05:35:35 -05:00
|
|
|
libperl_core_la_DEPENDENCIES = .libs/libperl_orig.a .libs/DynaLoader.a
|
2000-10-03 19:54:56 -04:00
|
|
|
|
|
|
|
.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
|
2001-01-01 05:42:15 -05:00
|
|
|
if [ x$(LIBPERL_A) = x ]; then touch .libs/libperl_orig.a; else $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; fi
|
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
|
|
|
|
2001-02-17 05:35:35 -05:00
|
|
|
libperl_core_la_SOURCES = \
|
2000-10-03 19:54:56 -04:00
|
|
|
$(perl_sources)
|
|
|
|
|
|
|
|
libperl_static_la_SOURCES = \
|
|
|
|
$(perl_sources)
|
|
|
|
|
2001-01-03 02:34:12 -05:00
|
|
|
perl-signals-list.h: $(top_srcdir)/docs/signals.txt $(srcdir)/get-signals.pl
|
|
|
|
cat $(top_srcdir)/docs/signals.txt | $(perlpath) $(srcdir)/get-signals.pl > perl-signals-list.h
|
2000-04-26 04:10:09 -04:00
|
|
|
|
2000-10-01 16:48:48 -04:00
|
|
|
CORE_SOURCES = \
|
2001-06-27 18:56:17 -04:00
|
|
|
common/Irssi.xs \
|
|
|
|
common/Irssi.pm \
|
2000-10-11 18:01:23 -04:00
|
|
|
common/Channel.xs \
|
|
|
|
common/Core.xs \
|
|
|
|
common/Ignore.xs \
|
|
|
|
common/Log.xs \
|
|
|
|
common/Masks.xs \
|
|
|
|
common/Query.xs \
|
|
|
|
common/Rawlog.xs \
|
|
|
|
common/Server.xs \
|
|
|
|
common/Settings.xs \
|
|
|
|
common/Makefile.PL.in \
|
|
|
|
common/typemap \
|
|
|
|
common/module.h
|
2000-10-01 16:48:48 -04:00
|
|
|
|
|
|
|
IRC_SOURCES = \
|
2001-06-27 18:56:17 -04:00
|
|
|
irc/Irc.xs \
|
|
|
|
irc/Irc.pm \
|
2000-10-01 16:48:48 -04:00
|
|
|
irc/Dcc.xs \
|
|
|
|
irc/IrcChannel.xs \
|
|
|
|
irc/IrcQuery.xs \
|
|
|
|
irc/IrcServer.xs \
|
|
|
|
irc/Modes.xs \
|
|
|
|
irc/Netsplit.xs \
|
|
|
|
irc/Notifylist.xs \
|
2001-06-27 18:56:17 -04:00
|
|
|
irc/Makefile.PL.in \
|
|
|
|
irc/typemap \
|
|
|
|
irc/module.h
|
|
|
|
|
2001-06-29 17:14:10 -04:00
|
|
|
UI_SOURCES = \
|
|
|
|
ui/UI.xs \
|
|
|
|
ui/UI.pm \
|
|
|
|
ui/Themes.xs \
|
|
|
|
ui/Window.xs \
|
|
|
|
ui/Makefile.PL.in \
|
|
|
|
ui/typemap \
|
|
|
|
ui/module.h
|
2000-10-01 16:48:48 -04:00
|
|
|
|
|
|
|
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) \
|
2001-06-27 18:56:17 -04:00
|
|
|
$(IRC_SOURCES) \
|
2001-07-15 11:16:38 -04:00
|
|
|
$(UI_SOURCES)
|
2000-04-26 04:10:09 -04:00
|
|
|
|
2000-04-28 04:07:42 -04:00
|
|
|
noinst_HEADERS = \
|
|
|
|
module.h \
|
2001-01-03 02:34:12 -05:00
|
|
|
perl-common.h \
|
|
|
|
perl-signals.h
|
2000-04-28 04:07:42 -04:00
|
|
|
|
2000-04-26 04:10:09 -04:00
|
|
|
all-local:
|
2001-07-28 23:56:46 -04:00
|
|
|
for dir in common irc ui; do \
|
|
|
|
cd $$dir && \
|
|
|
|
if [ ! -f Makefile ]; then \
|
|
|
|
if [ "x$(PERL_LIB_DIR)" = "x" ]; then \
|
|
|
|
$(perlpath) Makefile.PL; \
|
|
|
|
else \
|
2001-07-29 00:51:29 -04:00
|
|
|
$(perlpath) Makefile.PL PREFIX=$(PERL_LIB_DIR) INSTALLDIRS=perl; \
|
2001-07-28 23:56:46 -04:00
|
|
|
fi; \
|
|
|
|
fi && \
|
|
|
|
($(MAKE) || $(MAKE)) && \
|
|
|
|
cd ..; \
|
|
|
|
done
|
2000-04-26 04:10:09 -04:00
|
|
|
|
2001-06-27 18:56:17 -04:00
|
|
|
# FIXME: remove after .99: the libfe_perl must not be used anymore
|
2000-04-26 04:10:09 -04:00
|
|
|
install-exec-local:
|
2001-06-27 18:56:17 -04:00
|
|
|
-(rm -f $(moduledir)/libfe_perl.*)
|
2001-07-28 23:56:46 -04:00
|
|
|
for dir in common irc ui; do \
|
|
|
|
cd $$dir && $(MAKE) install && cd ..; \
|
|
|
|
done
|
2000-09-07 17:55:58 -04:00
|
|
|
|
2001-01-04 13:35:26 -05:00
|
|
|
clean-generic:
|
2001-07-15 11:16:38 -04:00
|
|
|
rm -f common/Irssi.c irc/Irc.c ui/UI.c
|
2001-01-04 13:35:26 -05:00
|
|
|
|
2001-03-10 21:33:00 -05:00
|
|
|
distclean: distclean-am
|
|
|
|
-(cd common && $(MAKE) realclean && rm -f Makefile.PL)
|
|
|
|
-(cd irc && $(MAKE) realclean && rm -f Makefile.PL)
|
2001-06-27 18:56:17 -04:00
|
|
|
-(cd ui && $(MAKE) realclean && rm -f Makefile.PL)
|
2001-03-10 21:33:00 -05:00
|
|
|
|
2001-02-17 05:35:35 -05:00
|
|
|
libperl_core_la_LIBADD = $(PERL_LDFLAGS)
|