how to poperly set/verify PROJECT_ROOT path?

bridged with qnx.development_tools
Post Reply
Miguel Simon

how to poperly set/verify PROJECT_ROOT path?

Post by Miguel Simon » Wed Nov 02, 2005 5:13 pm

Hi..

How would/could I verify that PROJECT_ROOT is properly set?
Could I override the settings of PROJECT_ROOT if I wanted to do so?
Which [discovery?] mechanism does QNX uses to set PROJECT_ROOT
automatically?

Thanks.

Best Regards...

Miguel.

Brian Stecher

Re: how to poperly set/verify PROJECT_ROOT path?

Post by Brian Stecher » Thu Nov 03, 2005 3:11 pm

In article <dkarrb$di9$1@inn.qnx.com>, Miguel Simon <simon@ou.edu> wrote:
How would/could I verify that PROJECT_ROOT is properly set?
When I need to verify a macro I usually put a:

TMP:=$(PROJECT_ROOT)

in the common.mk and then look at what value TMP has from the
"make -p" output.
Could I override the settings of PROJECT_ROOT if I wanted to do so?
No.
Which [discovery?] mechanism does QNX uses to set PROJECT_ROOT
automatically?
It starts in the current working directory and then goes from parent
directory to parent directory, looking for the "common.mk" file. When
it finds it, that's PROJECT_ROOT.

--
Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Post Reply

Return to “qnx.development_tools”