Build static libs to $$PWD/libs, dynamic libs to $$PWD/build, and adjust the linker options accordingly.