320f1a80617f6ff676fc08add87d081cfaddaede
[claws.git] / src / Makefile.am
1 SUBDIRS = common gtk plugins
2
3
4 if PLATFORM_WIN32
5
6 SYLPHEED_RES = sylpheed.res
7
8 sylpheed.rc:
9         echo "SYLPHEED ICON sylpheed.ico" > sylpheed.rc
10
11 sylpheed.res: sylpheed.rc
12         $(WINDRES) $< -O coff -o $@
13
14 endif
15
16
17 bin_PROGRAMS = sylpheed
18
19 sylpheed_SOURCES = \
20         account.c \
21         action.c \
22         addr_compl.c \
23         addrbook.c \
24         addrcache.c \
25         addrclip.c \
26         addressadd.c \
27         addressbook.c \
28         addrgather.c \
29         addrharvest.c \
30         addrindex.c \
31         addritem.c \
32         addrquery.c \
33         addrselect.c \
34         alertpanel.c \
35         codeconv.c \
36         compose.c \
37         crash.c \
38         customheader.c \
39         displayheader.c \
40         editaddress.c \
41         editbook.c \
42         editgroup.c \
43         editjpilot.c \
44         editldap.c \
45         editldap_basedn.c \
46         editvcard.c \
47         enriched.c \
48         exphtmldlg.c \
49         expldifdlg.c \
50         export.c \
51         exporthtml.c \
52         exportldif.c \
53         filtering.c \
54         folder.c \
55         folder_item_prefs.c \
56         foldersel.c \
57         folderview.c \
58         grouplistdialog.c \
59         headerview.c \
60         html.c \
61         imap.c \
62         import.c \
63         importldif.c \
64         importmutt.c \
65         importpine.c \
66         inc.c \
67         inputdialog.c \
68         jpilot.c \
69         ldapctrl.c \
70         ldapquery.c \
71         ldapserver.c \
72         ldaputil.c \
73         ldif.c \
74         logwindow.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         mbox_folder.c \
83         message_search.c \
84         messageview.c \
85         mh.c \
86         mimeview.c \
87         msgcache.c \
88         mutt.c \
89         news.c \
90         noticeview.c \
91         passphrase.c \
92         pine.c \
93         pop.c \
94         prefs_account.c \
95         prefs_actions.c \
96         prefs_common.c \
97         prefs_customheader.c \
98         prefs_display_header.c \
99         prefs_filtering.c \
100         prefs_filtering_action.c \
101         prefs_folder_item.c \
102         prefs_gtk.c \
103         prefs_matcher.c \
104         prefs_scoring.c \
105         prefs_spelling.c \
106         prefs_summary_column.c \
107         prefs_template.c \
108         prefs_toolbar.c \
109         procheader.c \
110         procmime.c \
111         procmsg.c \
112         progressdialog.c \
113         quote_fmt.c \
114         quote_fmt_lex.l \
115         quote_fmt_parse.y \
116         recv.c \
117         rfc2015.c \
118         scoring.c \
119         select-keys.c \
120         send_message.c \
121         setup.c \
122         sigstatus.c \
123         simple-gettext.c \
124         sourcewindow.c \
125         ssl_manager.c \
126         statusbar.c \
127         stock_pixmap.c \
128         string_match.c \
129         summary_search.c \
130         summaryview.c \
131         textview.c \
132         toolbar.c \
133         undo.c \
134         unmime.c \
135         vcard.c
136
137 sylpheedincludedir = $(pkgincludedir)
138 sylpheedinclude_HEADERS = \
139         account.h \
140         action.h \
141         adbookbase.h \
142         addr_compl.h \
143         addrbook.h \
144         addrcache.h \
145         addrclip.h \
146         addressadd.h \
147         addressbook.h \
148         addressitem.h \
149         addrgather.h \
150         addrharvest.h \
151         addrindex.h \
152         addritem.h \
153         addrquery.h \
154         addrselect.h \
155         alertpanel.h \
156         codeconv.h \
157         compose.h \
158         crash.h \
159         customheader.h \
160         displayheader.h \
161         editaddress.h \
162         editbook.h \
163         editgroup.h \
164         editjpilot.h \
165         editldap.h \
166         editldap_basedn.h \
167         editvcard.h \
168         enriched.h \
169         exphtmldlg.h \
170         expldifdlg.h \
171         export.h \
172         exporthtml.h \
173         exportldif.h \
174         filtering.h \
175         folder.h \
176         folder_item_prefs.h \
177         foldersel.h \
178         folderview.h \
179         grouplistdialog.h \
180         headerview.h \
181         html.h \
182         imap.h \
183         import.h \
184         importldif.h \
185         importmutt.h \
186         importpine.h \
187         inc.h \
188         inputdialog.h \
189         jpilot.h \
190         ldapctrl.h \
191         ldapquery.h \
192         ldapserver.h \
193         ldaputil.h \
194         ldif.h \
195         logwindow.h \
196         main.h \
197         mainwindow.h \
198         manual.h \
199         matcher.h \
200         matcher_parser.h \
201         matcher_parser_lex.h \
202         matcher_parser_parse.h \
203         mbox.h \
204         mbox_folder.h \
205         message_search.h \
206         messageview.h \
207         mh.h \
208         mimeview.h \
209         msgcache.h \
210         mutt.h \
211         news.h \
212         noticeview.h \
213         passphrase.h \
214         pine.h \
215         pop.h \
216         prefs_account.h \
217         prefs_actions.h \
218         prefs_common.h \
219         prefs_customheader.h \
220         prefs_display_header.h \
221         prefs_filtering.h \
222         prefs_filtering_action.h \
223         prefs_folder_item.h \
224         prefs_gtk.h \
225         prefs_matcher.h \
226         prefs_scoring.h \
227         prefs_spelling.h \
228         prefs_summary_column.h \
229         prefs_template.h \
230         prefs_toolbar.h \
231         procheader.h \
232         procmime.h \
233         procmsg.h \
234         progressdialog.h \
235         quote_fmt.h \
236         quote_fmt_lex.h \
237         quote_fmt_parse.h \
238         recv.h \
239         rfc2015.h \
240         scoring.h \
241         select-keys.h \
242         send_message.h \
243         setup.h \
244         sigstatus.h \
245         sourcewindow.h \
246         ssl_manager.h \
247         statusbar.h \
248         stock_pixmap.h \
249         string_match.h \
250         summary_search.h \
251         summaryview.h \
252         textview.h \
253         toolbar.h \
254         undo.h \
255         unmime.h \
256         vcard.h
257
258 BUILT_SOURCES = \
259         matcher_parser_parse.h \
260         quote_fmt_parse.h
261
262 EXTRA_DIST = \
263         sylpheed.ico \
264         pixmaps/address_book.xpm \
265         pixmaps/address_search.xpm \
266         pixmaps/address.xpm \
267         pixmaps/book.xpm \
268         pixmaps/category.xpm \
269         pixmaps/checkbox_off.xpm \
270         pixmaps/checkbox_on.xpm \
271         pixmaps/clipkey.xpm \
272         pixmaps/clip.xpm \
273         pixmaps/close.xpm \
274         pixmaps/complete.xpm \
275         pixmaps/continue.xpm \
276         pixmaps/deleted.xpm \
277         pixmaps/dir_close.xpm \
278         pixmaps/dir_open_hrm.xpm \
279         pixmaps/dir_open.xpm \
280         pixmaps/down_arrow.xpm \
281         pixmaps/drafts_close.xpm \
282         pixmaps/drafts_open.xpm \
283         pixmaps/error.xpm \
284         pixmaps/exec.xpm \
285         pixmaps/folder.xpm \
286         pixmaps/forwarded.xpm \
287         pixmaps/gpg_signed.xpm \
288         pixmaps/group.xpm \
289         pixmaps/ignorethread.xpm \
290         pixmaps/inbox_hrm.xpm \
291         pixmaps/inbox.xpm \
292         pixmaps/interface.xpm \
293         pixmaps/jpilot.xpm \
294         pixmaps/key.xpm \
295         pixmaps/ldap.xpm \
296         pixmaps/linewrap.xpm \
297         pixmaps/locked.xpm \
298         pixmaps/mail_attach.xpm \
299         pixmaps/mail_compose.xpm \
300         pixmaps/mail_forward.xpm \
301         pixmaps/mail_receive_all.xpm \
302         pixmaps/mail_receive.xpm \
303         pixmaps/mail_reply_to_all.xpm \
304         pixmaps/mail_reply_to_author.xpm \
305         pixmaps/mail_reply.xpm \
306         pixmaps/mail_send_queue.xpm \
307         pixmaps/mail_send.xpm \
308         pixmaps/mail.xpm \
309         pixmaps/mark.xpm \
310         pixmaps/messageview_text.xpm \
311         pixmaps/mime_application_octet_stream.xpm \
312         pixmaps/mime_application.xpm \
313         pixmaps/mime_audio.xpm \
314         pixmaps/mime_gpg_expired.xpm \
315         pixmaps/mime_gpg_failed.xpm \
316         pixmaps/mime_gpg_passed.xpm \
317         pixmaps/mime_gpg_signed.xpm \
318         pixmaps/mime_gpg_unknown.xpm \
319         pixmaps/mime_image.xpm \
320         pixmaps/mime_text_enriched.xpm \
321         pixmaps/mime_text_html.xpm \
322         pixmaps/mime_text_plain.xpm \
323         pixmaps/mime_unknown.xpm \
324         pixmaps/news_compose.xpm \
325         pixmaps/new.xpm \
326         pixmaps/notice_error.xpm \
327         pixmaps/notice_note.xpm \
328         pixmaps/notice_warn.xpm \
329         pixmaps/outbox_hrm.xpm \
330         pixmaps/outbox.xpm \
331         pixmaps/paste.xpm \
332         pixmaps/preferences.xpm \
333         pixmaps/properties.xpm \
334         pixmaps/quicksearch.xpm \
335         pixmaps/regular.xpm \
336         pixmaps/replied.xpm \
337         pixmaps/search.xpm \
338         pixmaps/sylpheed_logo.xpm \
339         pixmaps/sylpheed.xpm \
340         pixmaps/trash_hrm.xpm \
341         pixmaps/trash.xpm \
342         pixmaps/unread.xpm \
343         pixmaps/up_arrow.xpm \
344         pixmaps/vcard.xpm \
345         pixmaps/work_offline.xpm \
346         pixmaps/work_online.xpm
347
348 INCLUDES = \
349         -Icommon \
350         -Igtk \
351         -I$(top_srcdir)/intl
352
353 sylpheed_LDFLAGS = \
354         -export-dynamic
355
356 sylpheed_LDADD = \
357         gtk/libsylpheedgtk.la \
358         $(ASPELL_LIBS) \
359         $(INTLLIBS) \
360         $(GTK_LIBS) \
361         $(GPGME_LIBS) \
362         $(LDAP_LIBS) \
363         $(OPENSSL_LIBS) \
364         $(LIBICONV) \
365         $(SYLPHEED_RES)
366
367 AM_CPPFLAGS = \
368         -DG_LOG_DOMAIN=\"Sylpheed\" \
369         -DLOCALEDIR=\""$(localedir)"\" \
370         -DMANUALDIR=\""$(manualdir)"\" \
371         -DFAQDIR=\""$(faqdir)"\" \
372         -DTARGET_ALIAS=\""$(target_triplet)"\" \
373         -DSYSCONFDIR=\""$(sysconfdir)"\" \
374         $(ASPELL_CFLAGS) \
375         $(GTK_CFLAGS) \
376         $(GPGME_CFLAGS) \
377         $(OPENSSL_CFLAGS)
378
379 AM_YFLAGS = -d