{"id":22997794,"url":"https://github.com/raphaelcausse/makefile","last_synced_at":"2025-08-13T23:32:47.621Z","repository":{"id":129386839,"uuid":"528155668","full_name":"RaphaelCausse/Makefile","owner":"RaphaelCausse","description":"Makefile template for small / medium C projects.","archived":false,"fork":false,"pushed_at":"2024-08-19T17:21:54.000Z","size":62,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"v1","last_synced_at":"2024-08-19T20:34:54.541Z","etag":null,"topics":["c","linux-makefile","make","makefile","makefile-template"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaphaelCausse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-08-23T20:40:18.000Z","updated_at":"2024-07-06T17:49:05.000Z","dependencies_parsed_at":"2024-02-29T23:23:25.111Z","dependency_job_id":"90a6f757-7dc3-446a-be67-11c54518f536","html_url":"https://github.com/RaphaelCausse/Makefile","commit_stats":null,"previous_names":["raphaelcausse/makefile_c_cpp","raphaelcausse/makefile"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphaelCausse%2FMakefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphaelCausse%2FMakefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphaelCausse%2FMakefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphaelCausse%2FMakefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaphaelCausse","download_url":"https://codeload.github.com/RaphaelCausse/Makefile/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229787057,"owners_count":18124014,"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","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","linux-makefile","make","makefile","makefile-template"],"created_at":"2024-12-15T06:08:57.425Z","updated_at":"2024-12-15T06:08:57.975Z","avatar_url":"https://github.com/RaphaelCausse.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![OS](https://img.shields.io/badge/os-linux-blue.svg)](https://shields.io/)\n[![OS](https://img.shields.io/badge/os-windows-blue.svg)](https://shields.io/)\n\n# MAKEFILE\n\nMakefile template for small to medium sized C projects, for Linux and Windows.\n\nYou can build the project in two modes : **Release** or **Debug**.\n\nBy default, the build is in **Debug** mode.\n\nDeclare all the source files you want to compile in the `sources.mk`.\n\nPlease follow recommended project layout.\n\n\u003cbr\u003e\n\n# Table of Contents\n \n- [Project Layout](#project-layout)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Features](#features)\n- [Author](#author)\n\n\u003cbr\u003e\n\n## PROJECT LAYOUT\n\nTo use this makefile template properly, please follow the project layout bellow.\n```\n──┬─[ Project ]\n  │\n  ├──── LICENSE.md\n  ├──── README.md\n  │\n  ├──── Makefile\n  ├──── sources.mk   # Important: declare in that file all the source files to compile\n  │\n  ├──┬─[ src ]\n  │  │\n  │  ├──── *.c\n  │  ├──── *.h\n  │  ...\n  │\n  ...\n```\nNote that this layout of the project, including `src` directory and `sources.mk` file, is automatically created when executing the command : `make init`\n\u003cbr\u003e\n\n## INSTALLATION\n\n**Clone** this repository :\n```\ngit clone https://github.com/RaphaelCausse/Makefile.git\n```\n**Move** to the cloned directory :\n```\ncd Makefile\n```\n**Copy** the Makefile in your project at root level of your project directory.\n```\ncp Makefile \u003cpath_to_your_project\u003e\n```\n**Initialize** the project layout, in your project directory :\n```\ncd \u003cpath_to_your_project\u003e\nmake init\n```\n\n\u003cbr\u003e\n\n## USAGE\n\n**Update** the `sources.mk` file with the sources files to compile.\n\n**Update** the Makefile for compiler and linker options for your needs. Check the variables in the `#### PATHS ####` and `#### COMPILER ####` sections.\n\n**Build** the project in Release mode :\n```\nmake release\n```\n**Build** the project in Debug mode :\n```\nmake debug\n```\n**Run** the target in Release mode (with optional arguments) :\n```\nmake run\nmake run ARGS=\"your arguments\"\n```\n**Run** the target in Debug mode (with optional arguments) :\n```\nmake rund\nmake rund ARGS=\"your arguments\"\n```\n\u003cbr\u003e\n\n## FEATURES\n\n**Clean** the project by removing generated files :\n```\nmake clean\n```\n**Display** info about the project :\n```\nmake info\n```\n**Display** help message:\n```\nmake help\n```\n\u003cbr\u003e\n\n## AUTHOR\n\nRaphael CAUSSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelcausse%2Fmakefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelcausse%2Fmakefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelcausse%2Fmakefile/lists"}