There is much useful code in the Daylight contrib directory, some useful as-is, and some useful as building blocks. This code also serves as examples of function usage and syntax.
$DY_ROOT/contrib/src/c/smarts/to your own directory, created for this purpose.
% mkdir $HOME/jane_doe/toolkit/smarts
% cd $HOME/jane_doe/toolkit/smarts
% cp $DY_ROOT/contrib/src/c/smarts/* .
jane_doe with your personal directory.
makefile. Note the following:
makefile_includeis included in this not-machine-dependent file.
libdt_smiles.so. This order is significant since functions must be linked after calls dependent upon them.
minpath.cinto this directory. Modify the
makefileto incorporate this program. This involves adding the program name to the
all:line via the
PROGSmacro and adding dependency and rule lines as exist for the other programs.
(tab here) $(CC) -o $@ $(CFLAGS) $@.o $(LIBS) $(SYSLIBS)
make minpathand test the program.
Daylight Chemical Information Systems Inc.