summaryrefslogtreecommitdiffabout
path: root/libmu_scm
authorSergey Poznyakoff <gray@gnu.org.ua>2002-09-12 09:54:18 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2002-09-12 09:54:18 (GMT)
commit8d7a084d10d5ac03ac18f75d08038129c56bea8e (patch) (side-by-side diff)
treea35d74c8c04c977de5eb6349516ffaa012ebefa5 /libmu_scm
parentb1ffdf58b4b65dd7b6caf5a3ef8cec8bb67ae1f0 (diff)
downloadmailutils-8d7a084d10d5ac03ac18f75d08038129c56bea8e.tar.gz
mailutils-8d7a084d10d5ac03ac18f75d08038129c56bea8e.tar.bz2
Install libmu_scm. Added new rule
for building guile standalone mailutils module -- mailutils.scm
Diffstat (limited to 'libmu_scm') (more/less context) (ignore whitespace changes)
-rw-r--r--libmu_scm/Makefile.am31
1 files changed, 25 insertions, 6 deletions
diff --git a/libmu_scm/Makefile.am b/libmu_scm/Makefile.am
index 8482e8d..5fb9eb8 100644
--- a/libmu_scm/Makefile.am
+++ b/libmu_scm/Makefile.am
@@ -5,9 +5,9 @@
AUTOMAKE_OPTIONS = ../lib/ansi2knr
INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include @GUILE_INCLUDES@
-noinst_LIBRARIES=@MU_SCM@
-EXTRA_LIBRARIES=libmu_scm.a
-libmu_scm_a_SOURCES=\
+lib_LTLIBRARIES=@MU_SCM@
+EXTRA_LTLIBRARIES=libmu_scm.la
+libmu_scm_la_SOURCES=\
mu_address.c\
mu_body.c\
mu_guimb.c\
@@ -20,14 +20,19 @@ libmu_scm_a_SOURCES=\
mu_util.c\
mu_scm.h
-pkgdata_DATA=@GUILE_PROCEDURES_TXT@
+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_PROCEDURES_TXT@
+DISTCLEANFILES=$(DOT_X_FILES) $(DOT_DOC_FILES) @GUILE_PKGDATA@
+CLEANFILES=*.inc
CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\"
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
@@ -35,7 +40,7 @@ ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_L
GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-$(GUILE_SNARF_VERSION)/guile-doc-snarf
-SUFFIXES=.x .doc
+SUFFIXES=.x .doc .inc
.c.x:
AWK=$(AWK) \
@@ -47,8 +52,22 @@ SUFFIXES=.x .doc
$(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-exec-local:
+ @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

Return to:

Send suggestions and report system problems to the System administrator.