<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [

  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
  <!ENTITY dhfirstname "<firstname>Joshua</firstname>">
  <!ENTITY dhsurname   "<surname>Kwan</surname>">
  <!-- Please adjust the date whenever revising the manpage. -->
  <!ENTITY dhdate      "<date>3/28</date>">
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
       allowed: see man(7), man(1). -->
  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
  <!ENTITY dhemail     "<email>joshk@triplehelix.org</email>">
  <!ENTITY dhusername  "Joshua Kwan">
  <!ENTITY dhucpackage "<refentrytitle>hybrid-dev</refentrytitle>">
  <!ENTITY dhpackage   "mbuild-hybrid">

  <!ENTITY debian      "<productname>Debian</productname>">
  <!ENTITY gnu         "<acronym>GNU</acronym>">
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
]>

<refentry>
  <refentryinfo>
    <address>
      &dhemail;
    </address>
    <author>
      &dhfirstname;
      &dhsurname;
    </author>
    <copyright>
      <year>2003</year>
      <holder>&dhusername;</holder>
    </copyright>
    &dhdate;
  </refentryinfo>
  <refmeta>
    &dhucpackage;

    &dhsection;
  </refmeta>
  <refnamediv>
    <refname>&dhpackage;</refname>

    <refpurpose>easily build ircd-hybrid v7 modules from source</refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <cmdsynopsis>
      <command>&dhpackage;</command>
      <arg><option>-s <replaceable>sourcefile</replaceable></option></arg>
      <arg><option>-p <replaceable>installpath</replaceable></option></arg>
      <arg><option>-o <replaceable>buildopts</replaceable></option></arg>
    </cmdsynopsis>
  </refsynopsisdiv>
  <refsect1>
    <title>DESCRIPTION</title>

<para><command>mbuild-hybrid</command> is a program that simplifies compiling ircd-hybrid modules from source. One may specify output path and CFLAGS to use when building a module; the defaults for each are described below.</para>

<para>It goes without saying that <command>mbuild-hybrid</command> won't run without something in the -s option.</para>

  </refsect1>
  <refsect1>
    <title>OPTIONS</title>
    	<variablelist>
	<varlistentry>	
	<term><option>-s sourcefile</option></term>
	<listitem><para>Source file to build the module with. The output filename will be this name, s/.c/.so/.</para></listitem>
	</varlistentry>

	<varlistentry>
  <term><option>-p installpath</option></term>
  <listitem><para>Install path for the module. This defauls to /usr/lib/ircd-hybrid/modules, the module search path for Debian's ircd-hybrid.</para></listitem>
  </varlistentry>

	<varlistentry>
	<term><option>-o buildopts</option></term>
	<listitem><para>This should be quoted if more than one argument; this will be appended to the default CFLAGS, which are simply '-g -Wall '.</para></listitem>
	</varlistentry>
	</variablelist>
  </refsect1>
  <refsect1>
    <title>SEE ALSO</title>

	<para>ircd-hybrid(8)</para>
  </refsect1>
  <refsect1>
    <title>AUTHOR</title>

    <para>
      This manual page was written by Joshua Kwan &lt;joshk@triplehelix.org&gt;
      and is licensed under the GNU General Public License, version 2 or later.
    </para>

  </refsect1>
</refentry>
