summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-03 23:54:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-03 23:54:56 +0000
commitf6a284af37ec2eca77abf36284107bd18c3444e7 (patch)
tree9eec6d0d4507954adecb0a5fbd977c8ee14f4d59 /src
parentdcc8d306ac35b13b47251b558fc74b339937b2fa (diff)
downloadirssi-f6a284af37ec2eca77abf36284107bd18c3444e7.zip
Perl compiling updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@718 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/perl/Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am
index 785b8205..860732b8 100644
--- a/src/perl/Makefile.am
+++ b/src/perl/Makefile.am
@@ -1,7 +1,10 @@
moduledir = $(libdir)/irssi/modules
-module_LTLIBRARIES = libperl.la
-libperl_la_LDFLAGS = -avoid-version
+module_LTLIBRARIES = $(module_lib)
+noinst_LTLIBRARIES = $(static_lib)
+EXTRA_LTLIBRARIES = libperl.la libperl_static.la
+
+libperl_la_LDFLAGS = -avoid-version -rpath $(moduledir)
perl.c: perl-signals.h
@@ -11,11 +14,24 @@ INCLUDES = $(GLIB_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/core
-libperl_la_SOURCES = \
+perl_sources = \
perl.c \
perl-common.c \
xsinit.c
+libperl_la_DEPENDENCIES = .libs/libperl_orig.a .libs/DynaLoader.a
+
+.libs/libperl_orig.a:
+ ln -sf $(LIBPERL_A) .libs/libperl_orig.a
+.libs/DynaLoader.a:
+ ln -sf $(DYNALOADER_A) .libs/DynaLoader.a
+
+libperl_la_SOURCES = \
+ $(perl_sources)
+
+libperl_static_la_SOURCES = \
+ $(perl_sources)
+
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