Not sure I fully understand your problem, or which project / makefile is being processed when you get this error. If you're building the sub1.pro subproject, src/s1.cpp is a correct reference, no?
How about providing the contents of the profiles and the actual build output to start?
Bookmarks