refine makefile and ignore static