{"id":21961698,"url":"https://github.com/vpoulailleau/basicmakefile","last_synced_at":"2025-07-25T08:09:03.691Z","repository":{"id":96873464,"uuid":"166089284","full_name":"vpoulailleau/basicmakefile","owner":"vpoulailleau","description":"A basic makefile for C project","archived":false,"fork":false,"pushed_at":"2020-06-17T06:04:28.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T20:30:27.789Z","etag":null,"topics":["c","gcc","gcc-compiler","make","makefile","makefile-snippets","makefile-template"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vpoulailleau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-16T18:23:58.000Z","updated_at":"2024-06-18T23:54:14.000Z","dependencies_parsed_at":"2023-03-22T06:17:44.705Z","dependency_job_id":null,"html_url":"https://github.com/vpoulailleau/basicmakefile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vpoulailleau/basicmakefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpoulailleau%2Fbasicmakefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpoulailleau%2Fbasicmakefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpoulailleau%2Fbasicmakefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpoulailleau%2Fbasicmakefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpoulailleau","download_url":"https://codeload.github.com/vpoulailleau/basicmakefile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpoulailleau%2Fbasicmakefile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266977897,"owners_count":24015486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["c","gcc","gcc-compiler","make","makefile","makefile-snippets","makefile-template"],"created_at":"2024-11-29T10:17:33.870Z","updated_at":"2025-07-25T08:09:03.681Z","avatar_url":"https://github.com/vpoulailleau.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basicmakefile\n\nA very basic Makefile for C project:\n\n* debug and release mode\n* dependency detection\n* strict ANSI-C\n\n## Usage\n\n* copy the Makefile in the source directory\n* if using Visual Studio Code, you can also copy `.vscode` folder\n  * add a task to build the program\n  * add a task to clean the directory\n  * add a debug launch\n  * make sure that gcc and gdb is in your PATH environment variable\n  * have a look at https://code.visualstudio.com/docs/languages/cpp\n* configure the Makefile if needed\n* build the program\n\n## Configure the Makefile\n\n`DEBUG` can be set to `yes` to enable debug symbol generation, allowing the usage of a debugger.\n\n`EXEC` contains the name of the executable file (`program.exe` by default).\n\n`SRC` contains the list of source files (`*.c` by default).\n\n`CFLAGS` and `LDFLAGS` respectively contains c compilation flags and link flags.\n\n## Build the program\n\n```shell\ncd directory_containing_makefile\nmake\n```\n\n## Clean the directory\n\n```shell\ncd directory_containing_makefile\nmake clean\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpoulailleau%2Fbasicmakefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpoulailleau%2Fbasicmakefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpoulailleau%2Fbasicmakefile/lists"}