http://www.nevrax.org/tiki-pagehistory.php?page=NeLCompilingLinux&diff=4
the following has a sample automake project:
http://www.openismus.com/documents/linux/automake/automake.shtml
also here is a great online book:
http://sources.redhat.com/autobook
notes: form the above online book.
configure will generate the following
files:
`config.cache' results of the system tests
`config.log` each test run and the result
`config.status` used to recreate the current configuration.
`config.h' examines variability of the C and C++ programming
languages and implementations thereof.
`Makefile' One of the common functions of `configure' is
to generate `Makefile's and other files.
so basically generate config.h and Makefile
if things break look at config.log
NOTE:
The smallest project requires the user to provide only two files.
* `Makefile.am' is an input to automake.
* `configure.in' is an input to autoconf.
----------------------Makefile.am---------------------------------
bin_PROGRAMS = foonly
foonly_SOURCES = main.c foo.c foo.h nly.c scanner.l parser.y
foonly_LDADD = @LEXLIB@
This `Makefile.am' specifies that we want a program called `foonly'
to be built and installed in the `bin' directory when make
install is run. The source files that are used to build `foonly'
are the C source files `main.c', `foo.c', `nly.c' and `foo.h', the
lex program in `scanner.l' and a yacc grammar in `parser.y'.
------------------------------------------------------------------
No comments:
Post a Comment