title: makefile flags for debugging (needs symbolic information) -g flag didn't work
body: <p>I am working on a makefile and trying to compile it for debugging (I added -g and -Wall flag). Here are the relevant parts:</p>
  
  <pre><code>LDFLAGS     =-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib -L../../lib
  
  INCLUDE     =-I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/network/public -I$(COMMON_SRC) -I$(BNS_INCLUDE) -I. 
  
  CFLAGS      =$(INCLUDE) $(LDFLAGS) -g -Wall -Xt
  </code></pre>
  
  <p><strong>Error:</strong>
  I am trying to compile in unix and get an error:</p>
  
  <pre><code>cc: illegal option -Wall
  *** Error code 1
  clearmake: Error: Build script failed for "bess_interface.o"
  </code></pre>
  
  <p>I recall using <code>-Wall</code> before on Linux/Cygwin. </p>
  
  <p><strong>Question:</strong></p>
  
  <blockquote>
    <p>Why am I getting the <code>-Wall</code> error? Is it not a valid flag?</p>
  </blockquote>
  
  <p><strong>Note:</strong><br>
  I initially I had:  </p>
  
  <pre><code>CFLAGS      =$(INCLUDE) $(LDFLAGS) -g -Xt
  </code></pre>
  
  <p>and when I was trying to debug I'd get an error saying:</p>
  
  <blockquote>
    <p>No symbolic information for "main". Compile with <code>-g</code> flag.</p>
  </blockquote>
  
  <p>But the <code>-g</code> flag was right there!</p>