This repository contains a bare minimum C project with autotools setup script.
In order to create a new project;
- clone this repo;
- rename c-template directory accordingly to your project;
- enter project directory and remove the .git dir;
- handle configure.ac:
- change AC_INIT macro value;
- edit the file as you like/need;
- edit/change LICENSE file (change name or license if you don't like MIT);
- edit README.md with some bare info on your project;
- optionally edit the Makefile.am and .gitignore files (see notes below);
- init a new repo with git (remember to setup user.email/user.name and stuff like that);
- start coding.
There are some assumptions in this template layout:
- there is only a Makefile.am in the project dir, I found it clearer for simple tests/ideas;
- the makefile will generate a main executable from a main.c source file;
- a default .gitignore is present for many C artifacts, including an entry for main, if you want a different name for you executable change the .gitignore also.