mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
Installing calc in 4 easy steps:
|
|
|
|
1) Look at the makefile, and adjust it to suit your needs.
|
|
|
|
Here are some Makefile hints:
|
|
|
|
Select a compiler set by commenting in the appropriate set
|
|
of cc options. As shipped the Makefile assumes a gcc-like
|
|
environment such as Linux. If a more appropriate cc set if
|
|
found below, comment out the Linux set and comment in that
|
|
set or edit the gcc set or the common cc set as needed.
|
|
|
|
You may or may not need RANLIB when building libraries.
|
|
As shipped the Makefile assumes RANLIB is needed.
|
|
Comment the in/out the RANLIB value if ranlib does
|
|
not work or does not exist.
|
|
|
|
You may want to change the default pager used by calc.
|
|
As shipped the Makefile assumes 'more'. On your system
|
|
you may find 'less' to be a better pager.
|
|
|
|
The CALCBINDINGS is matter of personal taste. As shipped
|
|
the Makefile assumes a default quasi-emacs-like command
|
|
line editor. Changing CALCBINDINGS= altbind will cause ^D
|
|
to end calc in a fashion similar to that of the bc(1) command.
|
|
|
|
Set TOPDIR to be the place under which help files, calc,
|
|
include files and calc libs are to be installed. As shipped
|
|
the Makefile assumes a TOPDIR of /usr/local/lib.
|
|
|
|
Set BINDIR to the place where calc is installed. As shipped
|
|
the Makefile assumes a BINDIR /usr/local/bin.
|
|
|
|
Adjust other Makefile variables as needed.
|
|
|
|
2) build calc:
|
|
|
|
make all
|
|
|
|
==> We are interested in any compiler warnings (and errors) that
|
|
you may find. See the BUGS file if you find any compiler
|
|
warning or errors.
|
|
|
|
3) test calc:
|
|
|
|
make check
|
|
|
|
==> If you run into problems, follow the BUGS file instructions.
|
|
|
|
4) install calc:
|
|
|
|
make install
|
|
|
|
We suggest that you might want to read the README file and look at
|
|
the calc help subsystem. See the README file for details.
|