Too fast have I said it works... Boud: the libraries line looks fine in makefile as:
LIBS=-lpgplot -lX11 -L"/usr/X11R6/lib"
BUT: variable LIBS is not used anymore in the makefile except this moment. It should be present in all the places where ARGOPTIONS is used (or we shall add LIBS to ARGOPTIONS).
Michal