Sample Applications
Before integrating the ScriptEase ISDK into your own application, it is suggested you compile and run some of the sample applications provided with the distribution. They are found in the samples directory. The samples sample0 and sample1 are basic samples that are most appropriate to learn from.
For Unix distributions, the samples can be built from the root of the distribution using the supplied makefile. To do so, type the command make <sample name>. For instance, to build the sample1 sample you would type the command:
make sample1
Once built, the sample executable can be found in a subdirectory corresponding to the system name. For example, the sample1 executable built with the above command built on Linux can be found as samples/sample1/linux/sample1.
While each unix ScriptEase distribution will use the appropriate defines, there are some systems that have multiple define packages corresponding to different compilers on that system. All systems will by default build using gcc. You can specify an alternative define package in any invocation of make on a ScriptEase makefile by specifying the SYSTEM_NAME in the invocation. For example, to use the Sun Forte C compiler on a Solaris system to build the sample1 sample, you would use:
make SYSTEM_NAME=solarisc sample1
The following table lists all valid system names:
System
|
Make text to use
|
|
-----------------
|
| |
aix
|
| |
dec
|
| |
freebsd
|
| |
hpux
|
| |
linux
|
| |
irix
|
| |
solaris, solarisc
|
| |
|
*The solaris build is for using gcc on Solaris. The solarisc version is for using Sun's Forte C compiler.