GNU Build

From wiki.network-crawler.de
Jump to: navigation, search

Some notices about how to use make utils

After creating a Makefile.am and configure.in

For example:

`Makefile.am' 
 
  bin_PROGRAMS = hello
hello_SOURCES = hello.c

`configure.in' 
 
  AC_INIT(hello.c)
AM_INIT_AUTOMAKE(hello,0.1)
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)

run `autoconf':

% aclocal
% autoconf
% touch NEWS README AUTHORS ChangeLog
% automake -a

Now it is possible to:

% ./configure
% make
% ./hello