FrontPage FindPage TitleIndex RecentChanges UserPreferences E D R S I H C
 
GNU Autotools
GNUMakeMoniWikiBugsMoniWikiIdeasHaskellServerProgrammingTempScrap › GNUAutotools

minimal hello


  • Makefile.am
bin_PROGRAMS = hello
hello_SOURCES = hello.cc
  • configure.in
AC_INIT(hello, 1.0)
AM_INIT_AUTOMAKE
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_CHECK_HEADERS(iostream)
AC_OUTPUT(Makefile)
  • hello.cc
// Hello World Program in C++
#include <iostream>

using namespace std;

int main(void)
{
    cout <<"Hello, world" <<endl;
    return 0;
}

$ aclocal;autoconf;automake --add-missing --copy;./configure;make

There are much more complex version of hello; see [http]GNU hello.


Links

last modified 2009-03-09 12:46:45
EditTextFindPageDeletePageLikePages