Mercurial > pidgin
diff plugins/perl/Makefile.am @ 6508:cbd24b37350d
[gaim-migrate @ 7025]
Okay, ready for some breakage again? I rewrote the perl loader plugin. All
old scripts are broken, but the new API will be much better. Currently, you
can access accounts and do debug output, and that's it, but adding support
for new things is much easier. Please don't come after me with pitchforks.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 19 Aug 2003 21:47:36 +0000 |
parents | 2e23ccbccdec |
children | 22acbf225a53 |
line wrap: on
line diff
--- a/plugins/perl/Makefile.am Tue Aug 19 21:09:56 2003 +0000 +++ b/plugins/perl/Makefile.am Tue Aug 19 21:47:36 2003 +0000 @@ -1,13 +1,81 @@ -EXTRA_DIST = \ - Makefile.mingw - plugindir = $(libdir)/gaim -perl_la_LDFLAGS = -module -avoid-version $(PERL_LIBS) +perl_dirs = common plugin_LTLIBRARIES = perl.la -perl_la_SOURCES = perl.c +perl_la_LDFLAGS = -module -avoid-version $(PERL_LIBS) +perl_la_LIBADD = $(PERL_LDFLAGS) +perl_la_SOURCES = \ + perl.c \ + perl-common.c + +perl_la_DEPENDENCIES = \ + .libs/libperl_orig.a \ + .libs/DynaLoader.a + +.libs/libperl_orig.a: + @if [ ! -d .libs ]; then mkdir .libs; fi + @rm -f .libs/libperl_orig.a + @if [ x$(LIBPERL_A) = x ]; then \ + touch .libs/libperl_orig.a; \ + else \ + $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \ + fi + +.libs/DynaLoader.a: + @if [ ! -d .libs ]; then mkdir .libs; fi + @rm -f .libs/DynaLoader.a + @if [ x$(DYNALOADER_H) = x ]; then \ + touch .libs/DynaLoader.a; \ + else \ + $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \ + fi + +common_sources = \ + common/Accounts.xs \ + common/Gaim.xs \ + common/Gaim.pm \ + common/Makefile.PL.in \ + common/typemap \ + common/module.h + +EXTRA_DIST = \ + Makefile.mingw \ + $(common_sources) + +all-local: + @for dir in $(perl_dirs); do \ + cd $$dir && \ + if [ ! -f Makefile ]; then \ + $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ + fi && \ + ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ + $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \ + cd ..; \ + done + +install-exec-local: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) install; \ + cd ..; \ + done + +clean-generic: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) clean; \ + cd ..; \ + done + +distclean-generic: + @for dir in $(perl_dirs); do \ + cd $$dir; \ + $(MAKE) realclean; \ + rm -f Makefile.PL; \ + cd ..; \ + done AM_CPPFLAGS = \ -DVERSION=\"$(VERSION)\" \