Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - MakeFile: (4 Items)
   
MakeFile  
How to Write a Makefile in QNX? Any materials will be helpful
Re: MakeFile  
We use GNU make, so in general any makefile information you find will
be applicable. 

If your interested in QNX makefile specifically, firstly you should keep
in mind that QNX makefiles can be managed via the IDE quite well. But if
your interested in the details the following link describes our
makefiles quite well:

http://www.qnx.com/developers/docs/6.3.2/neutrino/prog/make_convent.html

Regards,
Joel

On Wed, 2008-07-02 at 05:46 -0400, Venugopal CK wrote:
> How to Write a Makefile in QNX? Any materials will be helpful
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post9896
> 
Re: MakeFile  
I wanted to write a makefile that should also compiles .h files, if there is any change. please suggest.
Re: MakeFile  
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