annotate plugins/perl/Makefile.am @ 9067:1f2bbb359adb

[gaim-migrate @ 9843] This fixes a bug where the account was always null until you actually clicked on the account selector, instead of being the first selected account. The only time this wouldn't happen was when the roomlist was invoked with /list. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 26 May 2004 01:13:10 +0000
parents 79e33c8ecf16
children 3df7197abfe2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 plugindir = $(libdir)/gaim
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
3 perl_dirs = common
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 plugin_LTLIBRARIES = perl.la
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
7 perl_la_LDFLAGS = -module -avoid-version $(PERL_LIBS)
6512
22acbf225a53 [gaim-migrate @ 7029]
Luke Schierer <lschiere@pidgin.im>
parents: 6508
diff changeset
8 perl_la_LIBADD = $(PERL_LIBS)
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
9 perl_la_SOURCES = \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
10 perl.c \
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6512
diff changeset
11 perl-common.c \
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6512
diff changeset
12 perl-common.h \
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6512
diff changeset
13 perl-handlers.c \
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6512
diff changeset
14 perl-handlers.h
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
15
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
16 perl_la_DEPENDENCIES = \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
17 .libs/libperl_orig.a \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
18 .libs/DynaLoader.a
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
19
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
20 .libs/libperl_orig.a:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
21 @if [ ! -d .libs ]; then mkdir .libs; fi
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
22 @rm -f .libs/libperl_orig.a
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
23 @if [ x$(LIBPERL_A) = x ]; then \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
24 touch .libs/libperl_orig.a; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
25 else \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
26 $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
27 fi
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
28
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
29 .libs/DynaLoader.a:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
30 @if [ ! -d .libs ]; then mkdir .libs; fi
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
31 @rm -f .libs/DynaLoader.a
6682
839ee4c36fbc [gaim-migrate @ 7207]
Christian Hammond <chipx86@chipx86.com>
parents: 6678
diff changeset
32 @if [ x$(DYNALOADER_A) = x ]; then \
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
33 touch .libs/DynaLoader.a; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
34 else \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
35 $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
36 fi
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
37
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
38 common_sources = \
6678
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6671
diff changeset
39 common/fallback/const-c.inc \
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6671
diff changeset
40 common/fallback/const-xs.inc \
6644
bfe961b7f58e [gaim-migrate @ 7169]
Ethan Blanton <elb@pidgin.im>
parents: 6587
diff changeset
41 common/Account.xs \
6537
a621e2c6c713 [gaim-migrate @ 7055]
Christian Hammond <chipx86@chipx86.com>
parents: 6530
diff changeset
42 common/BuddyList.xs \
6654
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
43 common/BuddyList_Buddy.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
44 common/BuddyList_Chat.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
45 common/BuddyList_Group.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
46 common/Connection.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
47 common/ConvWindow.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
48 common/Conversation.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
49 common/Conversation_Chat.xs \
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
50 common/Conversation_IM.xs \
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
51 common/Gaim.xs \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
52 common/Gaim.pm \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
53 common/Makefile.PL.in \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
54 common/typemap \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
55 common/module.h
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
56
6654
95652c05c7ae [gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents: 6644
diff changeset
57
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
58 EXTRA_DIST = \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
59 Makefile.mingw \
7231
79e33c8ecf16 [gaim-migrate @ 7803]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6682
diff changeset
60 common/Makefile.mingw \
79e33c8ecf16 [gaim-migrate @ 7803]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6682
diff changeset
61 $(common_sources)
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
62
6587
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
63 common/Makefile: common/Makefile.PL
6665
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
64 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
65 for f in ${common_sources}; do \
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
66 ${LN_S} -f ../${srcdir}/$$f $$f; \
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
67 done; \
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
68 fi
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6654
diff changeset
69 @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
6587
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
70
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
71 common/Makefile.PL: common/Makefile.PL.in $(top_srcdir)/config.status
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
72 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
73
ed11e3f8ba21 [gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents: 6537
diff changeset
74 all-local: common/Makefile
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
75 @for dir in $(perl_dirs); do \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
76 cd $$dir && \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
77 if [ ! -f Makefile ]; then \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
78 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
79 fi && \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
80 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
81 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
82 cd ..; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
83 done
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
84
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
85 install-exec-local:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
86 @for dir in $(perl_dirs); do \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
87 cd $$dir; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
88 $(MAKE) install; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
89 cd ..; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
90 done
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
91
6669
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
92 # Evil Hack (TM)
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
93 uninstall-local:
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
94 @for dir in $(perl_dirs); do \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
95 cd $$dir && \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
96 `$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
97 cd ..; \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
98 done
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
99
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
100 clean-generic:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
101 @for dir in $(perl_dirs); do \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
102 cd $$dir; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
103 $(MAKE) clean; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
104 cd ..; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
105 done
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
106
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
107 distclean-generic:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
108 @for dir in $(perl_dirs); do \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
109 cd $$dir; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
110 $(MAKE) realclean; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
111 rm -f Makefile.PL; \
6671
2d79df66fc2b [gaim-migrate @ 7196]
Christian Hammond <chipx86@chipx86.com>
parents: 6669
diff changeset
112 rm -f Makefile.old; \
6530
e05a54da64db [gaim-migrate @ 7047]
Christian Hammond <chipx86@chipx86.com>
parents: 6520
diff changeset
113 rm -f Makefile; \
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
114 cd ..; \
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents: 6360
diff changeset
115 done
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
116
6669
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
117 @rm -f Makefile
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
118 @rm -f common/const-c.inc common/const-xs.inc
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
119
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
120 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
121 for f in ${common_sources}; do \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
122 ${LN_S} -f ../${srcdir}/$$f $$f; \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
123 done; \
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
124 fi
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
125
25f1f9efa510 [gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents: 6667
diff changeset
126
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
127 AM_CPPFLAGS = \
6360
2e23ccbccdec [gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents: 6198
diff changeset
128 -DVERSION=\"$(VERSION)\" \
2e23ccbccdec [gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents: 6198
diff changeset
129 -I$(top_srcdir) \
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
130 -I$(top_srcdir)/src \
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
131 $(DEBUG_CFLAGS) \
6360
2e23ccbccdec [gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents: 6198
diff changeset
132 $(GTK_CFLAGS) \
5205
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
133 $(PLUGIN_CFLAGS) \
fefad67de2c7 [gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
134 $(PERL_CFLAGS)