| To add an opcode to the GBS distribution of CS4, in addition to adding
the source file or files that define the opcode, one must modify
csound/Makefile.am. The section labeled plugins is where opcodes are
defined.
......
# Plugins
gabops_la_SOURCES = gabops.c
gabops_la_LDFLAGS = -module -avoid-version -no-undefined
metro_la_SOURCES = metro.c
metro_la_LDFLAGS = -module -avoid-version -no-undefined
......
This section defines two opcodes, each one is defined in one source
file. You would add the source and ldflag information about your
opcode near here.
The opcode libraries to be made are listed in the definition of
pkglib_LTLIBRARIES.
......
pkglib_LTLIBRARIES = gabops.la metro.la newfils.la syncgrain.la \
vectorial.la
......
You must add your library here. After changing Makefile.am, automake
will rebuild the Makefile.in, and configure will then build the
Makefile. On Linux, I just run autoreconf, and make causes configure
to be rerun.
To be useful, when configuring your source tree, you must enable the
creation of shared library using the configure option --enable-shared.
Otherwise, you will not get a .so file or whatever it's called on OS
X. The current default is to build only static libraries, because
building shared libraries on Windows can be tricky, at least with MinGW.
John
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |