DEV Community

Swebert Correa
Swebert Correa

Posted on

Just make it!

If you have ever worked on a somewhat big C project, you can get lost in a pile of files! Just working out the dependencies can get frustrating. That is why many people resort to using the Makefile, a one-stop solution to a single command compilation process.

However writing a Makefile can be quite cumbersome if you list down all the files and dependencies. Instead, I built an opinionated one, where you just follow some already prevailing conventions, and you're good to go!

So how exactly do we use it? We sort our code into the appropriate folders, and then run make! It's that simple.

You could obviously devise some more constrained targets, but generally, it can handle any small project you are tinkering on.

Top comments (0)