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.
Replace
% mkdir $HOME/jane_doe/toolkit/smarts
% cd $HOME/jane_doe/toolkit/smarts
% cp $DY_ROOT/contrib/src/c/smarts/* .
% make
jane_doe
with your personal directory.
makefile
. Note the following:
makefile_include
is included in this not-machine-dependent file.
libdu.a
,
libdt_smarts.so
,
libdt_smiles.so
. This order is significant
since functions must be linked after calls dependent upon
them.
minpath.c
into this
directory. Modify the makefile
to incorporate
this program. This involves adding the program name to the
all:
line via the PROGS
macro
and adding dependency and rule lines as exist for the other
programs.
minpath: minpath.o
(tab here) $(CC) -o $@ $(CFLAGS) $@.o $(LIBS) $(SYSLIBS)
make minpath
and test the program.
Daylight Chemical Information Systems Inc.