parse sdt/src ip address and improve Makefile