title: GNUStep make with a precompiled (and prefixed) .pch header from Xcode project?
body: <p>I'm trying to build an Xcode project with GNUStep-make.  Right now the project is very small (3 classes) however it will grow to hundreds of classes over the coming weeks so I'm trying to get everything figured out and well-organised now.</p>
  
  <p>Xcode creates a ProjectName_Prefix.pch file which is a header that: a) get precompiled and b) is prefixed to every file in my project; at least if I understand correctly.</p>
  
  <p>Now, how do I tell GNUStep-make what to do with this file when it builds?  I've added it to the XXX_PRECOMPILED_HEADERS variable.</p>
  
  <pre><code>Cioccolata_OBJC_PRECOMPILED_HEADERS = Cioccolata_Prefix.pch
  </code></pre>
  
  <p>With this in place the build fails with the error:</p>
  
  <pre><code>Making all for framework Cioccolata...
  make[1]: *** No rule to make target `/Users/chris/Projects/Mac/Cioccolata/build/GNUStep/obj/PrecompiledHeaders/ObjC/Cioccolata_Prefix.pch', needed by `internal-precompile-headers'.  Stop.
  make: *** [Cioccolata.all.framework.variables] Error 2
  </code></pre>
  
  <p>I've also got the following in my makefile:</p>
  
  <pre><code>ADDITIONAL_OBJC_FLAGS += -include Cioccolata_Prefix.pch -Winvalid-pch
  </code></pre>
  
  <p>I'm not sure what I've done wrong here.  I basically have tried to follow the GNUStep documentation for precompiled headers.</p>
  
  <p>None of my project's source files expressly include the Foundation framework since this header does that.</p>