roth@coredump:/usr/local/src/sendmail-8.10.0> ./Build -m Configuration: os=SunOS, rel=5.7, rbase=5, rroot=5.7, arch=sun4, sfx= Will run in virgin obj.SunOS.5.7.sun4 using obj.SunOS.5.7.sun4/MakefileIn this case, the platform name is SunOS.5.7.
The configuration process is all done via m4 macros, including the Makefile. You can find out what settings are used for your platform by looking in the m4 definition file ../devtools/OS/platform_name. To modify or add settings, create the file ../devtools/Site/site.config.m4 with your changes in it. You can override the definitions from the platform-specific file with define(variable,value), or you can append additional flags to the existing definition with APPENDDEF(variable,additional_value).
Complete documentation on all of the sendmail build options can be found in the file sendmail/README in the sendmail source tree. Some of the more commonly useful options are listed below:
| Option | Explanation |
|---|---|
| confCC | Sets the C compiler used to build sendmail. |
| confOPTIMIZE | Sets the C compiler optimization flags. |
| confENVDEF | Sets the C compiler include path flags. |
| confLIBS | Selects the libraries to link with. |
| confMAPDEF | Sets C preprocessor flags which select which database maps sendmail is compiled to support. (More on this later.) |