Build dynamic modules on Solaris: IBM HTTP Server
Programming IBM HTTP Server documentation
Applies to Solaris

Build Dynamic Modules on Solaris Using Makefile.exmpl

Four files are required to build any module. These files are contained in the directory /opt/IBMHTTPD/usr_mod.

  • mod_example.c - Sample module
  • Makefile.exmpl - Makefile for example Dynamic shared Object Modules (DSOs)
  1. Install the server.
  2. Copy the entire usr_mod directory to your build directory.
  3. Switch to the build directory.
  4. Copy your module.c file to the build directory
  5. .
  6. Rename Makefile.tmpl to Makefile.
  7. Edit Makefile and replace SRCFILE with the name of the source file, without the extension.
  8. Issue the make command.
  9. Copy into opt/IBMHTTPD/libexec
  10. Add LoadModule and AddModule directives to httpd.conf, along with any module-specific directives.
  11. Restart the server.

Using the APXS Script

The compiler flags and link flags are already set in the APXS script.


apxs -o -c *.c 

Related information...
Build Dynamic Shared Object Modules (DSOs) or Dynamic Link Libraries (DLLs) with IHS