how to poperly set/verify PROJECT_ROOT path?

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.

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