2006-02-24 [colin] 2.0.0cvs82
[claws.git] / src / Makefile.am
1
2 if SYLPHEED_LIBETPAN
3 etpan_dir = etpan
4 etpan_library = etpan/libsylpheedetpan.la
5 else
6 etpan_dir =
7 etpan_library = 
8 endif
9
10 SUBDIRS = common gtk plugins $(etpan_dir)
11
12 bin_PROGRAMS = sylpheed-claws
13
14 sylpheed_claws_SOURCES = \
15         account.c \
16         action.c \
17         addrbook.c \
18         addrcache.c \
19         addrclip.c \
20         addr_compl.c \
21         addressadd.c \
22         addressbook.c \
23         addrgather.c \
24         addrharvest.c \
25         addrindex.c \
26         addritem.c \
27         addrquery.c \
28         addrselect.c \
29         alertpanel.c \
30         browseldap.c \
31         codeconv.c \
32         compose.c \
33         crash.c \
34         customheader.c \
35         displayheader.c \
36         editaddress.c \
37         editbook.c \
38         editgroup.c \
39         editjpilot.c \
40         editldap_basedn.c \
41         editldap.c \
42         editvcard.c \
43         enriched.c \
44         exphtmldlg.c \
45         expldifdlg.c \
46         export.c \
47         exporthtml.c \
48         exportldif.c \
49         filtering.c \
50         folder.c \
51         folder_item_prefs.c \
52         foldersel.c \
53         folderutils.c \
54         folderview.c \
55         gedit-print.c \
56         grouplistdialog.c \
57         headerview.c \
58         html.c \
59         image_viewer.c \
60         imap.c \
61         imap_gtk.c \
62         import.c \
63         importldif.c \
64         importmutt.c \
65         importpine.c \
66         inc.c \
67         jpilot.c \
68         ldapctrl.c \
69         ldaplocate.c \
70         ldapquery.c \
71         ldapserver.c \
72         ldaputil.c \
73         ldif.c \
74         localfolder.c \
75         main.c \
76         mainwindow.c \
77         manual.c \
78         matcher.c \
79         matcher_parser_lex.l \
80         matcher_parser_parse.y \
81         mbox.c \
82         message_search.c \
83         messageview.c \
84         mh.c \
85         mh_gtk.c \
86         mimeview.c \
87         msgcache.c \
88         mutt.c \
89         news.c \
90         news_gtk.c \
91         noticeview.c \
92         partial_download.c \
93         pine.c \
94         pop.c \
95         prefs_account.c \
96         prefs_actions.c \
97         prefs_common.c \
98         prefs_compose_writing.c \
99         prefs_customheader.c \
100         prefs_display_header.c \
101         prefs_ext_prog.c \
102         prefs_filtering_action.c \
103         prefs_filtering.c \
104         prefs_folder_item.c \
105         prefs_fonts.c \
106         prefs_gtk.c \
107         prefs_image_viewer.c \
108         prefs_matcher.c \
109         prefs_message.c \
110         prefs_msg_colors.c \
111         prefs_other.c \
112         prefs_quote.c \
113         prefs_receive.c \
114         prefs_send.c \
115         prefs_spelling.c \
116         prefs_summaries.c \
117         prefs_summary_column.c \
118         prefs_folder_column.c \
119         prefs_template.c \
120         prefs_themes.c \
121         prefs_toolbar.c \
122         prefs_wrapping.c \
123         privacy.c \
124         procheader.c \
125         procmime.c \
126         procmsg.c \
127         quote_fmt.c \
128         quote_fmt_lex.l \
129         quote_fmt_parse.y \
130         recv.c \
131         remotefolder.c \
132         send_message.c \
133         setup.c \
134         simple-gettext.c \
135         sourcewindow.c \
136         ssl_manager.c \
137         statusbar.c \
138         stock_pixmap.c \
139         summary_search.c \
140         summaryview.c \
141         textview.c \
142         toolbar.c \
143         undo.c \
144         unmime.c \
145         vcard.c \
146         wizard.c
147
148 sylpheed_clawsincludedir = $(pkgincludedir)
149 sylpheed_clawsinclude_HEADERS = \
150         account.h \
151         action.h \
152         adbookbase.h \
153         addrbook.h \
154         addrcache.h \
155         addrclip.h \
156         addr_compl.h \
157         addrdefs.h \
158         addressadd.h \
159         addressbook.h \
160         addressitem.h \
161         addrgather.h \
162         addrharvest.h \
163         addrindex.h \
164         addritem.h \
165         addrquery.h \
166         addrselect.h \
167         alertpanel.h \
168         browseldap.h \
169         codeconv.h \
170         compose.h \
171         crash.h \
172         customheader.h \
173         displayheader.h \
174         editaddress.h \
175         editbook.h \
176         editgroup.h \
177         editjpilot.h \
178         editldap_basedn.h \
179         editldap.h \
180         editvcard.h \
181         enriched.h \
182         exphtmldlg.h \
183         expldifdlg.h \
184         export.h \
185         exporthtml.h \
186         exportldif.h \
187         filtering.h \
188         folder.h \
189         folder_item_prefs.h \
190         foldersel.h \
191         folderutils.h \
192         folderview.h \
193         gedit-print.h \
194         grouplistdialog.h \
195         headerview.h \
196         html.h \
197         image_viewer.h \
198         imap.h \
199         imap_gtk.h \
200         import.h \
201         importldif.h \
202         importmutt.h \
203         importpine.h \
204         inc.h \
205         jpilot.h \
206         ldapctrl.h \
207         ldaplocate.h \
208         ldapquery.h \
209         ldapserver.h \
210         ldaputil.h \
211         ldif.h \
212         localfolder.h \
213         main.h \
214         mainwindow.h \
215         manual.h \
216         matcher.h \
217         matcher_parser.h \
218         matcher_parser_lex.h \
219         matcher_parser_parse.h \
220         mbox.h \
221         message_search.h \
222         messageview.h \
223         mh.h \
224         mh_gtk.h \
225         mimeview.h \
226         msgcache.h \
227         mutt.h \
228         news.h \
229         news_gtk.h \
230         noticeview.h \
231         partial_download.h \
232         pine.h \
233         pop.h \
234         prefs_account.h \
235         prefs_actions.h \
236         prefs_common.h \
237         prefs_compose_writing.h \
238         prefs_customheader.h \
239         prefs_display_header.h \
240         prefs_ext_prog.h \
241         prefs_filtering_action.h \
242         prefs_filtering.h \
243         prefs_folder_item.h \
244         prefs_fonts.h \
245         prefs_gtk.h \
246         prefs_image_viewer.h \
247         prefs_matcher.h \
248         prefs_message.h \
249         prefs_msg_colors.h \
250         prefs_other.h \
251         prefs_quote.h \
252         prefs_receive.h \
253         prefs_send.h \
254         prefs_spelling.h \
255         prefs_summaries.h \
256         prefs_summary_column.h \
257         prefs_folder_column.h \
258         prefs_template.h \
259         prefs_themes.h \
260         prefs_toolbar.h \
261         prefs_wrapping.h \
262         privacy.h \
263         procheader.h \
264         procmime.h \
265         procmsg.h \
266         quote_fmt.h \
267         quote_fmt_lex.h \
268         quote_fmt_parse.h \
269         recv.h \
270         remotefolder.h \
271         send_message.h \
272         setup.h \
273         sourcewindow.h \
274         ssl_manager.h \
275         statusbar.h \
276         stock_pixmap.h \
277         summary_search.h \
278         summaryview.h \
279         textview.h \
280         toolbar.h \
281         undo.h \
282         unmime.h \
283         vcard.h \
284         wizard.h
285
286 BUILT_SOURCES = \
287         matcher_parser_parse.h \
288         quote_fmt_parse.h
289
290 EXTRA_DIST = \
291         pixmaps/address_book.xpm \
292         pixmaps/address_search.xpm \
293         pixmaps/address.xpm \
294         pixmaps/book.xpm \
295         pixmaps/category.xpm \
296         pixmaps/checkbox_off.xpm \
297         pixmaps/checkbox_on.xpm \
298         pixmaps/check_spelling.xpm \
299         pixmaps/clipkey.xpm \
300         pixmaps/clip.xpm \
301         pixmaps/clip_gpg_signed.xpm \
302         pixmaps/close.xpm \
303         pixmaps/complete.xpm \
304         pixmaps/continue.xpm \
305         pixmaps/deleted.xpm \
306         pixmaps/dir_close.xpm \
307         pixmaps/dir_noselect.xpm \
308         pixmaps/dir_open_hrm.xpm \
309         pixmaps/dir_open.xpm \
310         pixmaps/down_arrow.xpm \
311         pixmaps/drafts_close.xpm \
312         pixmaps/drafts_open.xpm \
313         pixmaps/error.xpm \
314         pixmaps/exec.xpm \
315         pixmaps/forwarded.xpm \
316         pixmaps/gpg_signed.xpm \
317         pixmaps/group.xpm \
318         pixmaps/ignorethread.xpm \
319         pixmaps/inbox_hrm.xpm \
320         pixmaps/inbox.xpm \
321         pixmaps/interface.xpm \
322         pixmaps/jpilot.xpm \
323         pixmaps/key.xpm \
324         pixmaps/ldap.xpm \
325         pixmaps/linewrap.xpm \
326         pixmaps/linewrapcurrent.xpm \
327         pixmaps/locked.xpm \
328         pixmaps/mail_attach.xpm \
329         pixmaps/mail_compose.xpm \
330         pixmaps/mail_forward.xpm \
331         pixmaps/mail_receive_all.xpm \
332         pixmaps/mail_receive.xpm \
333         pixmaps/mail_reply_to_all.xpm \
334         pixmaps/mail_reply_to_author.xpm \
335         pixmaps/mail_reply.xpm \
336         pixmaps/mail_send_queue.xpm \
337         pixmaps/mail_send.xpm \
338         pixmaps/mail.xpm \
339         pixmaps/mark.xpm \
340         pixmaps/mime_application.xpm \
341         pixmaps/mime_audio.xpm \
342         pixmaps/mime_image.xpm \
343         pixmaps/mime_message.xpm \
344         pixmaps/mime_text_enriched.xpm \
345         pixmaps/mime_text_html.xpm \
346         pixmaps/mime_text_plain.xpm \
347         pixmaps/mime_unknown.xpm \
348         pixmaps/news_compose.xpm \
349         pixmaps/new.xpm \
350         pixmaps/notice_error.xpm \
351         pixmaps/notice_note.xpm \
352         pixmaps/notice_warn.xpm \
353         pixmaps/offline.xpm \
354         pixmaps/online.xpm \
355         pixmaps/outbox_hrm.xpm \
356         pixmaps/outbox.xpm \
357         pixmaps/paste.xpm \
358         pixmaps/preferences.xpm \
359         pixmaps/privacy_expired.xpm \
360         pixmaps/privacy_failed.xpm \
361         pixmaps/privacy_passed.xpm \
362         pixmaps/privacy_signed.xpm \
363         pixmaps/privacy_unknown.xpm \
364         pixmaps/privacy_warn.xpm \
365         pixmaps/privacy_emblem_encrypted.xpm \
366         pixmaps/privacy_emblem_failed.xpm \
367         pixmaps/privacy_emblem_passed.xpm \
368         pixmaps/privacy_emblem_signed.xpm \
369         pixmaps/privacy_emblem_warn.xpm \
370         pixmaps/properties.xpm \
371         pixmaps/quicksearch.xpm \
372         pixmaps/replied.xpm \
373         pixmaps/search.xpm \
374         pixmaps/spam.xpm \
375         pixmaps/sylpheed_icon.xpm \
376         pixmaps/sylpheed_logo.xpm \
377         pixmaps/sylpheed.xpm \
378         pixmaps/trash_hrm.xpm \
379         pixmaps/trash.xpm \
380         pixmaps/trash_btn.xpm \
381         pixmaps/unread.xpm \
382         pixmaps/read.xpm \
383         pixmaps/up_arrow.xpm \
384         pixmaps/vcard.xpm \
385         pixmaps/dir_close_mark.xpm \
386         pixmaps/dir_open_hrm_mark.xpm \
387         pixmaps/dir_open_mark.xpm \
388         pixmaps/drafts_close_mark.xpm \
389         pixmaps/drafts_open_mark.xpm \
390         pixmaps/inbox_hrm_mark.xpm \
391         pixmaps/inbox_mark.xpm \
392         pixmaps/outbox_hrm_mark.xpm \
393         pixmaps/outbox_mark.xpm \
394         pixmaps/trash_hrm_mark.xpm \
395         pixmaps/trash_mark.xpm \
396         pixmaps/empty.xpm
397
398
399 INCLUDES = \
400         -I$(srcdir)/common \
401         -I$(srcdir)/gtk \
402         -I$(srcdir)/etpan
403
404 if PLATFORM_WIN32
405 arch_ldflags := -export-all-symbols
406 else
407 arch_ldflags :=
408 endif
409
410 sylpheed_claws_LDFLAGS = \
411         $(arch_ldflags) -export-dynamic
412
413 sylpheed_claws_LDADD = \
414         $(etpan_library) \
415         gtk/libsylpheedgtk.la \
416         $(ASPELL_LIBS) \
417         $(INTLLIBS) \
418         $(GTK_LIBS) \
419         $(GPGME_LIBS) \
420         $(LDAP_LIBS) \
421         $(OPENSSL_LIBS) \
422         $(COMPFACE_LIBS) \
423         $(JPILOT_LIBS) \
424         $(PTHREAD_LIBS) \
425         $(GNOMEPRINT_LIBS) \
426         $(LIBICONV) \
427         $(STARTUP_NOTIFICATION_LIBS) \
428         $(LIBETPAN_LIBS)
429
430 AM_CPPFLAGS = \
431         -DG_LOG_DOMAIN=\"Sylpheed-Claws\" \
432         -DLOCALEDIR=\""$(localedir)"\" \
433         -DMANUALDIR=\""$(manualdir)"\" \
434         -DFAQDIR=\""$(faqdir)"\" \
435         -DTARGET_ALIAS=\""$(target_triplet)"\" \
436         -DSYSCONFDIR=\""$(sysconfdir)"\" \
437         $(ASPELL_CFLAGS) \
438         $(GTK_CFLAGS) \
439         $(GPGME_CFLAGS) \
440         $(OPENSSL_CFLAGS) \
441         $(GNOMEPRINT_CFLAGS) \
442         $(LIBETPAN_CPPFLAGS) \
443         $(STARTUP_NOTIFICATION_CFLAGS) \
444         -Wno-unused-function
445          
446 #no-unused-function is there because of bison stuff
447 #no-deprecated-declarations because of gpgme_data_rewind, which we have
448 #to call inside gpgme due to our lack of LARGEFILE support
449
450 AM_YFLAGS = -d