A minimal project scaffolding tool for C. Think cargo new but for C projects.
Run one command and get a ready-to-compile project with a proper directory structure, Makefile, and boilerplate already in place.
cinit new myprojectThis creates the following structure:
myproject/
├── src/
│ └── main.c
├── Makefile
├── README.md
└── .gitignore
The generated project compiles immediately:
cd myproject
make build
./myproject
# Hello, World!Requires GCC and Make.
git clone https://github.com/arferreira/cinit.git
cd cinit
make build
make installThis compiles the binary and copies it to /usr/local/bin/.
To uninstall:
make uninstallsrc/main.c — A hello world starter file.
Makefile — build and clean targets using GCC. The binary name matches your project name.
README.md — A blank project readme with your project name as the title.
.gitignore — Ignores object files (*.o).
- GCC
- Make
- A project name longer than 3 characters
MIT