nowfound

Work · January 26, 2018

SC

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 · ▲177

    I 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 · ▲57

    Generic drop in Makefile. GitHub Gist: instantly share code, notes, and snippets.

  • World of C++2021 · play.google.com · ▲76

    Develop your programming skills or start your coding journey

  • A dbg(...) macro for C++2019 · github.com · ▲162

    A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.

  • OC

More work this month

the category →

Source: Show HN post ↗

Launched alongside, January 2018

the whole month →
  • A simple, meaningful way to fund your creativity.

    Growth · 2018 · buymeacoffee.com

  • Zero-fee cryptocurrency trading from Robinhood 💸

    Commerce · 2018

  • Simple landing pages for your startup

    Dev tools · 2018

  • Work together to build profitable businesses & side projects

    Work · 2018 · indiehackers.com

  • Build beautiful conversational forms, surveys and more

    Life & fun · 2018 · typeform.com

  • Resume.io▲731

    Build your job-winning resume in minutes

    Work · 2018 · resume.io