title: How do you compile just a .h file in a makefile?
body: <p>I have a makefile that creates object files for two classes (and main) and one of those classes is just defined in a .h file. In my makefile I have a line that says</p>
  
  <pre><code>FileName.o: FileName.h
    g++ -c FileName.h
  </code></pre>
  
  <p>but when I try to compile it says it can't find  FileName.o</p>
  
  <p>Do I have to create FileName.cpp in order to get this to compile?</p>