This is a Windows environment initiator for MinGW-GCC.
Currently, the most outstanding feature of it is the make
command for mingw32-make.exe
.
Note: In order to use this, you need to have access to use
mklink
command in Windows command prompt.
env
folder into your destination directory. You can get it from this repository via clones or downloads (or whatever you prefer). (You are strongly recommended to put the env
folder in the root of your project directory)env\init.bat
to initialize the environment. (You may then set the name of the environment in the env\env_name.txt
)env\activate.bat
to activate the environment and use the mingw32-make.exe
via the make
command. (As long as you have MinGW-GCC set in your PATH variable)To deactivate the environment, simply run env\deactivate.bat
in the command prompt.
The script env\deinit.bat
will remove the env\bin\
directory from disk.
The script env\reinit.bat
will re-initialize the environment.
env
, which is under root directory, be able to be updated with git, you can follow these extra steps:keep_local\WinEnv4MinGW-GCC
under the root directory.mklink /J env .\keep_local\WinEnv4MinGW-GCC\env
under the root directory.env
folder with git under .\keep_local\WinEnv4MinGW-GCC\
.env\reinit.bat
every time it changes.env\reinit.bat
every time you switch to a new version.env\init.bat
will create a new directory env\bin\
and use which
and mklink
to create symbolic links to the MinGW-GCC executables.env\activate.bat
will add the env\bin\
directory to the PATH environment variable.env\deactivate.bat
will remove the env\bin\
directory from the PATH environment variable.env\deinit.bat
will remove the env\bin\
directory from disk.env\reinit.bat
will delete the env\bin\
directory’s contents and re-initialize the environment.