Commit 244e50dc authored by Rocky Bernstein's avatar Rocky Bernstein

Better worded.

parent d53ea004
...@@ -293,36 +293,40 @@ a <filename>Modules.am</filename> file in it. In this file, put ...@@ -293,36 +293,40 @@ a <filename>Modules.am</filename> file in it. In this file, put
something like : <constant>SOURCES_yourmodule = myfile1.c something like : <constant>SOURCES_yourmodule = myfile1.c
myfile2.c</constant></para> myfile2.c</constant></para>
<para>Then, go to the main <filename>configure.ac</filename> file, and <para>Then go to the main <filename>configure.ac</filename> file, and
at the end, in the <constant>AC_CONFIG_FILES</constant> section, add a add in the <constant>AC_CONFIG_FILES</constant> section (towards the
line similar to the others.</para> end of the file) a line similar to the others.</para>
<para>If you don't create a directory for your plugin (just put it in <para>If you don't create a directory for your plugin (but instead
an existing one), you only have to add the two SOURCES_... lines to just put it in an existing directory), you only have to add the two
the existing <filename>Modules.am</filename> file</para> SOURCES_... lines to the existing <filename>Modules.am</filename>
file</para>
<para>By doing this, your module is declared, but it will never automatically
compile.</para> <para>This declares your module; it does not arrange for it to be
automatically compiled; automatic compilatoin is described further
below.</para>
<para>You do not write a <filename>Makefile</filename> for your
module. Instead this is done via the bootstrap and configuration
process. So now run:
</para>
<para>You then have to restart from the beginning the build sequence, so:</para>
<!---don't know if <xmp> or <example> works. Until then... --> <!---don't know if <xmp> or <example> works. Until then... -->
<para><filename>./bootstrap</filename></para> <para><filename>./bootstrap</filename></para>
<para><filename>./configure...</filename></para> <para><filename>./configure</filename> <emphasis>configure-options</emphasis></para>
<para><filename>make</filename></para> <para><filename>make</filename></para>
<para>To build the module, you have to do it manually, by going to its <para>To build the module manually, go to the
directory, and typing directory it resides and type
<constant>make libyourmodule_plugin.so</constant> (or .dll, ora <constant>make libyourmodule_plugin.so</constant> (or .dll, or
whatever the file type for a shared library is on your Operating whatever the file type for a shared library is on your Operating
System.)</para> System.)</para>
<para>To automatize the build of your module, you must ask this in the <para>To <emphasis>automatically</emphasis> have your module get
configure.ac file.</para> built, you also set this in the <filename>configure.ac</filename>
file; add your module name to the <constant>default modules</constant>
<para>If you want it to be always built, add it to section in one of the
the <constant>default modules</constant> section <constant>AX_ADD_PLUGINS</constant> directives.</para>
in <filename>configure.ac</filename>, in one
<constant>AX_ADD_PLUGINS</constant> directive.</para>
</sect2> </sect2>
</sect1> </sect1>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment