title: compiling cuda file in makefile error
body: <p>I have made a makefile in order to compile my files:</p>
  
  <pre><code>CFLAGS        = -O3 -Wall -I /usr/local/cuda/include/ 
  NVCCFLAGS     = -O3 -arch sm_20
  LDFLAGS       = -O3 -L/usr/local/cuda/lib64 -lcudart
  EXE           =  runAPP
  
  app.o:app.cu
  $(NVCC) $(NVCCFLAGS) -c $&lt; -o $(CPPFLAGS) $(LIB_PATH) $(LDFLAGS) $@
  
  $(EXE): app.o 
      $(NVCC) $(NVCCFLAGS) $(CFLAGS) $(LDFLAGS) -o $@  $(CPPFLAGS) $(LIB_PATH) app.o  \
          -lANN_char -lz
      cp $@ ../bin
  </code></pre>
  
  <p>But I got this problem:</p>
  
  <p>app.cpp:26:26: error: cuda_runtime.h: No such file or directory
  app.cpp:27:18: error: cuda.h: No such file or directory</p>
  
  <p>This is how I include them in the app.cpp:</p>
  
  <pre><code>#include &lt;cuda.h&gt;
  #include &lt;cuda_runtime.h&gt;
  </code></pre>
  
  <p>Why is this problem?</p>
  
  <p>I search something on google, they said that the app.cpp must be always app.cu, is it true? </p>
  
  <p>Thanks in advance. </p>