vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| OK, Where do I start, ah... Okay. I have a program that is composed of main.cpp, exception.hpp, exception.cpp, jaime.hpp and jaime.cpp. Having said that, I would like to build this program with the aid of Autoconf, Automake, for that I am reading information found at: http://sources.redhat.com/autobook/a...obook_toc.html I modified the Make.am, to look like this: ~~~~~~~~~~~~~~~~~~~~ ## Makefile.am -- Process this file with automake to produce Makefile.in bin_PROGRAMS = Jaime Jaime_SOURCES = main.cpp jaime.cpp jaime.hpp ../jme/exception/ exception.hpp ../jme/exception/exception.cpp nly.c scanner.l parser.y Jaime_LDADD = @LEXLIB@ ~~~~~~~~~~~~~~~~~~~~~~ and the configure.in to look like this: ~~~~~~~~~~~~~~~~~~~~~~~ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT([Jaime], [2.0], [some_name@some.server.org]) AM_INIT_AUTOMAKE([1.9 foreign]) AC_PROG_CC AM_PROG_LEX AC_PROG_YACC AC_CONFIG_FILES([Makefile]) AC_OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ aclocal does not produce any error or warnings, but 'autoconf' does: configure.in:11: warning: AC_PROG_LEX invoked multiple times autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from... aclocal.m4:961: AM_PROG_LEX is expanded from... configure.in:11: the top level automake --add-missing displayes the following: automake: Makefile.am: required file `./NEWS' not found automake: Makefile.am: required file `./README' not found automake: Makefile.am: required file `./AUTHORS' not found automake: Makefile.am: required file `./ChangeLog' not found automake: Makefile.am: not supported: source file `../jme/exception/ exception.hpp' is in subdirectory automake: Makefile.am: not supported: source file `../jme/exception/ exception.cpp' is in subdirectory automake: Makefile.am: C++ source seen but `CXX' not defined in `configure.in' Am I doing something wrong? what is it? T.I.A. |