Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

=pod

=for htmltoc    FAQ::Merge Static Libraries

=head1 name

Merging Static Libraries

=head1 SYNOPSIS

The following fragment will merge a number of static libraries into one static
library - without the need to create unreadable makefile.pl's.

The following code fragment assumes that the input libraries have been created
via the use of the SubDir directive within the current directory. There are
other mechanisms for locating the static libraries to be merged.

    # Merge libraries ....
    #..
    MergeLibrary( '*',  "services",
                        "MSocket,--SubDir=MSocket",
                        "dceconfig,--SubDir=Config",
                        "devinfo,--SubDir=devinfo_lib",
                        "crc16,--SubDir=crc",
                        "CompDecomp,--SubDir=CompDecomp" );

=head2 Points of interest

=over 4

=item * 

Works for all machines types. Solaris and unix libraries are handled automatically. 

=item * 

The --Subdir informs JATS where to locate the input static library. In this case
the library is found within the current directory tree. Other options are
available. 

=item * 

There is no need for the "armerge" utility - this has been integrated into JATS.
Delete the local version.

=back

=cut