summaryrefslogtreecommitdiffstats
path: root/kmail/Makefile.am
blob: 629390928c79e93386716e8eae4218df3e091463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
#KDE_OPTIONS = nofinal
KDE_CXXFLAGS = $(USE_RTTI) -fexceptions

SUBDIRS = interfaces . about pics profiles avscripts tests

INCLUDES = -I$(top_srcdir)/libkmime \
        -I$(top_srcdir)/libkpgp \
        -I$(top_srcdir)/libkdenetwork \
        -I$(top_srcdir)/libkdepim \
        -I$(top_srcdir)/libkpimidentities \
        -I$(top_srcdir)/libemailfunctions \
        -I$(top_srcdir)/libksieve \
        -I$(top_srcdir)/mimelib \
	-I$(top_srcdir)/certmanager/lib \
        -I$(top_srcdir)/certmanager/lib/ui \
        -I$(top_srcdir)/indexlib \
        -I$(top_srcdir)/ktnef \
        -I$(top_srcdir)/korganizer \
        -I$(top_srcdir) \
        $(GPGME_CFLAGS) \
        $(all_includes)

if add_indexlib
INDEXLIB=../indexlib/libindex.la
endif

lib_LTLIBRARIES = libkmailprivate.la
libkmailprivate_la_LDFLAGS = $(all_libraries) -avoid-version -no-undefined
libkmailprivate_la_LIBADD  = \
        ../libkmime/libkmime.la ../libkpgp/libkpgp.la ../libkdepim/libkdepim.la \
        ../libkpimidentities/libkpimidentities.la ../mimelib/libmimelib.la \
        ../libksieve/libksieve.la ../libemailfunctions/libemailfunctions.la \
        ../certmanager/lib/libkleopatra.la $(INDEXLIB) \
        ../libkcal/libkcal.la \
        $(LIB_KHTML) $(LIB_KSPELL) $(LIB_KABC)

kde_module_LTLIBRARIES = kcm_kmail.la libkmailpart.la libkmail_bodypartformatter_application_octetstream.la
libkmailpart_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -module -avoid-version -no-undefined
libkmailpart_la_LIBADD  = libkmailprivate.la

kcm_kmail_la_SOURCES = kcm_kmail.cpp
kcm_kmail_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
kcm_kmail_la_LIBADD = libkmailprivate.la $(LIB_KDECORE)

libkmail_bodypartformatter_application_octetstream_la_SOURCES = app_octetstream.cpp
libkmail_bodypartformatter_application_octetstream_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)

linkdir = $(kde_datadir)/kmail/plugins/bodypartformatter
link_DATA = application_octetstream.desktop

bin_PROGRAMS = kmail
kmail_LDFLAGS = $(all_libraries) $(KDE_RPATH)
kmail_LDADD   = libkmailprivate.la

libkmailprivate_la_SOURCES = kmmessage.cpp kmmainwin.cpp configuredialog.cpp \
                configuredialog_p.cpp klistviewindexedsearchline.cpp \
                simplestringlisteditor.cpp index.cpp  \
                identitydrag.cpp identitylistview.cpp identitydialog.cpp \
                kmfolderdia.cpp kmfoldertree.cpp kmtransport.cpp \
                kmfoldercombobox.cpp kmaccount.cpp kmheaders.cpp \
                headeritem.cpp listjob.cpp \
                kmcomposewin.cpp kmfolder.cpp kmmsgpartdlg.cpp \
                kmreaderwin.cpp htmlstatusbar.cpp kmmsgdict.cpp \
                kmgroupware.cpp folderstorage.cpp \
                csshelper.cpp klistboxdialog.cpp \
                actionscheduler.cpp messageproperty.cpp \
                kmmsgpart.cpp kmmsginfo.cpp \
                accountmanager.cpp kmacctfolder.cpp kmdict.cpp \
                kmsystemtray.cpp kmacctlocal.cpp kmfolderdir.cpp \
                kmfoldermgr.cpp kmfoldernode.cpp kmsender.cpp \
                kmacctseldlg.cpp kmfiltermgr.cpp kmsearchpatternedit.cpp \
                filterimporterexporter.cpp \
                encodingdetector.cpp encodingdetector_ja.cpp \
                kmfilteraction.cpp kmsearchpattern.cpp \
                kmfolderseldlg.cpp kmfilter.cpp kmfilterdlg.cpp \
                kmmsgbase.cpp kmmsglist.cpp kmaddrbook.cpp  \
                signatureconfigurator.cpp xfaceconfigurator.cpp \
                networkaccount.cpp imapaccountbase.cpp \
                kmservertest.cpp kmacctimap.cpp kmacctcachedimap.cpp \
                kmfawidgets.cpp kmfoldermbox.cpp kmfolderimap.cpp \
                undostack.cpp kmfoldercachedimap.cpp \
                kmfoldermaildir.cpp popaccount.cpp colorlistbox.cpp \
                kmkernel.cpp kmailIface.skel kmailicalIface.skel \
                accountdialog.cpp searchwindow.cpp vcardviewer.cpp \
                vacationdialog.cpp vacation.cpp sievedebugdialog.cpp \
                sieveconfig.cpp sievejob.cpp \
                kmpopheaders.cpp kmpopfiltercnfrmdlg.cpp \
                kmmimeparttree.cpp \
                mailinglist-magic.cpp kmacctmaildir.cpp \
                attachmentstrategy.cpp \
                headerstrategy.cpp headerstyle.cpp khtmlparthtmlwriter.cpp \
                filehtmlwriter.cpp teehtmlwriter.cpp \
                mailcomposerIface.skel objecttreeparser.cpp \
		objecttreeparser_p.cpp \
                attachmentcollector.cpp \
                bodypartformatter.cpp bodypartformatterfactory.cpp \
                partNode.cpp \
                mailsourceviewer.cpp \
                kmcommands.cpp kmreadermainwin.cpp \
                kmstartup.cpp kmmainwidget.cpp \
                folderpropertiesdialog.ui kmfolderindex.cpp \
                kmfoldersearch.cpp transportmanager.cpp \
                folderjob.cpp cachedimapjob.cpp \
                maildirjob.cpp mboxjob.cpp imapjob.cpp \
                subscriptiondialog.cpp kmailicalifaceimpl.cpp aboutdata.cpp \
                folderIface.cpp folderIface.skel mailserviceimpl.cpp \
                attachmentlistview.cpp kmedit.cpp kmlineeditspell.cpp \
                kmatmlistview.cpp composer.cpp \
                isubject.cpp bodyvisitor.cpp antispamwizard.cpp \
                urlhandlermanager.cpp dictionarycombobox.cpp \
                secondarywindow.cpp filterlog.cpp filterlogdlg.cpp \
                korganizeriface.stub messagecomposer.cpp \
                keyresolver.cpp globalsettings.cpp globalsettings_base.kcfgc \
                regexplineedit.cpp rulewidgethandlermanager.cpp \
                headerlistquicksearch.cpp acljobs.cpp folderdiaacltab.cpp \
                quotajobs.cpp folderdiaquotatab.cpp folderdiaquotatab_p.cpp \
                partnodebodypart.cpp \
                expirejob.cpp compactionjob.cpp jobscheduler.cpp callback.cpp \
                searchjob.cpp renamejob.cpp \
                composercryptoconfiguration.ui \
                warningconfiguration.ui smimeconfiguration.ui annotationjobs.cpp \
                accountcombobox.cpp redirectdialog.cpp foldershortcutdialog.cpp \
                folderrequester.cpp \
                spamheaderanalyzer.cpp antispamconfig.cpp \
                replyphrases.kcfgc custommimeheader.kcfgc \
                recipientseditor.cpp \
                recipientspicker.cpp kwindowpositioner.cpp \
                distributionlistdialog.cpp expirypropertiesdialog.cpp \
                mailinglistpropertiesdialog.cpp newfolderdialog.cpp \
                accountwizard.cpp textsource.cpp \
                managesievescriptsdialog.cpp chiasmuskeyselector.cpp \
                util.cpp templatesinsertcommand.cpp \
                customtemplates_base.ui customtemplates.cpp \
                customtemplates_kfg.kcfgc \
                templatesconfiguration_base.ui templatesconfiguration.cpp \
                templatesconfiguration_kfg.kcfgc \
                templateparser.cpp \
                copyfolderjob.cpp \
                messagecopyhelper.cpp \
                localsubscriptiondialog.cpp \
                editorwatcher.cpp \
                kcalendariface.stub \
                favoritefolderview.cpp \
                foldertreebase.cpp \
                snippetdlgbase.ui \
                snippetwidget.cpp \
                snippetconfig.cpp \
                snippetdlg.cpp \
                snippetitem.cpp \
                snippetsettings.cpp \
                snippetsettingsbase.ui \
                scalix.cpp \
                messageactions.cpp \
                korghelper.cpp \
                foldersetselector.cpp \
                stringutil.cpp \
                treebase.cpp \
                backupjob.cpp \
                importjob.cpp \
                folderutil.cpp \
                archivefolderdialog.cpp \
                importarchivedialog.cpp

libkmailprivate_la_COMPILE_FIRST = globalsettings_base.h customtemplates_base.h templatesconfiguration_base.h

kmail_SOURCES = main.cpp

kmail_COMPILE_FIRST = globalsettings_base.h customtemplates_base.h templatesconfiguration_base.h

libkmailpart_la_SOURCES =  kmailpartIface.skel  kmail_part.cpp

libkmailpart_la_COMPILE_FIRST = globalsettings_base.h customtemplates_base.h templatesconfiguration_base.h

check_PROGRAMS = dcoptest recipienteditortest

METASOURCES = AUTO

dcoptest_SOURCES = dcoptest.cpp kmailIface.skel kmailIface.stub mailcomposerIface.skel mailcomposerIface.stub
dcoptest_LDADD = $(LIB_KIO)
dcoptest_LDFLAGS = $(all_libraries)

recipienteditortest_SOURCES = recipientseditortest.cpp
recipienteditortest_LDADD = libkmailprivate.la ../libkdepim/libkdepim.la $(LIB_KIO) $(LIB_KABC)
recipienteditortest_LDFLAGS = $(all_libraries)

kmailIface_DCOPIDLNG = true
kmailicalIface_DCOPIDLNG = true

korganizeriface_DIR = $(top_srcdir)/korganizer
kcalendariface_DIR = $(top_srcdir)/korganizer

include_HEADERS = kmailIface.h kmailpartIface.h kmailicalIface.h

xdg_apps_DATA = KMail.desktop kmail_view.desktop

# why?
EXTRA_DIST = KMail.desktop $(link_DATA)

KDE_ICON = AUTO

rcdir = $(kde_datadir)/kmail
rc_DATA = kmcomposerui.rc kmmainwin.rc kmreadermainwin.rc eventsrc kmail_part.rc

updatedir = $(kde_datadir)/kconf_update
update_DATA = kmail.upd
update_SCRIPTS = upgrade-transport.pl kmail-pgpidentity.pl \
                upgrade-signature.pl kmail-upd-identities.pl \
                kmail-3.1-use-UOID-for-identities.pl \
                kmail-3.1-update-new-mail-notification-settings.pl \
                kmail-3.1.4-dont-use-UOID-0-for-any-identity.pl \
                kmail-3.2-update-loop-on-goto-unread-settings.sh \
                kmail-3.2-misc.sh \
                kmail-3.3-use-ID-for-accounts.pl \
                kmail-3.3-move-identities.pl \
                kmail-3.3-aegypten.pl \
                kmail-3.3-split-sign-encr-keys.sh \
                kmail-3.3-misc.pl \
                kmail-3.3b1-misc.pl \
                kmail-3.4-misc.pl \
                kmail-3.4.1-update-status-filters.pl \
                kmail-3.5-filter-icons.pl \
                kmail-3.5-trigger-flag-migration.pl

confdir = $(kde_confdir)
conf_DATA = kmail.antispamrc kmail.antivirusrc

tipdir = $(kde_datadir)/kmail
tip_DATA = tips

servicetypedir = $(kde_servicetypesdir)
servicetype_DATA = dcopmail.desktop dcopimap.desktop

kde_services_DATA = kmail_config_misc.desktop kmail_config_appearance.desktop \
   kmail_config_identity.desktop kmail_config_accounts.desktop kmail_config_composer.desktop \
   kmail_config_security.desktop

messages: rc.cpp
	rm -f tips.cpp
	$(PREPARETIPS) > tips.cpp
	$(XGETTEXT) -ktranslate *.cpp *.h -o $(podir)/kmail.pot
	rm -f tips.cpp

kde_kcfg_DATA = kmail.kcfg replyphrases.kcfg custommimeheader.kcfg \
		templatesconfiguration_kfg.kcfg customtemplates_kfg.kcfg

DOXYGEN_REFERENCES = kdeui
include $(top_srcdir)/admin/Doxyfile.am