Mercurial > pidgin
annotate plugins/perl/Makefile.am @ 11880:cf5243edcba0
[gaim-migrate @ 14171]
CruiseControl - This one's for you darling!
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 29 Oct 2005 01:05:29 +0000 |
parents | f8cd06753755 |
children | 48d7074f2297 |
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 |
11862 | 5 plugin_LTLIBRARIES = perl.la libgaimperl.la |
5205 | 6 |
10889 | 7 perl_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) $(PERL_LIBS) |
11880 | 8 perl_la_LIBADD = $(PERL_LIBS) -L. -L.libs -lgaimperl |
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 \ |
11123 | 18 .libs/DynaLoader.a \ |
11862 | 19 libgaimperl.la |
11123 | 20 |
11862 | 21 libgaimperl_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) |
22 libgaimperl_la_SOURCES = libgaimperl.c | |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
23 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
24 .libs/libperl_orig.a: |
9169
3df7197abfe2
[gaim-migrate @ 9954]
Christian Hammond <chipx86@chipx86.com>
parents:
7231
diff
changeset
|
25 @mkdir -p .libs |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
26 @rm -f .libs/libperl_orig.a |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
27 @if [ x$(LIBPERL_A) = x ]; then \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
28 touch .libs/libperl_orig.a; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
29 else \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
30 $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
31 fi |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
32 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
33 .libs/DynaLoader.a: |
9169
3df7197abfe2
[gaim-migrate @ 9954]
Christian Hammond <chipx86@chipx86.com>
parents:
7231
diff
changeset
|
34 @mkdir -p .libs |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
35 @rm -f .libs/DynaLoader.a |
6682
839ee4c36fbc
[gaim-migrate @ 7207]
Christian Hammond <chipx86@chipx86.com>
parents:
6678
diff
changeset
|
36 @if [ x$(DYNALOADER_A) = x ]; then \ |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
37 touch .libs/DynaLoader.a; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
38 else \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
39 $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
40 fi |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
41 |
11123 | 42 |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
43 common_sources = \ |
11123 | 44 common/Account.xs \ |
45 common/AccountOpts.xs \ | |
46 common/BuddyIcon.xs \ | |
47 common/BuddyList.xs \ | |
48 common/Cipher.xs \ | |
49 common/Cmds.xs \ | |
50 common/Connection.xs \ | |
51 common/Conversation.xs \ | |
52 common/FT.xs \ | |
53 common/Gaim.pm \ | |
54 common/Gaim.xs \ | |
55 common/ImgStore.xs \ | |
56 common/Log.xs \ | |
57 common/Makefile.PL.in \ | |
58 common/Network.xs \ | |
59 common/Notify.xs \ | |
60 common/Plugin.xs \ | |
61 common/PluginPref.xs \ | |
62 common/Pounce.xs \ | |
63 common/Prefs.xs \ | |
64 common/Privacy.xs \ | |
65 common/Proxy.xs \ | |
66 common/Prpl.xs \ | |
67 common/Request.xs \ | |
68 common/Roomlist.xs \ | |
69 common/SSLConn.xs \ | |
70 common/SavedStatuses.xs \ | |
71 common/Server.xs \ | |
72 common/Sound.xs \ | |
73 common/Status.xs \ | |
74 common/Stringref.xs \ | |
75 common/Util.xs \ | |
76 common/XMLNode.xs \ | |
77 common/fallback/const-c.inc \ | |
78 common/fallback/const-xs.inc \ | |
79 common/module.h \ | |
80 common/typemap | |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
81 |
6654
95652c05c7ae
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
82 |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
83 EXTRA_DIST = \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
84 Makefile.mingw \ |
7231
79e33c8ecf16
[gaim-migrate @ 7803]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6682
diff
changeset
|
85 common/Makefile.mingw \ |
11318 | 86 $(common_sources) \ |
87 libgaimperl.c | |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
88 |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
89 common/Makefile: common/Makefile.PL |
6665
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
90 @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
91 for f in ${common_sources}; do \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
92 ${LN_S} -f ../${srcdir}/$$f $$f; \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
93 done; \ |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
94 fi |
e5c7149bc9ed
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
95 @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS) |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
96 |
9790 | 97 common/Makefile.PL: common/Makefile.PL.in $(top_builddir)/config.status |
6587
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
98 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
99 |
ed11e3f8ba21
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
100 all-local: common/Makefile |
6508
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 if [ ! -f Makefile ]; then \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
104 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
105 fi && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
106 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
107 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
108 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
109 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
110 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
111 install-exec-local: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
112 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
113 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
114 $(MAKE) install; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
115 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
116 done |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
117 |
6669
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
118 # Evil Hack (TM) |
11862 | 119 # ... which doesn't work with DESTDIR installs. FIXME? |
6669
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
120 uninstall-local: |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
121 @for dir in $(perl_dirs); do \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
122 cd $$dir && \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
123 `$(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
|
124 cd ..; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
125 done |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
126 |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
127 clean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
128 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
129 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
130 $(MAKE) clean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
131 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
132 done |
11146 | 133 rm -f *.so |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
134 |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
135 distclean-generic: |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
136 @for dir in $(perl_dirs); do \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
137 cd $$dir; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
138 $(MAKE) realclean; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
139 rm -f Makefile.PL; \ |
6671
2d79df66fc2b
[gaim-migrate @ 7196]
Christian Hammond <chipx86@chipx86.com>
parents:
6669
diff
changeset
|
140 rm -f Makefile.old; \ |
6530
e05a54da64db
[gaim-migrate @ 7047]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
141 rm -f Makefile; \ |
6508
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
142 cd ..; \ |
cbd24b37350d
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
143 done |
5205 | 144 |
6669
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
145 @rm -f Makefile |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
146 @rm -f common/const-c.inc common/const-xs.inc |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
147 |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
148 @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
149 for f in ${common_sources}; do \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
150 ${LN_S} -f ../${srcdir}/$$f $$f; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
151 done; \ |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
152 fi |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
153 |
25f1f9efa510
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
154 |
5205 | 155 AM_CPPFLAGS = \ |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
156 -DVERSION=\"$(VERSION)\" \ |
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
157 -I$(top_srcdir) \ |
5205 | 158 -I$(top_srcdir)/src \ |
159 $(DEBUG_CFLAGS) \ | |
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6198
diff
changeset
|
160 $(GTK_CFLAGS) \ |
5205 | 161 $(PLUGIN_CFLAGS) \ |
162 $(PERL_CFLAGS) |