mu/guile/Makefile.am

97 lines
2.5 KiB
Makefile
Raw Normal View History

2013-03-30 10:38:01 +01:00
## Copyright (C) 2011-2013 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
# note, we need top_builddir for snarfing with 'make distcheck' (ie.,
# with separate builddir)
SUBDIRS= . mu scripts examples
2012-07-20 10:54:53 +02:00
2017-11-05 12:12:41 +01:00
AM_CPPFLAGS= \
-I. -I${top_builddir} -I${top_srcdir}/lib \
${GUILE_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
2020-11-03 09:01:44 +01:00
AM_CFLAGS= \
$(ASAN_CFLAGS) \
${WARN_CFLAGS} \
-Wno-suggest-attribute=noreturn \
-Wno-missing-prototypes \
-Wno-missing-declarations
AM_CXXFLAGS= \
2020-11-16 08:47:22 +01:00
$(ASAN_CXXFLAGS) \
${WARN_CXXFLAGS} \
-Wno-redundant-decls \
-Wno-missing-declarations \
-Wno-suggest-attribute=noreturn
2017-11-05 12:12:41 +01:00
lib_LTLIBRARIES= \
libguile-mu.la
2017-11-05 12:12:41 +01:00
libguile_mu_la_SOURCES= \
2020-11-03 09:01:44 +01:00
mu-guile.cc \
mu-guile.hh \
mu-guile-message.cc \
mu-guile-message.hh
libguile_mu_la_CFLAGS=$(AM_CFLAGS)
libguile_mu_la_CXXFLAGS=$(AM_CXXFLAGS)
2017-11-05 12:12:41 +01:00
libguile_mu_la_LIBADD= \
${top_builddir}/lib/libmu.la \
2021-03-17 17:33:05 +01:00
${top_builddir}/lib/utils/libmu-utils.la \
$(READLINE_LIBS) \
${GUILE_LIBS}
2021-03-17 17:33:05 +01:00
libguile_mu_la_LDFLAGS= \
$(ASAN_LDFLAGS) \
-shared \
2020-11-01 13:03:27 +01:00
-export-dynamic
2017-11-05 12:12:41 +01:00
XFILES= \
mu-guile.x \
mu-guile-message.x
2017-11-05 12:12:41 +01:00
info_TEXINFOS= \
2012-01-01 21:47:58 +01:00
mu-guile.texi
2017-11-05 12:12:41 +01:00
mu_guile_TEXINFOS= \
2012-01-01 21:47:58 +01:00
fdl.texi
BUILT_SOURCES=$(XFILES)
2020-11-16 08:47:22 +01:00
export CPP
snarfcxxopts= $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
SUFFIXES = .x .doc
2020-11-03 09:01:44 +01:00
.cc.x:
$(AM_V_GEN) $(GUILE_SNARF) -o $@ $< $(snarfcxxopts)
2020-11-03 09:01:44 +01:00
# FIXME: GUILE_SITEDIR would be better, but that
# breaks 'make distcheck'
scmdir=${prefix}/share/guile/site/${GUILE_EFFECTIVE_VERSION}
scm_DATA=mu.scm
EXTRA_DIST=$(scm_DATA)
## Add -MG to make the .x magic work with auto-dep code.
MKDEP = $(CC) -M -MG $(snarfcppopts)
2018-05-21 14:03:58 +02:00
CLEANFILES=$(XFILES)