modify Makefile for single dir and project lib daemon