Thanks.
Using a file is where I started but I still have to know where the file is. My hope was to have a small line in each of my project files that determined the location of the specific file.
Although I would love to know why Qt3 runs in fine and Qt4 qmake does not.
I figured out a qmake project file version that seems to work.
@
rules_dir=$$IN_PWD
pwd=$$split(IN_PWD,/)
for(p,pwd){
exists($$rules_dir/rules.make):eval(RULES_DIR=$$rules_dir):break()
else:rules_dir=$$dirname(rules_dir)
}
@
[EDIT: code formatting, please wrap in @-tags, Volker]