User-defined commands can be added to SPECX by making use of the subroutines EXTRNL1 to EXTRNL10. There is currently little support for this and the user is left to hack her way around the SPECX directory tree.
It is relatively easy to modify the distributed source code. This is mainly an option for a local but site-wide version with EXTRNLn routines. Assuming that you are a Starlink site manager you would proceed as follows
/star/bin/specx
and /star/help/specx
. After this
step the existing package will still be in its built form in /star/specx
.
cp -pr
) the built system to the local Starlink tree. You can use any
directory.
makefile
and amend it. Also check makefile
s in sister directories like ../fitting
to see
how include files are handled.
/star/local/bin/specx
and
/star/local/help/specx
. You can use something else instead of /star/local
.
In order to re-build SPECX you need a number of Starlink libraries and include files in their
usual place. Non-Starlink sites may or may not have been issued with these libraries. As
indicators, you can check whether you have /star/lib/libhds*
, /star/include/dat_par
and
/star/figaro/lib/libfit.a
.