TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Complete C++ Makefile Example

6 pointsby ArashPartowover 5 years ago

1 comment

duelingjelloover 5 years ago
This uses GNU-specific extensions. Always use the GNUmakefile filename instead of just Makefile to avoid this sort of confusion. And, to allow for environment variable and CLI overrides, use the ?= operator instead of := for flags and command names.<p>Even better, use CMake, Conan or Bazel instead.