{"id":20109509,"url":"https://github.com/agentcooper/cpp-makefile-example","last_synced_at":"2026-06-10T10:31:36.554Z","repository":{"id":199981599,"uuid":"704094888","full_name":"agentcooper/cpp-makefile-example","owner":"agentcooper","description":"Example Makefile for a C++ project with incremental compilation and automatic resolution of dependencies (header files)","archived":false,"fork":false,"pushed_at":"2023-10-12T14:26:49.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T18:28:38.429Z","etag":null,"topics":["cpp","makefile"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agentcooper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-12T14:22:11.000Z","updated_at":"2023-10-14T21:04:09.000Z","dependencies_parsed_at":"2023-10-15T00:07:18.413Z","dependency_job_id":null,"html_url":"https://github.com/agentcooper/cpp-makefile-example","commit_stats":null,"previous_names":["agentcooper/cpp-makefile-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agentcooper/cpp-makefile-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fcpp-makefile-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fcpp-makefile-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fcpp-makefile-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fcpp-makefile-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentcooper","download_url":"https://codeload.github.com/agentcooper/cpp-makefile-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fcpp-makefile-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","makefile"],"created_at":"2024-11-13T18:08:40.925Z","updated_at":"2026-06-10T10:31:36.534Z","avatar_url":"https://github.com/agentcooper.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example Makefile for a C++ project with incremental compilation and automatic resolution of dependencies (header files).\n\n## Demo\n\nInitial compilation:\n\n```bash\n% make\ng++ -Wall -std=c++20 -MMD -c src/A.cpp -o build/A.o\ng++ -Wall -std=c++20 -MMD -c src/B.cpp -o build/B.o\ng++ -Wall -std=c++20 -MMD -c src/main.cpp -o build/main.o\ng++ -Wall -std=c++20 -MMD -o main build/A.o build/B.o build/main.o\n```\n\nEdit header dependency:\n\n```bash\nsed -i '' 's/John/Jane/' src/C.hpp\n```\n\nOnly B module is rebuilt on recompilation: \n\n```bash\n% make                            \ng++ -Wall -std=c++20 -MMD -c src/B.cpp -o build/B.o\ng++ -Wall -std=c++20 -MMD -o main build/A.o build/B.o build/main.o\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Fcpp-makefile-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentcooper%2Fcpp-makefile-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Fcpp-makefile-example/lists"}