Makefile.am
2.19 KB
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
# This file is part of GNU Mailutils
# Copyright (C) 2000,2001,2002 Free Software Foundation
# See file COPYING in the distribution root directory for copying conditions.
INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include @GUILE_INCLUDES@
lib_LTLIBRARIES=@MU_SCM@
EXTRA_LTLIBRARIES=libmu_scm.la
libmu_scm_la_SOURCES=\
mu_address.c\
mu_body.c\
mu_guimb.c\
mu_mailbox.c\
mu_message.c\
mu_mime.c\
mu_logger.c\
mu_port.c\
mu_scm.c\
mu_util.c\
mu_scm.h
libmu_scm_la_LDFLAGS = -rpath $(libdir) -version-info 0:0:0
EXTRA_DIST=mailutils.scm mailutils.scm.in
pkgdata_DATA=@GUILE_PKGDATA@
DOT_X_FILES=mu_address.x mu_body.x mu_guimb.x mu_mailbox.x mu_message.x mu_mime.x\
mu_logger.x mu_port.x mu_scm.x mu_util.x
DOT_DOC_FILES=mu_address.doc mu_body.doc mu_guimb.doc mu_mailbox.doc mu_message.doc \
mu_mime.doc mu_logger.doc mu_port.doc mu_scm.doc mu_util.doc
BUILT_SOURCES=@GUILE_BUILT_SOURCES@
DISTCLEANFILES=$(DOT_X_FILES) $(DOT_DOC_FILES) @GUILE_PKGDATA@
CLEANFILES=*.inc
AM_CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\"
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
--regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-$(GUILE_SNARF_VERSION)/guile-doc-snarf
SUFFIXES=.x .doc .inc
.c.x:
AWK=$(AWK) \
$(GUILE_DOC_SNARF) -o $@ \
$< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
.c.doc:
AWK=$(AWK) \
$(GUILE_DOC_SNARF) -d -o $@ \
$< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
.c.inc:
sed -n 's/SCM_DEFINE *(.[^,]*, *\"\([^"][^"]*\)\".*/[(export \1)]/p' $< > $@
guile-procedures.txt: $(DOT_DOC_FILES)
cat $(DOT_DOC_FILES) > $@
mailutils.scm: mailutils.scm.in $(libmu_scm_la_SOURCES:.c=.inc)
m4 -DVERSION=$(VERSION) -DLIBDIR=$(libdir) \
-DBUILDDIR=$(top_builddir)/libmu_scm $< > $@
## Add -MG to make the .x magic work with auto-dep code.
MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
install-data-hook:
@if test -f $(DESTDIR)$(libdir)/libmu_scm.so; then \
$(LN_S) -f $(DESTDIR)$(libdir)/libmu_scm.so \
$(DESTDIR)$(libdir)/libguile-mailutils-v-$(VERSION).so; \
fi