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