
Configurable Makefile for compiling executable and library projects, natively and for AVR.
- GCC
- Make
- Download MinGW or CygWin.
- Install it and add the path of the
.../bin/
folder to the environment variable “Path”.
When using MinGW, “make” is named “mingw32-make”.
- Download the repository
- Copy the ‘Makefile’ from the root of the repository to a new folder.
- Run
make init
to initialize the folder structure. - Place your source files inside
.../<project_name>/src/
. - Run
make
.
- Download the repository.
- Run
make init
inside.../ConfigurableMakefile/examples/Native project
to initialize the folder structure. - Do the same inside
.../ConfigurableMakefile/examples/Native project/deps/Ext1
and.../ConfigurableMakefile/examples/Native project/deps/Ext2
, these are separate library projects and dependencies of “Native project” example. - Run
make deps
inside.../ConfigurableMakefile/examples/Native project
to “make” the dependencies. - And finally run
make
to “make” the example project.
- Download the repository.
- In
.../ConfigurableMakefile/examples/AVR project/Makefile
edit the variables:MCU
,F_CPU
,UPLOADER
,PROGRAMMER
,PORT
… - Run
make init
inside.../ConfigurableMakefile/examples/AVR project
to initialize the folder structure. - Run
make
to “make” the example project - And finally run
make program
to upload it to an AVR target.
See the instructions inside Makefile
.
Run make help
.
The MIT License (MIT)
Copyright (c) 2019 Vasil Kalchev
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Leave a Reply