An Internationalized Software Project With Auto Tools
Prev A Simpe C Project Next

A Simple C Project

First let's create a very simple C project, which will be built by the gnu auto tools lateron. The first step is to create a home directory for the whole project.
# mkdir testproj
# cd testproj
Next the sample source files are created. They are located in the subdirectory 'src' in order not to mix them up with the other files created shortly.
# mkdir src
# touch src/main.cpp
# touch src/testproj.h
The contents of both files is:

src/main.cpp

#include <stdio.h>
#include "testproj.h"

int main(int)
{
	printf(HELLO_WORLD);
}


src/testproj.h

#define HELLO_WORLD "Hello world!\n"

Compiling this manually is quite simple. But here the gnu auto tools should do the job, which is described in the next chapters.


Prev Home Next
Overview Auto Tools Overview