[make] add shared lib target

separate static and shared lib output
for debug and release version