Build-Me-C

Summary

This is a very early, and undocumented, project I made which is effectively my own version of Make or CMake. This was written as a minimalist Python script for building C/C++ projects when I was just starting to learn the languages.

Source Code

Documentation

Command

Usage: buildmec.py [-h] [-v] [-i [{cpp,c}]] [-c] [-r [RUN ...]]

Options

-h, --help

Shows the program's help messages and exits.

-v, --version

Displays the current version of Build-Me-C.

-i, --init

Creates the buildmec.json config file and generates starter for either C or C++ depending on the supplied toolchain argument. If this option is set when a buildmec.json file already exists, the command will prompt to user if they would like to regenerate the config. Default toolchain: cpp

-c, --compile

Compiles the project using the buildmec.json configuration. Object files are compiled in the directory specified by the configured obj-path and the fully linked binary is placed in the directory specified by the configured bin-path.

-r, --run

Runs the fully compiled and linked binary specified by the path created by combining the configured bin-path and FINAL. All argumented provided after this option will be supplied as command-line argument for the target program. This options is typically used in conjunction with the -c option to compile and then run the program. This should be the last option provided.