title: Executing MSYS from cmd.exe with arguments
body: <p>I am trying to learn the <a href="http://en.wikipedia.org/wiki/WxWidgets" rel="nofollow noreferrer">wxWidgets</a> library, using <a href="http://en.wikipedia.org/wiki/MinGW" rel="nofollow noreferrer">MinGW</a> and msys to compile the code. So far so good, but I can not find a way to send a command to MSYS through CMD.exe.</p>
  
  <p>I use <a href="http://en.wikipedia.org/wiki/Sublime_Text" rel="nofollow noreferrer">Sublime Text</a> to edit files, and it has an option to run makefiles. I want my makefiles to be able to open an instance of MSYS and send the g++ command and arguments to it.</p>
  
  <p>Example: <br/>
  Right now my makefile is:</p>
  
  <pre><code>test.exe : main.cpp
          g++ -s main.cpp -o test.exe `wx-config --cxxflags` `wx-config --libs`
  </code></pre>
  
  <p>When mingw32-make goes to run the g++ command, it sends it to cmd.exe, which doesn't handle the back-ticks and wx-config jazz. (But the command does work when run from inside MSYS and the directory holding main.cpp)</p>
  
  <p>I want to be able to use something like...</p>
  
  <pre><code>msys --command g++ -s main.cpp*...etc..*
  </code></pre>
  
  <p>So it will load the MSYS enviroment and run the command. Is this possible?</p>
  
  <p>I am a huge makefile newbie, so if there is an easier way, please show me!</p>