Project Structure

We'll start with a basic sample project and build on it as we continue our exploration of source-level software distribution. I'll call our project Jupiter and I'll create a project directory structure using the following commands:

$ cd projects
$ mkdir -p jupiter/src
$ touch jupiter/Makefile
$ touch jupiter/src/Makefile
$ touch jupiter/src/main.c
$ cd jupiter
$

We now have one source code directory called src, one C source file called main.c, and a makefile for each of the two directories in our project. Minimal, yes; but this is a new endeavor, and everyone knows that the key to a successful open source software project is evolution. Start small and grow as needed—and as you have the time and inclination.

Let's start by adding ...

Get Autotools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.