Uninstallation can be done by executing Makefile.
Please uninstall with root authority.
# cd libmodbus/
1) Uninstall by executing make file.
By default, the library is removed from '/usr/local/lib'.
By default, header files are removed from '/usr/local/include'.
# make uninstall
Please refer to 'Makefile' for the details.