In order package up your .plm files into a distributable module, you first need to create an .xpl file for your application as described in the section on alnk.
For command-line environments like the Windows Console, Solaris or Linux, you need to create an executable file. The simplist way to do this is to copy arun(.exe) to yourprog(.exe), where your compiled and linked Prolog module is called yourprog.xpl. When yourprog(.exe) is run, it will automatically run yourprog.xpl. The source code for arun is included in the src/acore/arun directory. It is in file arun.cpp. A make file is included as well.
To ship your program to other users, the following files are required:
Your users simply copy these files into a directory and run the program by typing its name at the operating system prompt. If that directory is in their PATH statement, they can run your application from any directory on their machine.
The following files may be distributed with your Amzi! Prolog application:
arun.exe, arun amzi.dll, libamzi.so amzijni.dll, amzijni.so amzinet.so *.lsx
You may distribute the contents of the library files if they are linked into your .xpl file (alib.plm is always linked in).
You may distribute the following files if they are linked into your EXE file:
amzi.lib amzib.lib
You may incorporate all or part of any of the sample (in the samples subdirectory) into your applications, but you may not distribute the source code in any form (see your License Agreement for details).
You may NOT
distribute any other files not explicitly listed here without the prior written
authorization of Amzi! inc. You may NOT distribute any of the development
tools, such as: alis.exe, alis.xpl, acmp.exe, acmp.xpl, alnk.exe, alnk.dll,
the Eclipse plug-ins and source code for files that support the development
of Logic Server applications, such as logicserver.h, amzi.bas, and amzi.pas.
Copyright ©1987-2004 Amzi! inc. All Rights Reserved. Amzi! is a registered trademark and Logic Server and e-Prolog are trademarks of Amzi! inc.