comparison libpurple/plugins/perl/Makefile.am @ 15373:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children e9c12873fae0
comparison
equal deleted inserted replaced
15372:f79e0f4df793 15373:5fe8042783c1
1 plugindir = $(libdir)/gaim
2 hackdir = $(plugindir)/private
3
4 perl_dirs = common
5
6 plugin_LTLIBRARIES = perl.la
7 hack_LTLIBRARIES = libgaimperl.la
8
9 perl_la_LDFLAGS = -module -avoid-version
10 perl_la_LIBADD = $(GLIB_LIBS) $(PERL_LIBS) libgaimperl.la
11 perl_la_SOURCES = \
12 perl.c \
13 perl-common.c \
14 perl-common.h \
15 perl-handlers.c \
16 perl-handlers.h
17
18 perl_la_DEPENDENCIES = \
19 .libs/libperl_orig.a \
20 .libs/DynaLoader.a \
21 libgaimperl.la
22
23 libgaimperl_la_LDFLAGS = -module -avoid-version
24 libgaimperl_la_LIBADD = $(GLIB_LIBS)
25 libgaimperl_la_SOURCES = libgaimperl.c
26
27 .libs/libperl_orig.a:
28 @mkdir -p .libs
29 @rm -f .libs/libperl_orig.a
30 @if [ x$(LIBPERL_A) = x ]; then \
31 touch .libs/libperl_orig.a; \
32 else \
33 $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \
34 fi
35
36 .libs/DynaLoader.a:
37 @mkdir -p .libs
38 @rm -f .libs/DynaLoader.a
39 @if [ x$(DYNALOADER_A) = x ]; then \
40 touch .libs/DynaLoader.a; \
41 else \
42 $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \
43 fi
44
45
46 common_sources = \
47 common/Account.xs \
48 common/AccountOpts.xs \
49 common/BuddyIcon.xs \
50 common/BuddyList.xs \
51 common/Cipher.xs \
52 common/Cmds.xs \
53 common/Core.xs \
54 common/Connection.xs \
55 common/Conversation.xs \
56 common/Debug.xs \
57 common/FT.xs \
58 common/Gaim.pm \
59 common/Gaim.xs \
60 common/ImgStore.xs \
61 common/Log.xs \
62 common/Makefile.PL.in \
63 common/Network.xs \
64 common/Notify.xs \
65 common/Plugin.xs \
66 common/PluginPref.xs \
67 common/Pounce.xs \
68 common/Prefs.xs \
69 common/Privacy.xs \
70 common/Proxy.xs \
71 common/Prpl.xs \
72 common/Request.xs \
73 common/Roomlist.xs \
74 common/SSLConn.xs \
75 common/SavedStatuses.xs \
76 common/Server.xs \
77 common/Signal.xs \
78 common/Sound.xs \
79 common/Status.xs \
80 common/Stringref.xs \
81 common/Util.xs \
82 common/XMLNode.xs \
83 common/fallback/const-c.inc \
84 common/fallback/const-xs.inc \
85 common/module.h \
86 common/typemap
87
88
89 EXTRA_DIST = \
90 Makefile.mingw \
91 common/Makefile.mingw \
92 $(common_sources) \
93 libgaimperl.c
94
95 common/Makefile: common/Makefile.PL
96 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
97 for f in ${common_sources}; do \
98 ${LN_S} -f ../${srcdir}/$$f $$f; \
99 done; \
100 fi
101 @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
102
103 common/Makefile.PL: common/Makefile.PL.in $(top_builddir)/config.status
104 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
105
106 all-local: common/Makefile
107 @for dir in $(perl_dirs); do \
108 cd $$dir && \
109 if [ ! -f Makefile ]; then \
110 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
111 fi && \
112 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \
113 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
114 cd ..; \
115 done
116
117 install-exec-local:
118 @for dir in $(perl_dirs); do \
119 cd $$dir; \
120 $(MAKE) install; \
121 cd ..; \
122 done
123
124 # Evil Hack (TM)
125 # ... which doesn't work with DESTDIR installs. FIXME?
126 uninstall-local:
127 @for dir in $(perl_dirs); do \
128 cd $$dir && \
129 `$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \
130 cd ..; \
131 done
132
133 clean-generic:
134 @for dir in $(perl_dirs); do \
135 cd $$dir; \
136 $(MAKE) clean; \
137 cd ..; \
138 done
139 rm -f *.so
140
141 distclean-generic:
142 @for dir in $(perl_dirs); do \
143 cd $$dir; \
144 $(MAKE) realclean; \
145 rm -f Makefile.PL; \
146 rm -f Makefile.old; \
147 rm -f Makefile; \
148 cd ..; \
149 done
150
151 @rm -f Makefile
152 @rm -f common/const-c.inc common/const-xs.inc
153
154 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
155 for f in ${common_sources}; do \
156 ${LN_S} -f ../${srcdir}/$$f $$f; \
157 done; \
158 fi
159
160
161 AM_CPPFLAGS = \
162 -DVERSION=\"$(VERSION)\" \
163 -I$(top_srcdir) \
164 -I$(top_srcdir)/libpurple \
165 $(DEBUG_CFLAGS) \
166 $(GLIB_CFLAGS) \
167 $(PLUGIN_CFLAGS) \
168 $(PERL_CFLAGS)