summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 1028c34bbf6459ffb33326b535ccb54e0684f3d9 (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
## Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

include $(top_srcdir)/gtest.mk

# enforce compiling this dir first before decending into tests/
SUBDIRS= .

if BUILD_TESTS
SUBDIRS += tests
endif

INCLUDES=$(XAPIAN_CXXFLAGS) $(GMIME_CFLAGS) $(GLIB_CFLAGS)

# don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not
# really need all the params they get
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -pedantic
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter

bin_PROGRAMS=				\
	mu

noinst_LTLIBRARIES=			\
	libmu.la

# note, mu.cc is only '.cc' and not '.c' because libmu must explicitly
# be linked as c++, not c.
mu_SOURCES=				\
	mu.cc

mu_LDADD=				\
	libmu.la

libmu_la_SOURCES=			\
	mu-bookmarks.c			\
	mu-bookmarks.h			\
	mu-cmd-cfind.c			\
	mu-cmd-extract.c		\
	mu-cmd-find.c			\
	mu-cmd-index.c			\
	mu-cmd.c			\
	mu-cmd.h			\
	mu-config.c			\
	mu-config.h			\
	mu-contacts.c			\
	mu-contacts.h			\
	mu-container.c			\
	mu-container.h			\
	mu-date.c			\
	mu-date.h			\
	mu-index.c			\
	mu-index.h			\
	mu-log.c			\
	mu-log.h			\
	mu-maildir.c			\
	mu-maildir.h			\
	mu-msg-cache.c			\
	mu-msg-cache.h			\
	mu-msg-doc.cc			\
	mu-msg-doc.h			\
	mu-msg-fields.c			\
	mu-msg-fields.h			\
	mu-msg-file.c			\
	mu-msg-file.h			\
	mu-msg-flags.c			\
	mu-msg-flags.h			\
	mu-msg-iter.cc			\
	mu-msg-iter.h			\
	mu-msg-part.c			\
	mu-msg-part.h			\
	mu-msg-prio.c			\
	mu-msg-prio.h			\
	mu-msg-priv.h			\
	mu-msg.c			\
	mu-msg.h			\
	mu-msg.h			\
	mu-query.cc			\
	mu-query.h			\
	mu-runtime.c			\
	mu-runtime.h			\
	mu-store.cc			\
	mu-store.h			\
	mu-str-normalize.c		\
	mu-str.c			\
	mu-str.h			\
	mu-threader.c			\
	mu-threader.h			\
	mu-util-db.cc			\
	mu-util.c			\
	mu-util.h


libmu_la_LIBADD=			\
	$(XAPIAN_LIBS)			\
	$(GMIME_LIBS)			\
	$(GLIB_LIBS)