Creating bin program is really easy using autotools I need to just define two files.
`Makefile.am'
bin_PROGRAMS = hello
hello_SOURCES = hello.c
`configure.in'
AC_INIT(hello.c)
AM_INIT_AUTOMAKE(hello,1.0)
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
can any body give a smallest example for creating static library using autotools ?
configure.in
is seriously outdated! Please read the "Hello World" example from the Automake manual for the current syntax. sourceware.org/automake/automake.html#Hello-World – Divvyconfigure.in
instead ofconfigure.ac
, it is likely to be outdated. I have a tutorial with up-to-date syntax at lrde.epita.fr/~adl/autotools.html if you want. – Divvy