{"id":19309649,"url":"https://github.com/roxma/easymake","last_synced_at":"2025-08-13T06:10:31.590Z","repository":{"id":19307376,"uuid":"22545115","full_name":"roxma/easymake","owner":"roxma","description":"A handy makefile for simple C/C++ applications","archived":false,"fork":false,"pushed_at":"2022-08-01T13:15:31.000Z","size":19,"stargazers_count":140,"open_issues_count":2,"forks_count":66,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-03-15T14:04:48.553Z","etag":null,"topics":["auto","c","css","easy-to-use","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roxma.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}},"created_at":"2014-08-02T11:45:58.000Z","updated_at":"2024-01-24T20:12:36.000Z","dependencies_parsed_at":"2022-09-02T23:21:52.151Z","dependency_job_id":null,"html_url":"https://github.com/roxma/easymake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Feasymake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Feasymake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Feasymake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Feasymake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roxma","download_url":"https://codeload.github.com/roxma/easymake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223898060,"owners_count":17221689,"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":["auto","c","css","easy-to-use","makefile","makefile-template"],"created_at":"2024-11-10T00:20:06.649Z","updated_at":"2024-11-10T00:20:07.252Z","avatar_url":"https://github.com/roxma.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easymake\n\n## Introduction ##\n\nEasymake is a handy makefile for C/C++ applications on Linux system. For\nsimple applications, you don\u0026rsquo;t even need to write a single line of\nmakefile code to build your target with easymake.\n\nFeatures description:\n\n- Finds and compiles all C/C++ source files in the directory recursively\n  (optional). Places the object files and target files in a separate\n  directory.\n- Only re-compiles the changed and affected source files. That is, if you\n  modify your header `foo.h`, all your source files with `#include \"foo.h\"`\n  will be re-compiled.\n- Supports Simple unit testing.\n- Handles more than one entry point in the project.\n- Support both [static library(libfoo.a)](samples/staticLib/Makefile) and\n  [shared library(libfoo.so)](samples/so/Makefile) building.\n\n\n***NOTICE***: Easymake is designed to be easy to use on simple applications,\nnot as a highly flexible or extensible template. If you want more\ncustomization, you might need to look for [a small and simple\nexample](https://gist.github.com/samuelsmal/e43f2001cfc81fee18b6) for start.\n\n## Getting Started ##\n\n### Basics\n\n```\ngit clone https://github.com/roxma/easymake\ncd easymake/samples/basics\ncp ../../easymake.mk Makefile\nmake\n./bin/add  # if you rename add.cpp to myprogram.cpp, then you get ./bin/myprogram.cpp\n```\n\n![basics](https://cloud.githubusercontent.com/assets/4538941/24320876/fcd504c4-1179-11e7-969f-d2f2c40270e9.gif)\n\n### Unit Testing\n\nFiles with `*_test.cpp` or `*_test.c` pattern will be used for testing\n(inspired by golang).\n\n![unit_test](https://cloud.githubusercontent.com/assets/4538941/24320877/fea9002a-1179-11e7-8b2c-05149689fe57.gif)\n\n### Multi Entries\n\n![multi_entries](https://cloud.githubusercontent.com/assets/4538941/24320879/00e48756-117a-11e7-9dcc-d14729e26dca.gif)\n\n### Options\n\nEasymake is trying to follow the Makefile Conventions\n[(1)](https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#Implicit-Variables)\n[(2)](https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html).\nThe following options are supported.\n\n- `CFLAGS` Extra flags to give to the C compiler.\n- `CXXFLAGS` Extra flags to give to the C++ compiler.\n- `LDFLAGS` Extra flags to give to compilers when they are supposed to invoke the linker\n- `LDLIBS` Library flags or names given to compilers when they are supposed to invoke the linker\n- `ARFLAGS` Flags to give the archive-maintaining program; default `cr`\n\n### Recommended Style\n\nIn the GIFs, I simply copy `easymake.mk` into my souce code directory as a\nmakefile. However, for code simplicity, I recommend the following style:\n\n```\nCXXFLAGS=-O2\n\n# other options\n# ...\n\ninclude /path/to/easymake.mk\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Feasymake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froxma%2Feasymake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Feasymake/lists"}