Makefiles

Hi,
I am not too familiar with creating my own Makefiles. Can someone send me a
sample Makefile?

Ex.
I have a few source files in a directory. One of the source files has a main
function in it while the other source files contain function definitions for
functions called from main.

Thank you,
Shashank

nameofexe: source1.o source2.o source3.o

That’s it, simple hey.

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:ap42ob$ll6$1@inn.qnx.com

Hi,
I am not too familiar with creating my own Makefiles. Can someone send me
a
sample Makefile?

Ex.
I have a few source files in a directory. One of the source files has a
main
function in it while the other source files contain function definitions
for
functions called from main.

Thank you,
Shashank

The helpviewer topic on make is pretty informative, so if you were to take a
look at that, it would provide you with the basic information you need.

As well, if you were to do a search on Google, for example, you would be
able to find lots of information on writing Makefiles. I would also think
that www.about.com would be a good source of info. And, if you were to
download some of the free software from QNX’s free software site (
http://quics.qnx.com/cgi-bin/dir_find.cgi?/usr/free/qnx4/ ), they will have
Makefiles that you could look at as well.

Happy reading! :slight_smile:

Rodney Lott

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:ap42ob$ll6$1@inn.qnx.com

Hi,
I am not too familiar with creating my own Makefiles. Can someone send me
a
sample Makefile?

Ex.
I have a few source files in a directory. One of the source files has a
main
function in it while the other source files contain function definitions
for
functions called from main.

Thank you,
Shashank