title: -I flag not working in make file
body: <p>I just wrote simple make file to compile any number of files. When I add -I flag to add include directory, its not working.</p>
  
  <pre><code>    CC=g++
      CFLAGS=-I./inc
      DEPS = add.h mul.h
      OBJ = main.o add.o mul.o 
  
      %.o: %.c $(DEPS)
          $(CC) -c -o $@ $&lt; $(CFLAGS)
  
      main: $(OBJ)
          $(CC) -o $@ $^ $(CFLAGS)
  </code></pre>
  
  <p>following is the out put when I executed make. You can see -I./inc is missing</p>
  
  <pre><code>    ~/PGMS/testMakeFile &gt; make
      g++    -c -o main.o main.cc
      main.cc:1:17: fatal error: add.h: No such file or directory
  </code></pre>
  
  <p>I already wasted long time to resolve this, can someone help me to resolve this?  </p>