modified Makefile_pre for cdnode