Création d'une bibliothèque statique avec automake
Bonjour,
Je souhaiterais créer une bibliothèque statique en utilisant les autotools.
Les .h et .cpp sont situés dans un répertoire SRC.
Voici mes fichiers :
configure.ac :
Code:
1 2 3 4 5 6 7
| AC_INIT([SUPER_RESO], [1.0], [bug-report@adress])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CXX
AC_CONFIG_HEADERS([config.h])
AC_CHECK_HEADERS([iostream])
AC_CONFIG_FILES([Makefile SRC_C/Makefile)
AC_OUTPUT |
Makefile.am:
SRC/Makefile.am:
Code:
1 2
| noinst_LIBRARIES = libsrc.a
libsrc_a_SOURCES =liste de mes .cpp séparés d'un espace |
Quand je fais autoreconf, j'obtiens l'erreur suivante:
Code:
1 2 3 4
| NONE:0: /usr/bin/m4: ERROR: end of file in string
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1 |
Je ne comprends pas cette erreur, est-ce que mes Makefile.am/configure.ac sont incorrects?