Mercurial > pidgin
annotate plugins/perl/Makefile.am @ 6682:839ee4c36fbc
[gaim-migrate @ 7207]
Tyop.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 01 Sep 2003 23:09:12 +0000 |
parents | eb95f31fa4eb |
children | 79e33c8ecf16 |
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 |
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 | 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 \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
60 $(common_sources) |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
61 |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
62 common/Makefile: common/Makefile.PL |
6665
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
63 @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
64 for f in ${common_sources}; do \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
65 ${LN_S} -f ../${srcdir}/$$f $$f; \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
66 done; \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
67 fi |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
68 @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS) |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
69 |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
70 common/Makefile.PL: common/Makefile.PL.in $(top_srcdir)/config.status |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
71 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
72 |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
73 all-local: common/Makefile |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
74 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
75 cd $$dir && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
76 if [ ! -f Makefile ]; then \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
77 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
78 fi && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
79 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ |
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 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 install-exec-local: |
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) install; \ |
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 |
6669
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
91 # Evil Hack (TM) |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
92 uninstall-local: |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
93 @for dir in $(perl_dirs); do \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
94 cd $$dir && \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
95 `$(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
|
96 cd ..; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
97 done |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
98 |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
99 clean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
100 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
101 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
102 $(MAKE) clean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
103 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
104 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
105 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
106 distclean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
107 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
108 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
109 $(MAKE) realclean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
110 rm -f Makefile.PL; \ |
6671
2d79df66fc2b
[gaim-migrate @ 7196]
Christian Hammond <chipx86@chipx86.com>
parents:
6669
diff
changeset
|
111 rm -f Makefile.old; \ |
6530
e05a54da64db
[gaim-migrate @ 7047]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
112 rm -f Makefile; \ |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
113 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
114 done |
5205 | 115 |
6669
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
116 @rm -f Makefile |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
117 @rm -f common/const-c.inc common/const-xs.inc |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
118 |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
119 @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
120 for f in ${common_sources}; do \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
121 ${LN_S} -f ../${srcdir}/$$f $$f; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
122 done; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
123 fi |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
124 |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
125 |
5205 | 126 AM_CPPFLAGS = \ |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
127 -DVERSION=\"$(VERSION)\" \ |
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
128 -I$(top_srcdir) \ |
5205 | 129 -I$(top_srcdir)/src \ |
130 $(DEBUG_CFLAGS) \ | |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
131 $(GTK_CFLAGS) \ |
5205 | 132 $(PLUGIN_CFLAGS) \ |
133 $(PERL_CFLAGS) |