title: Can I search directory and subdirectories for header files?
body: <p>Is is possible to instruct <strong>g++</strong> to search a folder recursively for header files? In my example I would like <strong>g++</strong> to search</p>
  
  <blockquote>
    <p>/ARDrone_SDK_2_0_1/ARDroneLib/Soft/</p>
  </blockquote>
  
  <p>and all subdirectories for header files. Can this be done? Here's a simple <code>Makefile</code> example:</p>
  
  <pre><code>C=g++
  CFLAGS=-c -Wall
  LDFLAGS=
  INC1=/ARDrone_SDK_2_0_1/ARDroneLib/Soft/ &lt;- can this be recursive?
  INCDIRS= -I${INC1}
  SOURCES=src/dronevid.cpp
  OBJECTS=$(SOURCES:.cpp=.o)
  EXECUTABLE=build/dronevid
  
  all: $(SOURCES) $(EXECUTABLE)
  
  $(EXECUTABLE): $(OBJECTS) 
      $(CC) $(LDFLAGS) $(OBJECTS) -o $@
  
  .cpp.o:
      $(CC) $(CFLAGS) $(INCDIRS) $&lt; -o $@
  </code></pre>