Utility: applib

Syntax

applib -c library {-d description} {-u} {-P} {-q} {-D} {-g} {-n} {-e}
      -p product_name -v major.minor
      {-l file_list} files ...

applib -t library {-q}

applib -x library {-q} {-b} {files ...}

Description

Compile an application library file.

Parameters

Directories are searched recursively and symbolic links are followed.

The file path names stored in the library will be converted to relative names. Any name, after this conversion, will be stripped of the leading "product_name/" prefix.

Switches

Required

applib is part of the Fire application compiler system and requires a Fire application compiler license (mxappdev) in order to run.

Notes

The unique “developer identification” (devid) obtained from your compiler license will be used to identify the creator/owner of the application library. The license server must be running and reachable when the applib command is used.

When the library is mounted using the Fire mount or start command, the files in the library may be referenced as "@product_name/filename".

If a file_list is specified, it should contain file names or directories - one per line. Comment lines beginning with # and leading white-space will be ignored. A file_list is processed in addition to any files specified on the command line.

Examples

Creates a licensed application library $LIBS/net1.mxa containing all the files in the current directory which contain a "." and all the files in directory data. The directory data will be searched recursively. File names will be listed as they are inserted into the library.

# Creating a compiled library.
applib -c $LIBS/net1 -p mxnet -v 2.1 *.* data

As above, but creates an unlicensed application library - quietly.

applib -q -u -c $LIBS/net1 -p mxnet -v 2.1 *.* data

In order to list the contents of a library, you must have the same "developer identification" (devid) as the creator of the library.

# Listing the table of contents of a library.
applib -t $LIBS/net1
applib -q -t $LIBS/net1
The following will extract all the files in the library. Any subdirectories will be created relative to the current directory. The extracted filenames will be logged on stdout. To extract files from a library, you must have the same "developer identification" (devid) as the creator of the library.

# Extracting files from an application library.
applib -x $LIBS/net1

Make

The following is an example of using the Unix make utility to create and maintain application libraries.

# mxnet/Makefile
# Usage:
# cd $DEVELOPMENT_SOURCE/mxnet
# make...
PRODUCT=mxnet
VERSION=2.3
APPDIR=/home/distribution
 
${APPDIR}/mxnet.mxa: *.* forms/*.*
chmod og+x start.cmd stop.cmd
 
applib -c $@ -p ${PRODUCT} -v ${VERSION} *.* forms
# End mxnet/Makefile.

See Also

Commands:

mount, start, stop, unmount

Utilities:

appgen, apphdr