title: Makefile not using include/library paths?
body: <p>Well, after 3 hours of researching, I'm about to go insane, so I figure it's time to pass it off to some new eyes.</p>
  
  <pre><code>CXXFLAGS        = -g -Wall
  OBJS            = main.o
  PROG            = test
  INCLUDES        = -I /usr/include/mysql -I /usr/local/include
  LIBS            = -L /usr/lib/mysql -l libmysqlclient.so.15.0.0 -L /usr/local/lib -l libmysqlpp.so.3.1.0
  
  all:            $(PROG)
  
  ${PROG}:        $(OBJS)
              $(CXX) $(INCLUDES) -o $(PROG) $(OBJS) $(LIBS)
  
  clean:;         $(RM) -f $(PROG) core *.o
  </code></pre>
  
  <p>There's something wrong with the include paths, because I get errors that mysql_version.h does not exist when it clearly does exist in /usr/include/mysql.</p>
  
  <p>Checking the first part out of the ouput, it says</p>
  
  <pre><code>g++ -g -Wall   -c -o main.o main.cpp
  </code></pre>
  
  <p>which makes me think that I've formatted something in the Makefile wrong (due to the extra spaces and lack of include/library paths). However, I've looked at dozens of manuals and articles on Makefiles and the g++ options and... no progress.</p>
  
  <p>I assume this should be a simple fix. Please, please help (do you sense my despair?).</p>
  
  <p>On another note, do you think specifying the library specifically is necessary? I had this stuff running in XCode just fine, but I'm trying to migrate the code to my web server... the Makefile has stopped all progress, and I figure it's something I should learn from.</p>