title: Android NDK: No rule to make target
body: <p>I'm trying to build a simple Android application using NDK.
  Here are the contents of my Android.mk</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)  
  
  include $(CLEAR_VARS)  
  
  LOCAL_LDLIBS := -llog  
  
  LOCAL_MODULE    := myNDK
  LOCAL_SRC_FILES := native.c
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>And when I'm running ndk-build I get:</p>
  
  <blockquote>
    <p>make: <em>*</em> No rule to make target
    <code>'/native.c', needed by
    </code>'/Users/ivan/Documents/workspace/TestNDK/obj/local/armeabi/objs/myNDK/native.o'.
    Stop.</p>
  </blockquote>
  
  <p>So the problem is obviously that make is searching the source files in the root directory and if I copy native.c to my root folder everything works perfectly.</p>
  
  <p>The question is: what should I specify in my Android.mk to set the LOCAL_PATH to my working jni folder.</p>