update the code of lnmon.c and lnmon.mk