title: Android.mk relative or absolute paths?
body: <p>I'm trying to build a project using the android ndk (on Windows), and I'm having some issues specifically with the source files (<code>LOCAL_SRC_FILES</code> in the Android.mk)</p>
  
  <p>I'm trying to use relative paths to a parent folder such as</p>
  
  <p><code>LOCAL_SRC_FILES := ../../../src/main.cpp</code></p>
  
  <p>And when running ndk_build.cmd, it outputs the following error:</p>
  
  <pre><code>Compile++ thumb : GTP &lt;= main.cpp
  The system cannot find the file specified.
  make: *** [obj/local/armeabi/objs/GTP/__/__/__/src/.o] Error 1
  </code></pre>
  
  <p>So I tried using absolute paths:</p>
  
  <pre><code>LOCAL_SRC_FILES := D:/Path/To/src/main.cpp
  </code></pre>
  
  <p>Unfortunately this doesn't work because the <a href="https://stackoverflow.com/questions/601516/cygwin-make-error-target-pattern-contains-no"><code>:</code> causes issues on windows</a></p>
  
  <p>Is there any way I can specify source files in a relative directory (or absolute)? The reason I am asking is because I want to avoid making a symbolic link to the src folder if possible.</p>