2010-01-07 20:52:10 +01:00
|
|
|
## 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.
|
|
|
|
|
2010-01-25 09:24:33 +01:00
|
|
|
include $(top_srcdir)/gtest.mk
|
|
|
|
|
|
|
|
# enforce compiling this dir first before decending into tests/
|
|
|
|
SUBDIRS= .
|
|
|
|
|
2011-01-31 08:12:31 +01:00
|
|
|
if BUILD_TESTS
|
2010-01-25 09:24:33 +01:00
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|
|
|
|
|
2009-11-25 21:55:06 +01:00
|
|
|
INCLUDES=$(XAPIAN_CXXFLAGS) $(GMIME_CFLAGS) $(GLIB_CFLAGS)
|
|
|
|
|
2010-02-02 20:52:59 +01:00
|
|
|
# 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
|
2010-12-07 22:16:32 +01:00
|
|
|
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -pedantic
|
2010-12-17 07:34:31 +01:00
|
|
|
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
|
2010-02-02 20:52:59 +01:00
|
|
|
|
2010-01-25 08:43:53 +01:00
|
|
|
bin_PROGRAMS= \
|
2009-11-25 21:55:06 +01:00
|
|
|
mu
|
|
|
|
|
2010-01-25 08:43:53 +01:00
|
|
|
noinst_LTLIBRARIES= \
|
|
|
|
libmu.la
|
|
|
|
|
2010-01-31 11:10:21 +01:00
|
|
|
# note, mu.cc is only '.cc' and not '.c' because libmu must explicitly
|
|
|
|
# be linked as c++, not c.
|
2010-01-23 22:34:27 +01:00
|
|
|
mu_SOURCES= \
|
2010-01-31 11:10:21 +01:00
|
|
|
mu.cc
|
2010-01-25 08:43:53 +01:00
|
|
|
|
|
|
|
mu_LDADD= \
|
|
|
|
libmu.la
|
|
|
|
|
|
|
|
libmu_la_SOURCES= \
|
2010-11-13 13:16:38 +01:00
|
|
|
mu-bookmarks.c \
|
|
|
|
mu-bookmarks.h \
|
2011-03-05 08:42:52 +01:00
|
|
|
mu-cmd-cfind.c \
|
2011-01-12 22:14:17 +01:00
|
|
|
mu-cmd-extract.c \
|
2010-01-31 11:10:21 +01:00
|
|
|
mu-cmd-find.c \
|
|
|
|
mu-cmd-index.c \
|
2011-01-05 19:38:33 +01:00
|
|
|
mu-cmd.c \
|
2010-08-21 19:44:13 +02:00
|
|
|
mu-cmd.h \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-config.c \
|
|
|
|
mu-config.h \
|
2011-03-01 23:13:24 +01:00
|
|
|
mu-contacts.h \
|
|
|
|
mu-contacts.c \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-index.c \
|
|
|
|
mu-index.h \
|
|
|
|
mu-log.c \
|
|
|
|
mu-log.h \
|
|
|
|
mu-maildir.c \
|
|
|
|
mu-maildir.h \
|
2011-05-14 17:05:20 +02:00
|
|
|
mu-msg-cache.c \
|
|
|
|
mu-msg-cache.h \
|
2011-05-17 22:20:31 +02:00
|
|
|
mu-msg-doc.c \
|
|
|
|
mu-msg-doc.h \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-msg-fields.c \
|
|
|
|
mu-msg-fields.h \
|
2011-05-09 01:58:33 +02:00
|
|
|
mu-msg-file.c \
|
|
|
|
mu-msg-file.h \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-msg-flags.c \
|
|
|
|
mu-msg-flags.h \
|
2010-08-25 20:29:53 +02:00
|
|
|
mu-msg-iter-priv.hh \
|
|
|
|
mu-msg-iter.cc \
|
|
|
|
mu-msg-iter.h \
|
2010-08-24 23:57:16 +02:00
|
|
|
mu-msg-part.c \
|
|
|
|
mu-msg-part.h \
|
2010-12-04 11:37:38 +01:00
|
|
|
mu-msg-prio.c \
|
|
|
|
mu-msg-prio.h \
|
|
|
|
mu-msg-priv.h \
|
|
|
|
mu-msg.c \
|
|
|
|
mu-msg.h \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-msg.h \
|
2011-01-04 22:19:03 +01:00
|
|
|
mu-output.c \
|
|
|
|
mu-output.h \
|
2010-08-25 20:46:16 +02:00
|
|
|
mu-query.cc \
|
|
|
|
mu-query.h \
|
2010-11-14 12:55:04 +01:00
|
|
|
mu-runtime.c \
|
|
|
|
mu-runtime.h \
|
2010-08-25 20:55:08 +02:00
|
|
|
mu-store.cc \
|
|
|
|
mu-store.h \
|
2010-12-04 11:37:38 +01:00
|
|
|
mu-str-normalize.c \
|
|
|
|
mu-str.c \
|
|
|
|
mu-str.h \
|
2010-08-25 20:40:07 +02:00
|
|
|
mu-util-db.cc \
|
2010-01-23 22:34:27 +01:00
|
|
|
mu-util.c \
|
2010-01-25 08:43:53 +01:00
|
|
|
mu-util.h
|
2009-11-25 21:55:06 +01:00
|
|
|
|
2011-05-06 07:11:47 +02:00
|
|
|
|
2010-01-25 08:43:53 +01:00
|
|
|
libmu_la_LIBADD= \
|
|
|
|
$(XAPIAN_LIBS) \
|
|
|
|
$(GMIME_LIBS) \
|
2009-11-25 21:55:06 +01:00
|
|
|
$(GLIB_LIBS)
|