- Download the compressed distribution tar file:
button.tar.gz
(PC users: try this distribution file.)
- Create the directory where BUTTON will be installed, e.g.
% cd /usr/local
% mkdir button
- Make this new directory your current directory and copy there the
distribution tar file
% cd button
% mv /scratch/xxx/button.tar.gz .
- Decompress the gziped file
% gunzip button.tar.gz
- Extract the contents of the tar file
% tar xvf button.tar
- Edit the file
Makefile and set the
abbreviation
COMPILER
to your available FORTRAN compiler, e.g.
% vi Makefile (...COMPILER = f77 ...wq!)
- Execute the Makefile
% make
In this stage the library
libbutton.a
must be created.
- Remove the object modules
% make clean
- Move to the sample directory
% cd sample
- Compile the sample program
% f77 -o sample sample.f ../libbutton.a -L$PGPLOT_DIR -lpgplot -lX11
- Execute the sample program
% ./sample