Mercurial > pidgin
annotate plugins/perl/Makefile.am @ 6654:95652c05c7ae
[gaim-migrate @ 7179]
perl from a make dist should now compile.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 31 Aug 2003 09:25:05 +0000 |
parents | bfe961b7f58e |
children | e5c7149bc9ed |
rev | line source |
---|---|
5205 | 1 plugindir = $(libdir)/gaim |
2 | |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
3 perl_dirs = common |
5205 | 4 |
5 plugin_LTLIBRARIES = perl.la | |
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 | 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 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
32 @if [ x$(DYNALOADER_H) = x ]; then \ |
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 = \ |
6644 | 39 common/Account.xs \ |
6537
a621e2c6c713
[gaim-migrate @ 7055]
Christian Hammond <chipx86@chipx86.com>
parents:
6530
diff
changeset
|
40 common/BuddyList.xs \ |
6654
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
41 common/BuddyList_Buddy.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
42 common/BuddyList_Chat.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
43 common/BuddyList_Group.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
44 common/Connection.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
45 common/ConvWindow.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
46 common/Conversation.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
47 common/Conversation_Chat.xs \ |
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
48 common/Conversation_IM.xs \ |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
49 common/Gaim.xs \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
50 common/Gaim.pm \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
51 common/Makefile.PL.in \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
52 common/typemap \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
53 common/module.h |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
54 |
6654
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
55 |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
56 EXTRA_DIST = \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
57 Makefile.mingw \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
58 $(common_sources) |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
59 |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
60 common/Makefile: common/Makefile.PL |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
61 cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS) |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
62 |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
63 common/Makefile.PL: common/Makefile.PL.in $(top_srcdir)/config.status |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
64 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
65 |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
66 all-local: common/Makefile |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
67 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
68 cd $$dir && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
69 if [ ! -f Makefile ]; then \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
70 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
71 fi && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
72 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
73 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
74 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
75 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
76 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
77 install-exec-local: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
78 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
79 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
80 $(MAKE) install; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
81 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
82 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
83 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
84 clean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
85 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
86 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
87 $(MAKE) clean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
88 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
89 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
90 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
91 distclean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
92 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
93 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
94 $(MAKE) realclean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
95 rm -f Makefile.PL; \ |
6530
e05a54da64db
[gaim-migrate @ 7047]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
96 rm -f Makefile; \ |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
97 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
98 done |
5205 | 99 |
100 AM_CPPFLAGS = \ | |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
101 -DVERSION=\"$(VERSION)\" \ |
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
102 -I$(top_srcdir) \ |
5205 | 103 -I$(top_srcdir)/src \ |
104 $(DEBUG_CFLAGS) \ | |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
105 $(GTK_CFLAGS) \ |
5205 | 106 $(PLUGIN_CFLAGS) \ |
107 $(PERL_CFLAGS) |