Giter Site home page Giter Site logo

mgen's Introduction

mgen - Simple makefile generator

Makefile generator using some flags and "vars" to create makefile easier. It is crated for Windows but you can edit first function (i.e. GetExePath(...)) for properly work for another system.

Getting started

Just add mgen folder to PATH string.

User guide

There are some flags that you can use:

First use:

  1. Create directory Test with simple any.cpp file.
  2. Go to path with Test in console.
  3. Type mgen in console.

Now put any.cpp to any folder (e.g. Test/Src) and type mgen again. It will find every single .cpp file in folder with project. Works with multiple files and folders.

Assign flags:

Can have only one assigned value: -S -O -a -c

Multiple flags:

Add more than one value to unique strings: -I -L -l -v -f

Help command

For more infomation about flags type...

mgen help

...or read help file in directory with mgen.

Additional files

Commands in one file

You can create mgen file in the same place when the makefile will be created and put there any commands, separated by enters or spaces. When you run mgen with -c (clear commands) flag it will ignore searching mgen file.

Global vars with commands

In directory with mgen just edit adders file and put there some commands. Separate commands +VAR_NAME for create new vars. You can run all commands by typing -v flag with var name (e.g. -vSFML).

Example of adders file:

+SFML
-lsfml-graphics -lsfml-system -lsfml-window
-ID:\Dev\Libraries\SFML\2.4.2\include
-LD:\Dev\Libraries\SFML\2.4.2\lib
+Boost
-ID:/Dev/CORE/boost_1_65_1
-LD:/Dev/CORE/boost_1_65_1/stage/lib

Commands examples

mgen
mgen -Ssrc
mgen -fstd=c++11 -Ssrc -Oobj
mgen -ISFML/include -LSFML/lib -lsfml-window -lsfml-system -lsfml-

Built With

  • Boost - to search directories easier

mgen's People

Contributors

metriko avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.