mu/lib/Makefile.am

120 lines
2.9 KiB
Makefile
Raw Normal View History

2017-10-24 21:57:57 +02:00
## Copyright (C) 2010-2017 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
2011-12-01 20:32:48 +01:00
# enforce compiling guile (optionally) first,then this dir first
# before decending into tests/
2019-12-16 20:44:03 +01:00
SUBDIRS= utils parser . tests
if HAVE_JSON_GLIB
json_srcs= \
mu-msg-json.c \
mu-msg-json.h
json_flag="-DHAVE_JSON_GLIB"
endif
2016-12-11 17:33:31 +01:00
AM_CFLAGS= \
$(WARN_CFLAGS) \
2017-10-28 13:12:50 +02:00
$(GMIME_CFLAGS) \
$(GLIB_CFLAGS) \
$(GUILE_CFLAGS) \
$(JSON_GLIB_CFLAGS) \
$(ASAN_CFLAGS) \
$(json_flag) \
2016-12-11 17:33:31 +01:00
-Wno-format-nonliteral \
-Wno-switch-enum \
2017-10-24 21:57:57 +02:00
-Wno-deprecated-declarations \
2017-10-28 13:12:50 +02:00
-Wno-inline
2016-12-11 17:33:31 +01:00
AM_CXXFLAGS= \
$(WARN_CXXFLAGS) \
$(GMIME_CFLAGS) \
$(GLIB_CFLAGS) \
$(JSON_GLIB_CFLAGS) \
2016-12-11 17:33:31 +01:00
$(XAPIAN_CXXFLAGS) \
$(GUILE_CFLAGS) \
$(ASAN_CXXFLAGS)
# 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
2016-12-11 17:33:31 +01:00
# AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter \
# -Wdeclaration-after-statement -Wno-variadic-macros
# AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
2016-12-11 17:33:31 +01:00
noinst_LTLIBRARIES= \
libmu.la
2016-12-11 17:33:31 +01:00
libmu_la_SOURCES= \
mu-bookmarks.c \
mu-bookmarks.h \
mu-contacts.cc \
mu-contacts.hh \
2016-12-11 17:33:31 +01:00
mu-container.c \
mu-container.h \
mu-flags.h \
mu-flags.c \
mu-index.c \
mu-index.h \
mu-maildir.c \
mu-maildir.h \
mu-msg-crypto.c \
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-iter.cc \
mu-msg-iter.h \
$(json_srcs) \
2016-12-11 17:33:31 +01:00
mu-msg-part.c \
mu-msg-part.h \
mu-msg-prio.c \
mu-msg-prio.h \
mu-msg-priv.h \
mu-msg-sexp.c \
mu-msg.c \
mu-msg.h \
mu-msg.h \
mu-query.cc \
mu-query.h \
mu-runtime.cc \
2016-12-11 17:33:31 +01:00
mu-runtime.h \
mu-script.c \
mu-script.h \
mu-store.cc \
mu-store.hh \
2016-12-11 17:33:31 +01:00
mu-threader.c \
2019-12-16 20:44:03 +01:00
mu-threader.h
2016-12-11 17:33:31 +01:00
libmu_la_LIBADD= \
$(XAPIAN_LIBS) \
$(GMIME_LIBS) \
$(GLIB_LIBS) \
2017-10-24 21:57:57 +02:00
$(GUILE_LIBS) \
$(JSON_GLIB_LIBS) \
2019-12-16 20:44:03 +01:00
${builddir}/utils/libmu-utils.la \
${builddir}/parser/libmu-parser.la
libmu_la_LDFLAGS= \
$(ASAN_LDFLAGS)
2016-12-11 17:33:31 +01:00
EXTRA_DIST= \
mu-msg-crypto.c \
doxyfile.in