Simple C++ Makefile Example
Simple C++ Project Makefile Example
Simple C++ Makefile Example launched on January 26, 2018 with 7 votes, #1,179 of 3,021 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 8 years on.
What it does
This is a very simple C++ Makefile example and associated template, that can be used to get small to medium sized C++ projects up and running quickly and easily. The Makefile assumes source code for the project is broken up into two groups, headers (*.hpp) and implementation files (*.cpp) . The source code and directory layout for the project is comprised of three main directories (include, src and build) , under which other directories containing code would reside. The layout used in the example is as follows: ─┬ [ Project ] │ ├──● Makefile │ ├──┬ [ build ] │ │ │ ├─── [ objects ] │…from partow.net
Does a similar job
all alternatives →
I built a Cargo-like build tool for C/C++Apr 2026 · github.com · ▲177I love C and C++, but setting up projects can sometimes be a pain. Every time I wanted to start something new I'd spend the first hour writing CMakeLists.txt, figuring out find_package, copying boilerplate from my last project, and googling why my library isn't linking. By the time the project was actually set up I'd lost all momentum. So, I built Craft - a lightweight build and workflow tool for C and C++. Instead of writing CMake, your project configuration goes in a simple craft.toml: [project] name = "my_app" version = "0.1.0" language = "c" c_standard = 99 [build] type = "executable"…
Introducting C+2012 · github.com · ▲148
One makefile to rule them all2023 · gist.github.com · ▲57Generic drop in Makefile. GitHub Gist: instantly share code, notes, and snippets.
World of C++2021 · play.google.com · ▲76Develop your programming skills or start your coding journey
A dbg(...) macro for C++2019 · github.com · ▲162A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.
- OCOnline C/C++ to assembly visualizer [Weekend Project]2012 · assembly.ynh.io · ▲149
More work this month
the category →
Endless lofi beats composed live in your browser, over pixel-art nights in Paris, Tokyo, New York, Hong Kong, Sydney, San Francisco and more. Free, no sign-up.
Work · 25d ago · loficities.com
Smooth Recorder▲257Mac screen recordings that look edited when you hit stop
Work · 19d ago · smoothrecorder.com


Work · 13d ago · readrare.com
Source: Show HN post ↗
Launched alongside, January 2018
the whole month →
Buy Me a Coffee▲1,411A simple, meaningful way to fund your creativity.
Growth · 2018 · buymeacoffee.com


Indie Hackers Community▲1,095Work together to build profitable businesses & side projects
Work · 2018 · indiehackers.com
Typeform 2.0▲793Build beautiful conversational forms, surveys and more
Life & fun · 2018 · typeform.com
