C.3 Compile and InstallTo compile, merely run make (1). If you are compiling just for use in sendmail , you can leave the resulting libdb.a in with the source and reference it there (see INCDIRS= in Section 18.4.3, "INCDIRS=" for an example of how to do this). If you are compiling for general system use, you should test the result before installing. Testing is available in ../../test . Installation is simple, although it must be done by hand. There is no install entry in the Makefile . Where you install it is up to you. Under /usr is one possibility. Under /usr/local is another. At Berkeley it was installed under /usr/sww . The following example shows how to install it in /usr/local on a BSD UNIX system:
% Finally, to use this new library, you need to return to the sendmail source and edit your Makefile there. You'll need to change two lines to reflect the actual location where you installed db :
INCDIRS=-I/usr/sww/include/db LIBDIRS=-L/usr/sww/lib For our installation in /usr/local the correct declarations would look like this:
INCDIRS=-I/usr/local/include/db LIBDIRS=-L/usr/local/lib |
|