#Makefile rule
Mike:
Can you tell me why this won't work. I have a file containing some
#include files called commhdr.z, which looks like this:
* commhdr.z */
#include <fcntl.h> #include <workbench/startup.h> #include
<workbench/workbench.h> #include <workbench/icon.h> #include <functions.h>
/* ADDITION */ #include "funclist.h" /* ADDITION */ #include
"globals.h"
Here is my makefile, but my rule is totally ignored. I can force it
however, with a cc -ho commhdr.pre commhdr.z
#makefile
#compile any file with a .z extension to a file of the same name, but #with
a .pre extension. Use the -ho switch for a precompiled header.
z.pre:
cc -ho $@ $*.z
#compile your .c file with the precompiled file above.
comm.o:
cc -hi commhdr.pre comm.c
What is wrong with my rule?
Thanks and regards. Tom
Regards