07/03/2008 3:38 AM
post9985
|
If you asking how to compile a header as a c file, specify -xc (both qcc and gcc drivers accept it). Precompiled headers
are another story.
The following is a very simple example of what I assume you're trying to do:
$ cat makefile
foo: t.h
$(CC) -xc t.h -o foo
$ make
cc -xc t.h -o foo
$ make
make: `foo' is up to date.
$ touch t.h
$ make
cc -xc t.h -o foo
$
Regards,
Ryan Mansfield
|
|
|