C-PLOT

Scientific Graphics and Data Analysis

11.1.6. - Compiling user functions outside of C-PLOT



The C-PLOT package includes a shell script named newfunc that lets you compile functions outside the plot program. When you type newfunc to the shell without arguments, all the files in your current directory that end in the characters .1.c through .5.c will be compiled and linked with the proper overhead modules and libraries to create executable user functions. You also can specify files as arguments, giving either name.# or name.#.c file names.

The newfunc script invokes makefunc, described above. You can examine the makefunc shell script to see the flags, modules, include directories and make libraries needed to compile user functions if you are interested in constructing makefiles to maintain your user functions.