title: Set stack size in a makefile?
body: <p>I know how to set the stack size to unlimited in the command line:</p>
  
  <pre><code>ulimit -s unlimited
  </code></pre>
  
  <p>And, in bash, when I set the stack size to unlimited, my code runs and terminates successfully.</p>
  
  <p>Can I set the stack size to unlimited (or some specified size) in a makefile (with g++ as the compiler)? If so, how?</p>
  
  <p>Note: I can only submit my source files (*.cpp, *.h) and a makefile for my project. That is, (1) the makefile is run, (2) the code is run. So, no scripts, or other special instructions are executed beforehand, which is why the changes must be made in the makefile...unless anyone has other/better/brilliant ideas?</p>
  
  <p>Thanks in advance!</p>