title: makefile not finding header file from -I include path
body: <p>I have the makefile given below. When I do <code>make</code> I get the following error</p>
  
  <pre><code>cc  -c -o timing.o timing.c
  test_c.c:5:17: fatal error: test.h: No such file or directory
   #include "test.h"
  </code></pre>
  
  <p>I have manually verfied that <code>test.h</code> is present in <code>../include</code> path. I am not sure why this is not finding the header file.It would be great if someone could help.Also I would expect <code>g++</code> instead of <code>cc</code></p>
  
  <pre><code># Makefile template for shared library
  
  CXX = g++ # C++ compiler                                                                                                                                                                     
  CXXFLAGS = -fPIC -Wall -Wextra -O2 -g -I../include #CXX flags
  LDFLAGS = -lboost_system -shared  # linking flags
  
  RM = rm -f  # rm command
  
  TARGET_LIB = libtest.a # target lib
  
  
  C_SRCS := test_a.c test_b.c 
  CPP_SRCS := test_c.cpp test_d.cpp 
  OBJS := $(C_SRCS:.c=.o) $(CPP_SRCS:.cpp=.o)
  
  .PHONY: all 
  
  all: ${TARGET_LIB}
  
  $(TARGET_LIB): $(OBJS) 
      $(CXX) $(CXXFLAGS) ${LDFLAGS} -o $@ $^  
  
  
  .PHONY: clean
  clean:
      -${RM} ${TARGET_LIB} ${OBJS} 
  </code></pre>
  
  <p>~                                        </p>