MakeFile-Creator for makefiles management in c/c++ projects.
Project description
MakeFile-Creator
MakeFile-Creator is an utility for managing makefiles in C/C++ projects.
Getting started
These instructions will get you a copy of the project up and running on your local machine.
Prerequisites
Python >= 3.6
Installing
Install the package from Python Package Index using the command:
pip3 install makefile-creator
Configuration
cd /your/project/path
You have to create a configuration file, using JSON format as follows:
You may want to use this command from terminal (or open your favourite text editor, and after you've done, save as mfc.config.json
):
touch mfc.config.json
File content should be something like this:
{
"target": "your_project_name",
"c_flags": [list, of, compiler, flags],
"cc": "g++",
"extensions": ["cc", "cpp"],
"rm": "rm -v",
"ignore_paths": [
"comma/separated/list/of/paths/you/want/to/ignore",
"path1",
"path2",
"and/so/on/..."
]
}
Meaning:
-
target
: you project name. -
c_flags
: a list of compiler flags, like:["-Wall", "-lpthread", "-other_flags..."]
. -
cc
: compiler command ("g++"
, by default). -
extensions
: source files extensions list (["cpp"]
, by default). -
rm
: command to use formake clean
(rm -v
, by default). -
ignore_paths
: paths into project source tree to ignore.
Other commands:
clean
:true
, if you want to clean redundant dependencies .d files (false
, by default).custom_targets
: use as follows:
"custom_targets": {
"target_name": "command",
"other_target": "other_command",
...
}"
ld_flags
: similar toc_flags
, but flags set using this command will only be used at linkage.
Make sure to save the file as mfc.config.json
!
Run the script:
python3 -m makefile_creator
Authors
- Romulus-Emanuel Ruja (romulus-emanuel.ruja@tutanota.com)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for makefile_creator-0.0.4b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2510914809db1c7cb14c27c0086ca705b2b356e7f91335e73fea7b148ab49e9 |
|
MD5 | c2eab99c278fda154bd1e7753d15177a |
|
BLAKE2b-256 | d7a7994aaee2e615b42d9b5617cc19e8f1e7c54d7e631fa6d7ea2fa80b8fd7cf |