- Notifications
You must be signed in to change notification settings - Fork0
Examples of Makefiles and various make concepts.
License
bmorcos/make_examples
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a basic overview of somemake concepts including some examples. Forthe most part I didn't use code/compile examples, just simple examples ofcommands with a single code example at the end.
These examples were put together with:
- Ubuntu 20.04
- GCC v9.3.0
- GNU Make v 4.2.1
TheGNU make docshave detailed documentation and examples. I would also recommend (no affiliation)what I think is a very well organized and written tutorial that explains coreconcepts in detail with examples:Learn Makefilesby Chase Lambert.
Each example directory will have its own README with some details, but roughlythe examples are:
Very simple example showing basic structure of targets and dependencies.
This example is similar in behaviour to the basic example but it makes use ofsome variables to make the rules more manageable for updates or long lists.
This example similarly builds some text files, but makes use of different typesof variable assignments, wildcards, and dependencies.
This example just goes through some common built-in functions and a simpleuser-defined function as an example.
Example of including multiple Makefiles to create a modular build system.
This is a simple hello_world C/C++ project to show a more real-world example ofMakefile usage. The Makefile is more complex than necessary for the scale ofthe project but hopefully it will highlight some good practices.
About
Examples of Makefiles and various make concepts.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.