|
|
|
Building dynamic modules on the Solaris operating system using the Makefile.exmpl file |
|
This section provides information on building dynamic modules on the Solaris operating system, using the Makefile.exmpl file. This information includes locations of required files for building modules, and instructions for building modules and using the APXS script. Links to related topics appear at the end of this section. |
|
Locating required files for building modulesBuilding a module requires two files. Locate these files in the /opt/IBMHTTPD/example_module directory. This directory contains several files:
Building a moduleTo build a module:
For an example, switch to the /usr/HTTPServer/example_module directory and run the make command. This commands acts on the mod_example.c sample file and creates a .so file for the mod_example file. To build your own module, use the sample file, mod_example.c, as a template. Using the APXS script on the Solaris platformThe APXS script already has the compiler flags and link flags set for the Solaris operating system. The syntax follows: apxs -o mod_example.so -c *.c
(Back to the top)
|