update makefile for dynamic linkage
merge