increase the total timeout in the tests since they seem to exceed the default DTLS...
[gnutls.git] / guile / src / Makefile.am
blob7b555008f78bab85d078f9a2d442e72303cd7baa
1 #  GnuTLS --- Guile bindings for GnuTLS.
2 #  Copyright (C) 2007-2012 Free Software Foundation, Inc.
4 #  GnuTLS is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Lesser General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License, or (at your option) any later version.
9 #  GnuTLS is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 #  Lesser General Public License for more details.
14 #  You should have received a copy of the GNU Lesser General Public
15 #  License along with GnuTLS; if not, write to the Free Software
16 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18 GUILE_FOR_BUILD =                                               \
19   GUILE_AUTO_COMPILE=0 $(GUILE) -L $(top_srcdir)/guile/modules
21 noinst_HEADERS = errors.h utils.h
23 EXTRA_DIST =                                    \
24   make-enum-map.scm make-smob-types.scm         \
25   make-enum-header.scm make-smob-header.scm     \
26   make-session-priorities.scm
28 BUILT_SOURCES = enum-map.i.c smob-types.i.c enums.h smobs.h     \
29                 priorities.i.c                                  \
30                 core.x errors.x
32 CLEANFILES = $(BUILT_SOURCES)
34 guileextension_LTLIBRARIES  = guile-gnutls-v-2.la
35 guile_gnutls_v_2_la_LDFLAGS = -module
37 # Linking against GnuTLS.
38 GNUTLS_CORE_LIBS  = $(top_builddir)/lib/libgnutls.la
40 # Linking against Gnulib modules.
41 GNULIB_LIBS    = $(top_builddir)/gl/libgnu.la
42 GNULIB_CFLAGS  = -I$(top_builddir)/gl -I$(top_srcdir)/gl
45 guile_gnutls_v_2_la_SOURCES = core.c errors.c utils.c
46 guile_gnutls_v_2_la_CFLAGS =                    \
47   $(AM_CFLAGS) $(GNULIB_CFLAGS) $(GUILE_CFLAGS)
48 guile_gnutls_v_2_la_LIBADD = \
49         $(GNUTLS_CORE_LIBS) $(GNULIB_LIBS) \
50         $(GUILE_LDFLAGS)
52 AM_CPPFLAGS = \
53         -I$(top_srcdir)/lib/includes \
54         -I$(top_builddir)/lib/includes  \
55         -I$(top_srcdir)/extra/includes \
56         -I$(top_builddir) \
57         -I$(builddir)
59 if HAVE_GCC
61 # Generated `.x' files and Guile's `scm_c_define_gsubr ()' require
62 # `-Wno-strict-prototypes'.  This trick makes sure `-Wno-s-p' appears
63 # after `-Ws-p'.
64 AM_CFLAGS = -Wno-strict-prototypes
66 # The `-fgnu89-inline' option appeared in GCC 4.1.3.
67 if HAVE_GCC_GNU89_INLINE_OPTION
69 # Guile and GMP currently rely on GNU inline semantics, not C99 inline.
70 AM_CFLAGS += -fgnu89-inline
72 endif HAVE_GCC_GNU89_INLINE_OPTION
74 endif HAVE_GCC
77 enums.h: $(srcdir)/make-enum-header.scm
78         $(GUILE_FOR_BUILD) $^ > $@
80 enum-map.i.c: $(srcdir)/make-enum-map.scm
81         $(GUILE_FOR_BUILD) $^ > $@
83 smobs.h: $(srcdir)/make-smob-header.scm
84         $(GUILE_FOR_BUILD) $^ > $@
86 smob-types.i.c: $(srcdir)/make-smob-types.scm
87         $(GUILE_FOR_BUILD) $^ > $@
89 priorities.i.c: $(srcdir)/make-session-priorities.scm
90         $(GUILE_FOR_BUILD) $^ > $@
93 # C file snarfing.
95 # `$(GUILE_CFLAGS)' may contain a series of `-I' switches so it must be
96 # included here, even though we'd really want `$(GUILE_CPPFLAGS)'.
97 snarfcppopts = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
98                $(CFLAGS) $(AM_CFLAGS) $(GUILE_CFLAGS)
100 .c.x: $(BUILT_SOURCES)
101         $(guile_snarf) -o $@ $< $(snarfcppopts)
103 # Target used by doc/Makefile, to create all built sources necessary
104 # for generating the manual.
106 .PHONY: built-sources
107 built-sources: $(BUILT_SOURCES)