Updated over 10 years ago by Knödlseder Jürgen
Development HowTo¶
How to add a new ctool¶
Follow the steps below to add a new ctool:- step into
src
and copy an existing ctool, e.g.cp -r ctselect ctnewtool
- step into the new direction (here
cd ctnewtool
) and rename all files to the new names - adapt the
Makefile.am
to the new names - go back to
src
and add the new tool inMakefile.am
: add a line toSUBDIRS
with the name of the new subdirectory, and add the corresponding library tolibctools_la_LIBADD
- go to the
ctools
root directory and add a entry toAC_CONFIG_FILES
list in theconfigure.ac
script (at the end of the section) (here the entry to be added would besrc/ctnewtool/Makefile
- now regenerate the configuration and Makefiles using
./autogen.sh
- then reconfigure using
./configure
- now build using
make