qse/ase/doc/quickstart-en.man

119 lines
4.8 KiB
Groff
Raw Normal View History

2007-02-05 14:35:10 +00:00
.title ASE Quick Start Guide
2007-03-19 05:55:25 +00:00
= ASE Quick Start Guide =
2007-02-05 14:35:10 +00:00
2007-04-22 14:37:36 +00:00
The first step in using this library is to build it. This document shows how to build the core library on various operating systems.
2007-04-22 15:33:36 +00:00
== Source Code Directories ==
2007-04-22 14:37:36 +00:00
2007-04-22 14:43:23 +00:00
The source code is organized in the following directory structure.
2007-04-22 14:37:36 +00:00
{{{
ase +- cmn .................... contains common functions and macros.
+- utl .................... contains more general-purpose utillity
| functions and macros.
+- awk .................... implementation of the awk processor.
+- lsp .................... implementation of the lisp processor.
+- com .................... COM wrapper of the processors.
+- test +- awk ............ contains test program for the awk processor.
+- lsp ............ contains test programs for the lisp processor.
+- com ............ contains test programs for the COM module.
}}}
2007-02-06 14:52:51 +00:00
2007-03-19 05:48:48 +00:00
== Unix/Linux ==
2007-02-06 14:52:51 +00:00
2007-04-22 14:37:36 +00:00
You may run the [[configure]] script on most of the supported operation systems to set up the build environment and then run the [[make]] utility.
2007-03-19 04:01:49 +00:00
{{{
$ ./configure
$ make
}}}
2007-02-07 07:18:44 +00:00
2007-04-22 14:37:36 +00:00
The [[make]] utility visits each module subdirectory and build binary files. The library files are placed in the [[release/lib]] directory and the executable files in the [[release/bin]] directory.
If you appened the option [[--enable-debug]] to the [[configure]] script, the files would be located in [[debug/lib]] and [[debug/bin]] directory. Besides, it sets up the environment to be more debugging friendly.
{{{
$ ./configure --enable-debug
$ make
}}}
Refer to the following table for the output location of generated files.
{{{
---------------------------------------------------------------------------
2007-04-22 15:33:36 +00:00
mode executable files library files include files
2007-04-22 14:37:36 +00:00
---------------------------------------------------------------------------
2007-04-22 15:33:36 +00:00
release ${top}/release/bin ${top}/release/lib ${top}/release/inc
debug ${top)/debug/bin $(top)/debug/lib ${top}/debug/inc
2007-04-22 14:37:36 +00:00
---------------------------------------------------------------------------
* ${top} - the top level directory
}}}
2007-02-07 07:18:44 +00:00
2007-03-19 04:29:09 +00:00
If you have preference for a particular compiler and the flags, you may explicitly specify them when you run the [[configure]] script. Here are presented a few such examples.
2007-03-19 04:01:49 +00:00
{{{
2007-03-19 04:29:09 +00:00
# HP-UX B.11.23 with HP ANSI C
CC=cc CFLAGS="-O2 +DD64" LDFLAGS="+DD64" ./configure # 64-bit
CC=cc CFLAGS="-O2 +DD32" LDFLAGS="+DD32" ./configure # 32-bit
2007-02-07 07:29:38 +00:00
2007-03-19 04:29:09 +00:00
# SCO OpenServer Release 5.0.7 (SCO_SV 3.2 5.0.7) with SCO OpenServer Development System
CC=cc CFLAGS="-Xc -a ansi -O2" ./configure
2007-02-07 07:18:44 +00:00
2007-03-19 04:29:09 +00:00
# Solaris 10 with GCC
CC=gcc CFLAGS="-Wall -O2 -m64" LDFLAGS="-m64" ./configure # 64-bit
CC=gcc CFLAGS="-Wall -O2" ./configure # 32-bit
}}}
2007-02-08 03:54:18 +00:00
2007-04-22 14:37:36 +00:00
You may specify the C++ compiler with [[CXX]] and its flags in [[CXXFLAGS]].
2007-04-22 14:43:23 +00:00
The JNI library for JAVA is built automatically if required JNI header files are detected by the [[configure]] script. Make sure that the [[javac]] command is included in the [[PATH]] environment variable for this. The JAVA class files are built with the [[javac]] command detected as well. The {ant,http://ant.apache.org} utility from the Apache Software Foundataion can be used to build the java class files. The [[build.xml]] file is provided at the top-level directory for this.
2007-04-22 14:37:36 +00:00
2007-03-19 05:48:48 +00:00
== OpenVMS ==
2007-02-08 03:54:18 +00:00
2007-03-19 04:34:46 +00:00
You may use the [[mms]] command or the [[mmk]] command to build the library. No counterpart for the [[configure]] script is provided. As not top-level build script is provided, you have to run the command in each directory that you want to build the library in.
2007-02-23 10:33:20 +00:00
2007-03-19 04:29:09 +00:00
Let's build the AWK library and its test program, for instance.
2007-02-23 10:33:20 +00:00
2007-03-19 04:29:09 +00:00
{{{
set default [.ase.cmn]
mms
set default [-.awk]
mms
set default [-.utl]
mms
set default [-.test.awk]
mms
}}}
2007-02-23 10:33:20 +00:00
2007-03-19 04:29:09 +00:00
For those who are not familar with OpenVMS, here is one of the ways how to run the test program.
2007-02-23 10:33:20 +00:00
2007-03-19 04:29:09 +00:00
{{{
; define the foreign command.
aseawk :== $DISK$GEIN_SYS:[USERS.BACON.ASE.TEST.AWK]aseawk.exe
; run the command.
aseawk -f hello.awk
2007-03-19 04:01:49 +00:00
}}}
2007-03-19 05:48:48 +00:00
== MS-Windows ==
2007-03-19 04:01:49 +00:00
2007-04-22 14:43:23 +00:00
You may use the Visual Studio 6 or later to open the project. But you need Visual Studio 2003 or later to build the .NET related projects. Otherwise, open the command-line build environment and use the [[make]] utility.
2007-03-19 04:01:49 +00:00
2007-03-19 04:29:09 +00:00
A set of make scripts is provided to support the Microsoft build environement and the Borland build environment. The script for the Miscrosoft build environment is named [[makefile.msw.cl]] while it is [[makefile.msw.bcc]] for the Borland counterpart.
2007-03-19 05:48:48 +00:00
If you are building the AWK library and the test program, this is probably what you have to do.
2007-03-19 04:01:49 +00:00
2007-03-19 04:29:09 +00:00
{{{
cd ase\cmn
nmake /f makefile.msw.cl
cd ..\awk
nmake /f makefile.msw.cl
cd ..\utl
nmake /f makefile.msw.cl
cd ..\test\awk
nmake /f makefile.msw.cl
}}}
2007-03-19 05:48:48 +00:00
2007-04-22 14:37:36 +00:00
However, The COM module can only be built within the Visual Studio environment. After having built the COM module, you may open [[ase/test/com/asetestcom.vbp]] for testing.