[bin+lib] use outdir to store files