2000-10-04 00:22:59 +00:00
|
|
|
LIBTOOL = $(PERL_LIBTOOL)
|
|
|
|
|
|
2000-09-07 21:55:58 +00:00
|
|
|
moduledir = $(libdir)/irssi/modules
|
2000-04-26 08:10:09 +00:00
|
|
|
|
2002-02-10 14:01:25 +00:00
|
|
|
perl_dirs = common irc ui textui
|
|
|
|
|
|
2001-07-29 09:17:53 +00:00
|
|
|
module_LTLIBRARIES = $(perl_module_lib) $(perl_module_fe_lib)
|
|
|
|
|
noinst_LTLIBRARIES = $(perl_static_lib) $(perl_static_fe_lib)
|
2001-02-17 10:35:35 +00:00
|
|
|
EXTRA_LTLIBRARIES = \
|
2001-07-29 09:17:53 +00:00
|
|
|
libperl_core.la libfe_perl.la \
|
|
|
|
|
libperl_core_static.la libfe_perl_static.la
|
2000-10-03 23:54:56 +00:00
|
|
|
|
2005-03-06 18:43:39 +00:00
|
|
|
libperl_core_la_LDFLAGS = -module -avoid-version -rpath $(moduledir)
|
|
|
|
|
libfe_perl_la_LDFLAGS = -module -avoid-version -rpath $(moduledir)
|
2000-10-02 01:11:53 +00:00
|
|
|
|
2008-02-04 00:30:38 +00:00
|
|
|
perl-core.lo: irssi-core.pl.h
|
|
|
|
|
perl-signals.lo: perl-signals-list.h
|
2000-04-26 08:10:09 +00:00
|
|
|
|
2001-11-05 14:48:03 +00:00
|
|
|
INCLUDES = \
|
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
|
-I$(top_srcdir)/src/core \
|
|
|
|
|
-I$(top_srcdir)/src/fe-common/core \
|
|
|
|
|
$(GLIB_CFLAGS) \
|
2002-03-01 19:56:50 +00:00
|
|
|
-DSCRIPTDIR=\""$(datadir)/irssi/scripts"\" \
|
2001-07-30 22:10:11 +00:00
|
|
|
-DPERL_USE_LIB=\""$(PERL_USE_LIB)"\" \
|
2001-10-24 23:17:27 +00:00
|
|
|
-DPERL_STATIC_LIBS=$(PERL_STATIC_LIBS) \
|
2001-11-05 14:48:03 +00:00
|
|
|
$(PERL_CFLAGS)
|
2000-04-26 08:10:09 +00:00
|
|
|
|
2000-10-03 23:54:56 +00:00
|
|
|
perl_sources = \
|
2001-07-29 09:17:53 +00:00
|
|
|
perl-core.c \
|
2000-10-01 20:48:48 +00:00
|
|
|
perl-common.c \
|
2001-01-03 07:34:12 +00:00
|
|
|
perl-signals.c \
|
2001-10-25 10:00:33 +00:00
|
|
|
perl-sources.c
|
2000-04-26 08:10:09 +00:00
|
|
|
|
2001-07-29 09:17:53 +00:00
|
|
|
perl_fe_sources = \
|
|
|
|
|
module-formats.c \
|
|
|
|
|
perl-fe.c
|
|
|
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
|
module.h \
|
2001-08-14 00:41:59 +00:00
|
|
|
module-fe.h \
|
2001-07-29 12:14:08 +00:00
|
|
|
module-formats.h \
|
2001-07-29 09:17:53 +00:00
|
|
|
perl-core.h \
|
|
|
|
|
perl-common.h \
|
|
|
|
|
perl-signals.h \
|
|
|
|
|
perl-sources.h
|
|
|
|
|
|
2001-02-17 10:35:35 +00:00
|
|
|
libperl_core_la_DEPENDENCIES = .libs/libperl_orig.a .libs/DynaLoader.a
|
2000-10-03 23:54:56 +00:00
|
|
|
|
|
|
|
|
.libs/libperl_orig.a:
|
2007-06-17 13:22:36 +00:00
|
|
|
$(mkdir_p) .libs
|
2000-10-04 00:22:59 +00:00
|
|
|
rm -f .libs/libperl_orig.a
|
2001-01-01 10:42:15 +00: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 23:54:56 +00:00
|
|
|
.libs/DynaLoader.a:
|
2007-06-17 13:22:36 +00:00
|
|
|
$(mkdir_p) .libs
|
2000-10-04 00:22:59 +00:00
|
|
|
rm -f .libs/DynaLoader.a
|
|
|
|
|
$(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a
|
2000-10-03 23:54:56 +00:00
|
|
|
|
2001-02-17 10:35:35 +00:00
|
|
|
libperl_core_la_SOURCES = \
|
2000-10-03 23:54:56 +00:00
|
|
|
$(perl_sources)
|
|
|
|
|
|
2001-07-29 09:17:53 +00:00
|
|
|
libperl_core_static_la_SOURCES = \
|
2000-10-03 23:54:56 +00:00
|
|
|
$(perl_sources)
|
|
|
|
|
|
2001-07-29 09:17:53 +00:00
|
|
|
libfe_perl_la_SOURCES = \
|
|
|
|
|
$(perl_fe_sources)
|
|
|
|
|
|
|
|
|
|
libfe_perl_static_la_SOURCES = \
|
|
|
|
|
$(perl_fe_sources)
|
|
|
|
|
|
2001-01-03 07:34:12 +00: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 08:10:09 +00:00
|
|
|
|
2001-07-29 09:17:53 +00:00
|
|
|
irssi-core.pl.h: irssi-core.pl
|
|
|
|
|
$(top_srcdir)/file2header.sh $(srcdir)/irssi-core.pl irssi_core_code > irssi-core.pl.h
|
|
|
|
|
|
2001-10-20 20:14:00 +00:00
|
|
|
common_sources = \
|
2001-06-27 22:56:17 +00:00
|
|
|
common/Irssi.xs \
|
|
|
|
|
common/Irssi.pm \
|
2000-10-11 22:01:23 +00:00
|
|
|
common/Channel.xs \
|
|
|
|
|
common/Core.xs \
|
2002-10-29 17:46:57 +00:00
|
|
|
common/Expando.xs \
|
2000-10-11 22:01:23 +00:00
|
|
|
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 20:48:48 +00:00
|
|
|
|
2001-10-20 20:14:00 +00:00
|
|
|
irc_sources = \
|
2001-06-27 22:56:17 +00:00
|
|
|
irc/Irc.xs \
|
|
|
|
|
irc/Irc.pm \
|
2000-10-01 20:48:48 +00:00
|
|
|
irc/Dcc.xs \
|
2001-10-20 19:52:07 +00:00
|
|
|
irc/Channel.xs \
|
2001-11-18 21:36:11 +00:00
|
|
|
irc/Ctcp.xs \
|
2001-10-20 19:52:07 +00:00
|
|
|
irc/Query.xs \
|
|
|
|
|
irc/Server.xs \
|
2000-10-01 20:48:48 +00:00
|
|
|
irc/Modes.xs \
|
|
|
|
|
irc/Netsplit.xs \
|
|
|
|
|
irc/Notifylist.xs \
|
2001-06-27 22:56:17 +00:00
|
|
|
irc/Makefile.PL.in \
|
|
|
|
|
irc/typemap \
|
|
|
|
|
irc/module.h
|
|
|
|
|
|
2001-10-20 20:14:00 +00:00
|
|
|
ui_sources = \
|
2001-06-29 21:14:10 +00:00
|
|
|
ui/UI.xs \
|
|
|
|
|
ui/UI.pm \
|
2001-11-17 00:12:04 +00:00
|
|
|
ui/Formats.xs \
|
2001-06-29 21:14:10 +00:00
|
|
|
ui/Themes.xs \
|
|
|
|
|
ui/Window.xs \
|
|
|
|
|
ui/Makefile.PL.in \
|
|
|
|
|
ui/typemap \
|
|
|
|
|
ui/module.h
|
2000-10-01 20:48:48 +00:00
|
|
|
|
2001-10-20 20:14:00 +00:00
|
|
|
textui_sources = \
|
2001-08-17 11:55:08 +00:00
|
|
|
textui/TextUI.xs \
|
|
|
|
|
textui/TextUI.pm \
|
|
|
|
|
textui/TextBuffer.xs \
|
|
|
|
|
textui/TextBufferView.xs \
|
2001-10-20 19:52:07 +00:00
|
|
|
textui/Statusbar.xs \
|
2001-08-17 11:55:08 +00:00
|
|
|
textui/Makefile.PL.in \
|
|
|
|
|
textui/typemap \
|
|
|
|
|
textui/module.h
|
2001-08-17 11:51:21 +00:00
|
|
|
|
2000-10-01 20:48:48 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
|
libperl_dynaloader.la \
|
2000-10-03 22:57:14 +00:00
|
|
|
libperl_orig.la \
|
2000-10-01 20:48:48 +00:00
|
|
|
get-signals.pl \
|
2001-07-29 09:17:53 +00:00
|
|
|
irssi-core.pl \
|
2001-10-20 20:23:07 +00:00
|
|
|
$(common_sources) \
|
2001-10-20 20:14:00 +00:00
|
|
|
$(irc_sources) \
|
|
|
|
|
$(ui_sources) \
|
|
|
|
|
$(textui_sources)
|
2000-04-26 08:10:09 +00:00
|
|
|
|
|
|
|
|
all-local:
|
2002-02-10 14:01:25 +00:00
|
|
|
for dir in $(perl_dirs); do \
|
2001-07-29 03:56:46 +00:00
|
|
|
cd $$dir && \
|
|
|
|
|
if [ ! -f Makefile ]; then \
|
2002-11-17 16:05:32 +00:00
|
|
|
$(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
|
2001-07-29 03:56:46 +00:00
|
|
|
fi && \
|
2002-11-17 16:05:32 +00:00
|
|
|
($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \
|
|
|
|
|
$(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
|
2001-07-29 03:56:46 +00:00
|
|
|
cd ..; \
|
|
|
|
|
done
|
2000-04-26 08:10:09 +00:00
|
|
|
|
|
|
|
|
install-exec-local:
|
2002-02-10 14:01:25 +00:00
|
|
|
for dir in $(perl_dirs); do \
|
2001-07-29 03:56:46 +00:00
|
|
|
cd $$dir && $(MAKE) install && cd ..; \
|
|
|
|
|
done
|
2000-09-07 21:55:58 +00:00
|
|
|
|
2001-01-04 18:35:26 +00:00
|
|
|
clean-generic:
|
2002-03-16 11:14:35 +00:00
|
|
|
for dir in $(perl_dirs); do \
|
|
|
|
|
cd $$dir; \
|
|
|
|
|
$(MAKE) clean; \
|
|
|
|
|
cd ..; \
|
|
|
|
|
done
|
2001-01-04 18:35:26 +00:00
|
|
|
|
2002-01-22 19:52:17 +00:00
|
|
|
distclean-generic:
|
2002-02-10 14:01:25 +00:00
|
|
|
for dir in $(perl_dirs); do \
|
|
|
|
|
cd $$dir; \
|
2003-11-16 18:19:03 +00:00
|
|
|
$(MAKE) realclean; rm -f Makefile.PL Makefile; \
|
2002-02-10 14:01:25 +00:00
|
|
|
cd ..; \
|
|
|
|
|
done
|
2001-03-11 02:33:00 +00:00
|
|
|
|
2001-02-17 10:35:35 +00:00
|
|
|
libperl_core_la_LIBADD = $(PERL_LDFLAGS)
|