Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] PATCH: OpenVMS Patches For General FreeCiv CVS Tree...
Home

[Freeciv-Dev] PATCH: OpenVMS Patches For General FreeCiv CVS Tree...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] PATCH: OpenVMS Patches For General FreeCiv CVS Tree...
From: Robert Alan Byer <byer@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Nov 2002 10:49:35 -0500

-----BEGIN PGP SIGNED MESSAGE-----


Attached is a CVD diff patch file for the OpenVMS specific stuff for the 
mail FreeCiv CVS development tree.

I'll be posting a patch for the v1.14.0 development tree later today.

Look it over and let me know when it's been submitted.  With this patch 
Freeciv builds on OpenVMS.

===================================================================

RCS file: /home/freeciv/CVS/freeciv/vms/config.h_vms,v

retrieving revision 1.1

diff -u -r1.1 config.h_vms

- --- vms/config.h_vms  2001/07/01 17:01:49     1.1

+++ vms/config.h_vms    2002/11/13 15:32:17

@@ -28,7 +28,7 @@

 #undef HAVE_VPRINTF

 

 /* Define as __inline if that's what the C compiler calls it.  */

- -#undef inline

+#define inline __inline

 

 /* Define to `long' if <sys/types.h> doesn't define.  */

 #undef off_t

@@ -89,7 +89,7 @@

 #undef ENABLE_NLS

 #undef HAVE_CATGETS

 #undef HAVE_GETTEXT

- -#undef HAVE_LC_MESSAGES

+#define HAVE_LC_MESSAGES TRUE

 #undef HAVE_STPCPY

 #undef LOCALEDIR

 #undef DEFAULT_DATA_PATH

@@ -103,7 +103,7 @@

 #undef GENERATING_MAC

 #undef HAVE_OPENTRANSPORT

 #undef PATH_SEPARATOR

- -#undef SOCKET_ZERO_ISNT_STDIN

+#define SOCKET_ZERO_ISNT_STDIN TRUE

 #define NONBLOCKING_SOCKETS TRUE

 #undef HAVE_FCNTL

 #define HAVE_IOCTL TRUE

Index: vms/readme.vms

===================================================================

RCS file: /home/freeciv/CVS/freeciv/vms/readme.vms,v

retrieving revision 1.1

diff -u -r1.1 readme.vms

- --- vms/readme.vms    2001/07/01 17:01:50     1.1

+++ vms/readme.vms      2002/11/13 15:32:21

@@ -1,6 +1,3 @@

- -===========================================================================

- -                     README.VMS

- -===========================================================================

 

 A more complete and HTML'ized version of these directions can be found at.

 

@@ -10,10 +7,10 @@

 "byer@xxxxxxxxxxxxxxxxxxx"

 

 What platforms are supported?

- -- -----------------------------

+-----------------------------

 

- -The FreeCiv v1.12.0 CIVCLIENT and CIVSERVER for OpenVMS so far has only

- -been tested by me personally on the following Alpha platforms.

+The FreeCiv CIVCLIENT and CIVSERVER for OpenVMS so far has only been tested

+by me personally on the following Alpha platforms.

 

    * AlphaStation-250 4/166, OpenVMS v7.2, DEC C v6.0-001, DECWindows Motif

      v1.2.5, Multinet TCP/IP v4.2a

@@ -22,8 +19,8 @@

    * AlphaStation 500/333, OpenVMS v7.2, DEC C v6.0-001, DECWindows Motif

      v1.2.5, Multinet TCP/IP v4.2a

 

- -The FreeCiv v1.12.0 CIVSERVER for OpenVMS has only been tested by me

- -personally on the following VAX platforms.

+The FreeCiv CIVSERVER for OpenVMS has only been tested by me personally on

+the following VAX platforms.

 

    * VAXStation-4000/60, OpenVMS v7.2, DEC C v6.0-001, DECWindows Motif

      v1.2.5, Multinet TCP/IP v4.2a

@@ -49,15 +46,14 @@

 

   ========================================================================

 

- -What do I need to build FreeCiv v1.12.0 for OpenVMS?

- -- ----------------------------------------------------

+What do I need to build FreeCiv for OpenVMS?

+--------------------------------------------

 

- -O.k., here's is what you need to build FreeCiv v1.12.0 on an OpenVMS

- -system.

+O.k., here's is what you need to build FreeCiv on an OpenVMS system.

 

- -  1. A copy of the "current stable" FreeCiv v1.12.4 distribution kit. The

- -     "current stable" FreeCiv v1.12.0 source files can be found at

- -     ftp://ftp.freeciv.org/freeciv/stable/freeciv-1.12.0.tar.gz

+  1. A copy of the "current stable" FreeCiv distribution kit. The

+     "current stable" FreeCiv source files can be found at

+     http://www.freeciv.org/

 

   2. A installed copy of Digital Equipments DEC C compiler. If you do not

      have a copy of the DEC C compiler you can obtain a copy via the

@@ -97,24 +93,25 @@

 

   ========================================================================

 

- -Building FreeCiv v1.12.0 for OpenVMS.

- -- ------------------------------------

+Building FreeCiv for OpenVMS.

+-----------------------------

 

 O.k. You have everything outlined in the previous section and you want to

 get the ball rolling.

 

 Note: For pupose of example we will use the installation directory of

- -DISK$WORK:[000000]

+      DISK$WORK:[000000] and a FreeCiv kit named "FREECIV.TAR.GZ" which

+      unpacked will create a directory "FREECIV". 

 

   1. If needed, install the DEC C compiler, DECWindows Motif, OpenVMS TAR

      or GNU ZIP for OpenVMS.

 

- -  2. If you are planning on building the FreeCiv v1.12.0 X CIVCLIENT you

- -     will need to compile, link and install the OpenVMS Porting Library if

+  2. If you are planning on building the FreeCiv X CIVCLIENT you will 

+     need to compile, link and install the OpenVMS Porting Library if

      it is not already installed.

 

- -  3. If you are planning on building the FreeCiv v1.12.0 X CIVCLIENT you

- -     will need to compile and link the GTK+ For OpenVMS Alpha kit.

+  3. If you are planning on building the FreeCiv X CIVCLIENT you will 

+     need to compile and link the GTK+ For OpenVMS Alpha kit.

 

      Note: You need to unpack the GTK+ kit in the same directory root where

      you will be unpacking FreeCiv and the directory needs to start with

@@ -125,7 +122,7 @@

 

                      [000000]

                              [.GTK128]

- -                             [.FREECIV-1_12_0]

+                             [.FREECIV]

 

 

      If your version of DEC C is pre v6.2 you will need to download this

@@ -133,17 +130,17 @@

      GTK+ patch kit can be found at

      http://www.ourservers.net/openvms_ports/gtk/gtk_contents.html

 

- -  4. Unpack the Unix FreeCiv v1.12.0 distribution file

- -     FREECIV-1.12.0.TAR-GZ into a directory of your choice.

+  4. Unpack the Unix FreeCiv distribution file FREECIV.TAR-GZ into a 

+     directory of your choice.

 

              $ SET DEFAULT DISK$WORK:[000000]

- -             $ GUNZIP [.DOWNLOAD]FREECIV-1_12_0.TAR-GZ

- -             $ TAR -vxf FREECIV-1_12_0.TAR

+             $ GUNZIP [.DOWNLOAD]FREECIV.TAR-GZ

+             $ TAR -vxf FREECIV.TAR

 

 

- -  5. If building the FreeCiv v1.12.0 X CIVCLIENT, unpack the IMLIB v1.9.8.1

+  5. If building the FreeCiv X CIVCLIENT, unpack the IMLIB v1.9.8.1

      distribution file IMLIB-1_9_8_1.TAR-GZ into THE SAME DIRECTORY where

- -     you unpacked the FreeCiv v1.12.0 files.

+     you unpacked the FreeCiv files.

 

              $ SET DEFAULT DISK$WORK:[000000]

              $ GUNZIP [.DOWNLOAD]IMLIB-1_9_8_1.TAR-GZ

@@ -153,14 +150,14 @@

   6. If you are just building everything you should see the following

      directories.

 

- -             FREECIV-1_12_0.DIR

+             FREECIV.DIR

              <your GTK+ directory>

              IMLIB-1_9_8_1.DIR

 

 

- -     If you are just building the FreeCiv v1.12.0 server you should only

- -     see the FREECIV-1_12_0 directory unless you also installed the other

- -     files to build the client later.

+     If you are just building the FreeCiv server you should only see the 

+     FREECIV directory unless you also installed the other files to build 

+     the client later.

 

   7. You need to define a logical to point to the directory where you

      installed your OpenVMS Porting library.

@@ -216,37 +213,37 @@

      more depending on the build parameters you gave) in your [.VMS]

      directory.

 

- -             CIVCLIENT-AXP.EXE               AXP FreeCiv v1.12.0 GTK-GUI 
Client.

- -             CIVSERVER-AXP.EXE               AXP FreeCiv v1.12.0 Server.

+             CIVCLIENT-AXP.EXE               AXP FreeCiv GTK-GUI Client.

+             CIVSERVER-AXP.EXE               AXP FreeCiv Server.

 

- -             CIVCLIENT-AXP.EXE-DEBUG         AXP FreeCiv v1.12.0 GTK-GUI 
Client With OpenVMS Debug Information.

- -             CIVCSERVER-AXP.EXE-DEBUG        AXP FreeCiv v1.12.0 Server With 
OpenVMS Debug Information.

+             CIVCLIENT-AXP.EXE-DEBUG         AXP FreeCiv GTK-GUI Client With 
OpenVMS Debug Information.

+             CIVCSERVER-AXP.EXE-DEBUG        AXP FreeCiv Server With OpenVMS 
Debug Information.

 

- -             CIVSERVER-VAX.EXE               VAX FreeCiv v1.12.0 Server.

- -             CIVSERVER-VAX.EXE-DEBUG         VAX FreeCiv v1.12.0 Server With 
OpenVMS Debug Information.

+             CIVSERVER-VAX.EXE               VAX FreeCiv Server.

+             CIVSERVER-VAX.EXE-DEBUG         VAX FreeCiv Server With OpenVMS 
Debug Information.

 

   ========================================================================

 

- -Customizing FreeCiv v1.12.0 for OpenVMS.

- -- ----------------------------------------

+Customizing FreeCiv for OpenVMS.

+--------------------------------

 

 Basically, the only customizations that need to be done is to define some

 logicals.

 

 For the CIVSERVER and CIVCLIENT you need to define the logical FREECIV_PATH

- -that points to the directory [.FREECIV-1_12_0.DATA]. This needs to be

- -defined in Unix format.

+that points to the directory [.FREECIV.DATA]. This needs to be defined in 

+Unix format.

 

         Example:

 

- -        $ DEFINE/SYSTEM FREECIV_PATH "/DISK$WORK/FREECIV-1_12_0/DATA"

+        $ DEFINE/SYSTEM FREECIV_PATH "/DISK$WORK/FREECIV/DATA"

 

 If you plan to run FreeCiv alot (either the server or client) I would

 define the above logical in your system startup file.

 

 You also need to define a symbol for the FreeCiv server.

 

- -        $ CIVSERVER :== $DISK$WORK:[FREECIV-1_12_0.VMS]CIVSREVER.EXE-AXP

+        $ CIVSERVER :== $DISK$WORK:[FREECIV.VMS]CIVSREVER.EXE-AXP

 

 If you plan to run FreeCiv alot (either the server or client) I would put

 this in your system login file.

@@ -262,7 +259,7 @@

 

 I would also define a symbol for the FreeCiv client.

 

- -        $ CIVCLIENT :== $DISK$WORK:[FREECIV-1_12_0.VMS]CIVCLIENT-AXP.EXE

+        $ CIVCLIENT :== $DISK$WORK:[FREECIV.VMS]CIVCLIENT-AXP.EXE

 

 If you don't define the above logicals you will get an error when you

 attempt to run the CIVCLIENT. If you plan on running the client often I

@@ -271,16 +268,15 @@

 

   ========================================================================

 

- -Testing FreeCiv v1.12.0 for OpenVMS.

- -- -----------------------------------

+Testing FreeCiv for OpenVMS.

+----------------------------

 

 You have done the following:

 

- -   * Compiled FreeCiv v1.12.0 for OpenVMS as outlined in Building FreeCiv

- -     v1.12.0 for OpenVMS.

+   * Compiled FreeCiv for OpenVMS as outlined in "Building FreeCiv for 
OpenVMS."

 

    * Defined the appropriate logicals and symbols to suite your

- -     installation as outlined in Customizing FreeCiv v1.12.0 for OpenVMS.

+     installation as outlined in "Customizing FreeCiv for OpenVMS."

 

 And now you want to test FreeCiv to make sure it works. Here's how you can

 test things out.

@@ -362,3 +358,4 @@

 Note: All file names and paths need to be in Unix format.

 

 For more information on running a FreeCiv server, see the FreeCiv WWW site.

+

Index: vms/vms_build.com

===================================================================

RCS file: /home/freeciv/CVS/freeciv/vms/vms_build.com,v

retrieving revision 1.2

diff -u -r1.2 vms_build.com

- --- vms/vms_build.com 2001/06/29 20:25:24     1.2

+++ vms/vms_build.com   2002/11/13 15:32:31

@@ -56,7 +56,7 @@

 $!

 $!  Define The Compile Command For VAX.

 $!

- -$   CC = "CC/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/NEST=PRIMARY" + -

+$   CC = "CC/NOLIST/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/NEST=PRIMARY" + -

          "/NAME=(AS_IS,SHORTENED)"

 $!

 $! Else...

@@ -82,7 +82,7 @@

 $!

 $!  Define The Compile Command For AXP.

 $!

- -$   CC = "CC/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/REENTRANCY=MULTITHREAD" + -

+$   CC = "CC/NOLIST/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/REENTRANCY=MULTITHREAD" 
+ -

          "/FLOAT=IEEE_FLOAT/IEEE_MODE=DENORM_RESULTS/NEST=PRIMARY" + -

          "/NAME=(AS_IS,SHORTENED)"

 $!

@@ -128,23 +128,23 @@

 $!

 $!  Define The DEBUG COMMON Library Name.

 $!

- -$   COMMONLIB_NAME = "SYS$DISK:[-.COMMON]COMMONLIB-''MACHINE_TYPE'.OLB-DEBUG"

+$   COMMONLIB_NAME = "SYS$DISK:[.LIB]COMMONLIB-''MACHINE_TYPE'.OLB-DEBUG"

 $!

 $!  Define The DEBUG AI Library Name.

 $!

- -$   AILIB_NAME = "SYS$DISK:[-.AI]AILIB-''MACHINE_TYPE'.OLB-DEBUG"

+$   AILIB_NAME = "SYS$DISK:[.LIB]AILIB-''MACHINE_TYPE'.OLB-DEBUG"

 $!

 $!  Define The DEBUG CLIENT Library.

 $!

- -$   CLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]CLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"

+$   CLIENTLIB_NAME = "SYS$DISK:[.LIB]CLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"

 $!

 $!  Define The DEBUG SERVER Library.

 $!

- -$   SERVERLIB_NAME = "SYS$DISK:[-.SERVER]SERVERLIB-''MACHINE_TYPE'.OLB-DEBUG"

+$   SERVERLIB_NAME = "SYS$DISK:[.LIB]SERVERLIB-''MACHINE_TYPE'.OLB-DEBUG"

 $!

 $!  Define The DEBUG GTKCLIENT Library.

 $!

- -$   GTKCLIENTLIB_NAME = 
"SYS$DISK:[-.CLIENT]GTKCLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"

+$   GTKCLIENTLIB_NAME = "SYS$DISK:[.LIB]GTKCLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"

 $!

 $! Else...

 $!

@@ -152,23 +152,23 @@

 $!

 $!  Define The COMMON Library Name.

 $!

- -$   COMMONLIB_NAME = "SYS$DISK:[-.COMMON]COMMONLIB-''MACHINE_TYPE'.OLB"

+$   COMMONLIB_NAME = "SYS$DISK:[.LIB]COMMONLIB-''MACHINE_TYPE'.OLB"

 $!

 $!  Define The AI Library Name.

 $!

- -$   AILIB_NAME = "SYS$DISK:[-.AI]AILIB-''MACHINE_TYPE'.OLB"

+$   AILIB_NAME = "SYS$DISK:[.LIB]AILIB-''MACHINE_TYPE'.OLB"

 $!

 $!  Define The CLIENT Library.

 $!

- -$   CLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]CLIENTLIB-''MACHINE_TYPE'.OLB"

+$   CLIENTLIB_NAME = "SYS$DISK:[.LIB]CLIENTLIB-''MACHINE_TYPE'.OLB"

 $!

 $!  Define The SERVER Library.

 $!

- -$   SERVERLIB_NAME = "SYS$DISK:[-.SERVER]SERVERLIB-''MACHINE_TYPE'.OLB"

+$   SERVERLIB_NAME = "SYS$DISK:[.LIB]SERVERLIB-''MACHINE_TYPE'.OLB"

 $!

 $!  Define The GTKCLIENT Library.

 $!

- -$   GTKCLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]GTKCLIENTLIB-''MACHINE_TYPE'.OLB"

+$   GTKCLIENTLIB_NAME = "SYS$DISK:[.LIB]GTKCLIENTLIB-''MACHINE_TYPE'.OLB"

 $!

 $! Time To End The DEBUG Library Check.

 $!

@@ -219,11 +219,12 @@

 $!

 $ BUILD_IMLIB:

 $!

- -$! Tell The User What We Are Doing.

+$! Define The IMLIB Include Paths.

 $!

- -$ WRITE SYS$OUTPUT ""

- -$ WRITE SYS$OUTPUT "Compling The ",IMLIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(''IMLIB_DIR'.GDK_IMLIB],''IMLIB_DIR'],''GTK_DIR'.GLIB],''GTK_DIR'.GLIB.GMODULE],''GTK_DIR'.GTK],''GTK_DIR'.GTK.GDK],PORTING_LIB:[INCLUDE],DECW$INCLUDE:)"

+$ IMLIB_INCLUDES = "INCLUDE=(''IMLIB_DIR'.GDK_IMLIB],''IMLIB_DIR']," + -

+                   "''GTK_DIR'.GLIB],''GTK_DIR'.GLIB.GMODULE]," + -

+                   "''GTK_DIR'.GTK],''GTK_DIR'.GTK.GDK]," + -

+                   "PORTING_LIB:[INCLUDE],DECW$INCLUDE:)"

 $!

 $! Check To See If We Are A Pre DEC C v6.2 Compiler.

 $!

@@ -232,15 +233,18 @@

 $!

 $!  We Are A Pre DEC C v6.2 Compiler So Set The DEFINE For It.

 $!

- -$   WRITE SYS$OUTPUT "/DEFINE=(""PRE_DECC_V6_2=TRUE"")"

+$   IMLIB_DEFINES = "DEFINE=(""PRE_DECC_V6_2=TRUE"")"

 $!

 $! Time To End The PRE_DECC_V6_2 Check.

 $!

 $ ENDIF

 $!

- -$! Write A Sperator Line.

+$! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

+$ WRITE SYS$OUTPUT "Compling The ",IMLIB_NAME," Library."

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",IMLIB_INCLUDES,"/",IMLIB_DEFINES

+$ WRITE SYS$OUTPUT ""

 $!

 $! Define SYS To Point To The DECWindows Include Directory.

 $!

@@ -340,34 +344,11 @@

 $! Tell The User What We Are Compiling.

 $!

 $ WRITE SYS$OUTPUT "   ",IMLIB_SOURCE_FILE

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!  Compile The File With Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -               
'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK.GTK],'GTK_DIR'.GTK.GDK], -

- -               PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /DEFINE=("PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='IMLIB_OBJECT_FILE' 'IMLIB_SOURCE_FILE'

- -$!

- -$! Else...

 $!

- -$ ELSE

- -$!

- -$!  Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -               
'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK.GTK],'GTK_DIR'.GTK.GDK], -

- -               PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /OBJECT='IMLIB_OBJECT_FILE' 'IMLIB_SOURCE_FILE'

- -$!

- -$! Time To End The PRE_DECC_V6_2 Check.

+$! Compile The File.

 $!

- -$ ENDIF

+$ CC/'IMLIB_INCLUDES'/'IMLIB_DEFINES'/OBJECT='IMLIB_OBJECT_FILE' -

+    'IMLIB_SOURCE_FILE'

 $!

 $! Add It To The Library.

 $!

@@ -418,23 +399,7 @@

 $!

 $ WRITE SYS$OUTPUT ""

 $ WRITE SYS$OUTPUT "Building ''IMLIB_CONFIG_EXE'."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(''IMLIB_DIR'.GDK_IMLIB],''IMLIB_DIR'],''GTK_DIR'.GLIB],''GTK_DIR'.GLIB.GMODULE],''GTK_DIR'.GTK],''GTK_DIR'.GTK.GDK],PORTING_LIB:[INCLUDE],DECW$INCLUDE:)"

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!  We Are A Pre DEC C v6.2 Compiler So Set The DEFINE For It.

- -$!

- -$   WRITE SYS$OUTPUT "/DEFINE=(""PRE_DECC_V6_2=TRUE"")"

- -$!

- -$! Time To End The PRE_DECC_V6_2 Check.

- -$!

- -$ ENDIF

- -$!

- -$! Write A Seperator Line.

- -$!

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",IMLIB_INCLUDES,"/",IMLIB_DEFINES

 $ WRITE SYS$OUTPUT ""

 $!

 $! Check To See If The File [.IMLIB.UTILS]IMLIB_CONFIG.C Actually Exists.

@@ -459,34 +424,11 @@

 $! Tell The User What We Are Compiling.

 $!

 $ WRITE SYS$OUTPUT "   ''IMLIB_DIR'.UTILS]IMLIB_CONFIG.C"

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!  Compile The File With Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /DEFINE=("PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='IMLIB_CONFIG_OBJ' 'IMLIB_DIR'.UTILS]IMLIB_CONFIG.C

- -$!

- -$! Else...

 $!

- -$ ELSE

- -$!

- -$!  Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /OBJECT='IMLIB_CONFIG_OBJ' 'IMLIB_DIR'.UTILS]IMLIB_CONFIG.C

- -$!

- -$! Time To End The PRE_DECC_V6_2 Check.

+$! Compile The IMLIB_CONFIG.C File.

 $!

- -$ ENDIF

+$ CC/'IMLIB_INCLUDES'/'IMLIB_DEFINES'/OBJECT='IMLIB_CONFIG_OBJ' -

+    'IMLIB_DIR'.UTILS]IMLIB_CONFIG.C

 $!

 $! Check To See If The File [.IMLIB.UTILS]ICONS.C Actually Exists.

 $!

@@ -510,34 +452,11 @@

 $! Tell The User What We Are Compiling.

 $!

 $ WRITE SYS$OUTPUT "   ''IMLIB_DIR'.UTILS]ICONS.C"

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!   Compile The File With Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], - 

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /DEFINE=("PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='ICONS_OBJ' 'IMLIB_DIR'.UTILS]ICONS.C

- -$!

- -$! Else...

 $!

- -$ ELSE

- -$!

- -$!   Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], - 

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /OBJECT='ICONS_OBJ' 'IMLIB_DIR'.UTILS]ICONS.C

- -$!

- -$! Time To End The PRE_DECC_V6_2 Check.

+$! Compile The ICONS.C File.

 $!

- -$ ENDIF

+$ CC/'IMLIB_INCLUDES'/'IMLIB_DEFINES'/OBJECT='ICONS_OBJ' -

+    'IMLIB_DIR'.UTILS]ICONS.C

 $!

 $! Check To See If The File [.IMLIB.UTILS]TESTIMG.C Actually Exists.

 $!

@@ -561,34 +480,11 @@

 $! Tell The User What We Are Compiling.

 $!

 $ WRITE SYS$OUTPUT "   ''IMLIB_DIR'.UTILS]TESTIMG.C"

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!  Compile The File With Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /DEFINE=("PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='TESTIMG_OBJ' 'IMLIB_DIR'.UTILS]TESTIMG.C

- -$!

- -$! Else...

 $!

- -$ ELSE

- -$!

- -$!  Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -

- -                'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -

- -                PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -

- -      /OBJECT='TESTIMG_OBJ' 'IMLIB_DIR'.UTILS]TESTIMG.C

- -$!

- -$! Time To End The PRE_DECC_V6_2 Check..

+$! Compile The TESTIMG.C File.

 $!

- -$ ENDIF

+$ CC/'IMLIB_INCLUDES'/'IMLIB_DEFINES'/OBJECT='TESTIMG_OBJ' -

+    'IMLIB_DIR'.UTILS]TESTIMG.C

 $!

 $! Tell The User That We Are Linking The IMLIB_CONFIG Executable.

 $!

@@ -598,7 +494,7 @@

 $!

 $! Link The IMLIB_CONFIG Executable..

 $!

- -$ LINK/'DEBUGGER'/'TRACEBACK'/EXE='IMLIB_CONFIG_EXE' -

+$ LINK/NOMAP/'DEBUGGER'/'TRACEBACK'/EXE='IMLIB_CONFIG_EXE' -

       'IMLIB_CONFIG_OBJ','ICONS_OBJ','TESTIMG_OBJ', -

       SYS$INPUT:/OPTIONS,'IMLIB_NAME'/LIBRARY

 $ DECK

@@ -618,13 +514,35 @@

 $!

 $ BUILD_COMMONLIB:

 $!

+$! Define The Common Library Include File Path.

+$!

+$ COMMONLIB_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON])"

+$!

+$! Define The Common Library Compiler Defines.

+$!

+$ COMMONLIB_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                      """_''MACHINE_TYPE'_=TRUE"")"

+$!

 $! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

 $ WRITE SYS$OUTPUT "Compling The ",COMMONLIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON])/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",COMMONLIB_INCLUDES,"/",COMMONLIB_DEFINES

 $ WRITE SYS$OUTPUT ""

 $!

+$! Check To See If We Have A SYS$DISK:[.LIB] Directory.

+$!

+$ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."")

+$ THEN

+$!

+$!  Guess Not, Create The SYS$DISK:[.LIB] Directory.

+$!

+$   CREATE/DIRECTORY SYS$DISK:[.LIB]

+$!

+$! End The Library Directory Check.

+$!

+$ ENDIF

+$!

 $! Check To See If We Already Have A "COMMONLIB" Library...

 $!

 $ IF (F$SEARCH(COMMONLIB_NAME).EQS."")

@@ -687,8 +605,7 @@

 $!

 $! Compile The File.

 $!

- -$ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON]) -

- -    /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE", "_''MACHINE_TYPE'_=TRUE") -

+$ CC/'COMMONLIB_INCLUDES'/'COMMONLIB_DEFINES' -

     /OBJECT='COMMONLIB_OBJECT_FILE' 'COMMONLIB_SOURCE_FILE'

 $!

 $! Add It To The Library.

@@ -715,13 +632,36 @@

 $!

 $ BUILD_AILIB:

 $!

+$! Define The AILIB Include Paths.

+$!

+$ AILIB_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.AI]," + -

+                   "SYS$DISK:[-.COMMON],SYS$DISK:[-.SERVER])"

+$!

+$! Define The AILIB Compiler Defines.

+$!

+$ AILIB_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                  """_''MACHINE_TYPE'_=TRUE"")"

+$!

 $! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

 $ WRITE SYS$OUTPUT "Compling The ",AILIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.AI],SYS$DISK:[-.COMMON],SYS$DISK:[-.SERVER])/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",AILIB_INCLUDES,"/",AILIB_DEFINES

 $ WRITE SYS$OUTPUT ""

 $!

+$! Check To See If We Already Have A SYS$DISK:[.LIB] Directory.

+$!

+$ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."")

+$ THEN

+$!

+$!  Guess Not, Create The SYS$DISK:[.LIB] Directory.

+$!

+$   CREATE/DIRECTORY SYS$DISK:[.LIB]

+$!

+$! End The SYS$DISK:[.LIB] Directory Check.

+$!

+$ ENDIF

+$!

 $! Check To See If We Already Have A "AILIB" Library...

 $!

 $ IF (F$SEARCH(AILIB_NAME).EQS."")

@@ -784,10 +724,8 @@

 $!

 $! Compile The File.

 $!

- -$ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.AI],SYS$DISK:[-.COMMON], -

- -              SYS$DISK:[-.SERVER]) -

- -    /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

- -    /OBJECT='AILIB_OBJECT_FILE' 'AILIB_SOURCE_FILE'

+$ CC/'AILIB_INCLUDES'/'AILIB_DEFINES'/OBJECT='AILIB_OBJECT_FILE' -

+    'AILIB_SOURCE_FILE'

 $!

 $! Add It To The Library.

 $!

@@ -813,13 +751,36 @@

 $!

 $ BUILD_SERVERLIB:

 $!

+$! Define The SERVERLIB Include Path.

+$!

+$ SERVERLIB_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER]," + -

+                       "SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])

+$!

+$! Define The SERVERLIB Compiler Defines.

+$!

+$ SERVERLIB_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                      """_''MACHINE_TYPE'_=TRUE"")"

+$!

 $! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

 $ WRITE SYS$OUTPUT "Compling The ",SERVERLIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",SERVERLIB_INCLUDES,"/",SERVERLIB_DEFINES

 $ WRITE SYS$OUTPUT ""

 $!

+$! Check To See If We Already Have A SYS$DISK:[.LIB] Directory...

+$!

+$ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."")

+$ THEN

+$!

+$!  Guess Not, Create The SYS$DISK:[.LIB] Directory.

+$!

+$   CREATE/DIRECTORY SYS$DISK:[.LIB]

+$!

+$! End The SYS$DISK:[.LIB] Library Check.

+$!

+$ ENDIF

+$!

 $! Check To See If We Already Have A "SERVERLIB" Library...

 $!

 $ IF (F$SEARCH(SERVERLIB_NAME).EQS."")

@@ -887,9 +848,7 @@

 $!

 $! Compile The File.

 $!

- -$ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON], -

- -              SYS$DISK:[-.AI]) -

- -    /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

+$ CC/'SERVERLIB_INCLUDES'/'SERVERLIB_DEFINES' -

     /OBJECT='SERVERLIB_OBJECT_FILE' 'SERVERLIB_SOURCE_FILE'

 $!

 $! Add It To The Library.

@@ -916,6 +875,16 @@

 $!

 $ BUILD_CIVSERVER:

 $!

+$! Define The CIVSERVER Include Paths.

+$!

+$ CIVSERVER_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER]," + -

+                        "SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])

+$!

+$! Define The CIVSERVER Compiler Defines.

+$!

+$ CIVSERVER_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                      """_''MACHINE_TYPE'_=TRUE"")"

+$!

 $! Check To See If We Have The "SERVERLIB" Library...

 $!

 $ IF (F$SEARCH(SERVERLIB_NAME).EQS."")

@@ -1029,14 +998,12 @@

 $!

 $ WRITE SYS$OUTPUT ""

 $ WRITE SYS$OUTPUT "Building ''CIVSERVER_EXE'."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",CIVSERVER_INCLUDES,"/",CIVSERVER_DEFINES

 $ WRITE SYS$OUTPUT ""

 $!

 $! Compile The File.

 $!

- -$ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON], - 

- -              SYS$DISK:[-.AI]) -

- -    /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

+$ CC/'CIVSERVER_INCLUDES'/'CIVSERVER_DEFINES' -

     /OBJECT='CIVSERVER_OBJ' SYS$DISK:[-.SERVER]CIVSERVER.C

 $!

 $! Tell The User We Are Linking The CIVSERVER.

@@ -1047,7 +1014,7 @@

 $!

 $! Link The Executable.

 $!

- -$ LINK/'DEBUGGER'/'TRACEBACK'/EXE='CIVSERVER_EXE' 'CIVSERVER_OBJ', -

+$ LINK/NOMAP/'DEBUGGER'/'TRACEBACK'/EXE='CIVSERVER_EXE' 'CIVSERVER_OBJ', -

       'SERVERLIB_NAME'/LIBRARY,'COMMONLIB_NAME'/LIBRARY,'AILIB_NAME'/LIBRARY

 $!

 $! That's All, Time To Return From Where We Came From.

@@ -1058,11 +1025,14 @@

 $!

 $ BUILD_GTKCLIENTLIB:

 $!

- -$! Tell The User What We Are Doing.

+$! Define The GTK Client Library Include Path.

 $!

- -$ WRITE SYS$OUTPUT ""

- -$ WRITE SYS$OUTPUT "Compling The ",GTKCLIENTLIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.GUI-GTK],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON],''GTK_DIR'.GLIB],''IMLIB_DIR'.GDK_IMLIB],''JACKETS_DIR'.INCLUDE])"

+$ GTKCLIENTLIB_INCLUDES = "INCLUDE=(SYS$DISK:[-]," + -

+                          "SYS$DISK:[-.CLIENT.GUI-GTK]," + -

+                          "SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE]," + 
-

+                          "SYS$DISK:[-.CLIENT.AGENTS],SYS$DISK:[-.COMMON]," + -

+                          "''GTK_DIR'.GLIB],''IMLIB_DIR'.GDK_IMLIB]," + -

+                          "''JACKETS_DIR'.INCLUDE])"

 $!

 $! Check To See If We Are A Pre DEC C v6.2 Compiler.

 $!

@@ -1071,7 +1041,8 @@

 $!

 $!  We Are So Set A Define For Pre DEC C v6.2.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

+$   GTKCLIENTLIB_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                           """_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

 $!

 $! Else...

 $!

@@ -1079,15 +1050,19 @@

 $!

 $!  We Arn't So Don't Set A Define For PRE DECC v6.2.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$   GTKCLIENT_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                        """_''MACHINE_TYPE'_=TRUE"")"

 $!

 $! Time To End The PRE_DECC_V6_2 Check.

 $!

 $ ENDIF

 $!

- -$! Write A Seperator Line.

+$! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

+$ WRITE SYS$OUTPUT "Compling The ",GTKCLIENTLIB_NAME," Library."

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",GTKCLIENTLIB_INCLUDES,"/",GTKCLIENTLIB_DEFINES

+$ WRITE SYS$OUTPUT ""

 $!

 $! Define GTK To Point To The [.GTK.GTK] Directory.

 $!

@@ -1111,6 +1086,19 @@

 $!

 $ ENDIF

 $!

+$! Check To See If We Already Have A SYS$DISK:[.LIB] Directory...

+$!

+$ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."")

+$ THEN

+$!

+$!  Guess Not, Create The SYS$DISK:[.LIB] Directory.

+$!

+$   CREATE/DIRECTORY SYS$DISK:[.LIB]

+$!

+$! End The SYS$DISK:[.LIB] Directory Check.

+$!

+$ ENDIF

+$!

 $! Check To See If We Already Have A "GTKCLIENTLIB" Library...

 $!

 $ IF (F$SEARCH(GTKCLIENTLIB_NAME).EQS."")

@@ -1173,36 +1161,11 @@

 $! Tell The User What We Are Compiling.

 $!

 $ WRITE SYS$OUTPUT "   ",GTKCLIENTLIB_SOURCE_FILE

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$! Compile The File The File With Pre DEC C v6.2 Support.

- -$!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.GUI-GTK],SYS$DISK:[-.CLIENT], -

- -                SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON], -

- -                
'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB],'JACKETS_DIR'.INCLUDE]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -

- -               "PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='GTKCLIENTLIB_OBJECT_FILE' 'GTKCLIENTLIB_SOURCE_FILE'

- -$!

- -$! Else...

 $!

- -$ ELSE

- -$!

- -$! Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.GUI-GTK],SYS$DISK:[-.CLIENT], -

- -                SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON], -

- -                
'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB],'JACKETS_DIR'.INCLUDE]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

- -      /OBJECT='GTKCLIENTLIB_OBJECT_FILE' 'GTKCLIENTLIB_SOURCE_FILE'

- -$!

- -$! Time To End The PRE_DEC_V6_2 Check.

+$! Compile The File.

 $!

- -$ ENDIF

+$ CC/'GTKCLIENTLIB_INCLUDES'/'GTKCLIENTLIB_DEFINES' -

+    /OBJECT='GTKCLIENTLIB_OBJECT_FILE' 'GTKCLIENTLIB_SOURCE_FILE'

 $!

 $! Add It To The Library.

 $!

@@ -1228,33 +1191,56 @@

 $!

 $ BUILD_CLIENTLIB:

 $!

- -$! Tell The User What We Are Doing.

+$! Define The Include Path For the CLIENTLIB

 $!

- -$ WRITE SYS$OUTPUT ""

- -$ WRITE SYS$OUTPUT "Compilng The ",CLIENTLIB_NAME," Library."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON],''GTK_DIR'.GLIB],''IMLIB_DIR'.GDK_IMLIB],PORTING_LIB:[INCLUDE])"

+$ CLIENTLIB_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT]," + -

+                       "SYS$DISK:[-.CLIENT.INCLUDE]," + -

+                       "SYS$DISK:[-.CLIENT.AGENTS],SYS$DISK:[-.COMMON]," + -

+                       "''GTK_DIR'.GLIB],''IMLIB_DIR'.GDK_IMLIB]," + -

+                       "PORTING_LIB:[INCLUDE])"

 $!

 $! Check To See If We Are A Pre DEC C v6.2 Compiler.

 $!

 $ IF (P3.EQS."PRE_DECC_V6_2")

 $ THEN

 $!

- -$!  Set The Define For Pre DEC C v6.2 Support.

+$!  Set The Compiler Defines For Pre DEC C v6.2 Support.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

+$   CLIENTLIB_DEFINES =  "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                         """_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

 $!

 $! Else...

 $!

 $ ELSE

+$!

+$!  Don't Set The Compiler Defines For Pre DEC C v6.2 Support.

+$!

+$   CLIENTLIB_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                        """_''MACHINE_TYPE'_=TRUE"")"

 $!

- -$!  Don't Set The Define For Pre DEC C v6.2 Support.

+$! Time To End The Pre DEC C v6.2 Check.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

 $ ENDIF

 $!

- -$! Write A Seperator Line.

+$! Tell The User What We Are Doing.

 $!

 $ WRITE SYS$OUTPUT ""

+$ WRITE SYS$OUTPUT "Compilng The ",CLIENTLIB_NAME," Library."

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",CLIENTLIB_INCLUDES,"/",CLIENTLIB_DEFINES

+$ WRITE SYS$OUTPUT ""

+$!

+$! Check To See If We Already Have A SYS$DISK:[.LIB] Directory...

+$!

+$ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."")

+$ THEN

+$!

+$!  Guess Not, Create The SYS$DISK:[.LIB] Directory.

+$!

+$   CREATE/DIRECTORY SYS$DISK:[.LIB]

+$!

+$! End The SYS$DISK:[.LIB] Directory Check.

+$!

+$ ENDIF

 $!

 $! Check To See If We Already Have A "CLIENTLIB" Library...

 $!

@@ -1285,10 +1271,15 @@

 $!

 $ IF (CLIENTLIB_FILE_NAME.EQS."]") THEN GOTO CLIENTLIB_FILE_DONE

 $!

- -$! Check To See If We Are Going To Compile CIVCLIENT.  If We Are, Skip

- -$! It And Go To The Next File As We Will Compile It Later.

- -$!

- -$ IF (CLIENTLIB_FILE_NAME.EQS."CIVCLIENT") THEN GOTO NEXT_CLIENTLIB_FILE

+$! Check To See If We Are Going To Compile AUDIO_AMIGA.C, AUDIO_ESD.C, 

+$! AUDIO_SDL.C, AUDIO_WINMM.C Or CIVCLIENT.C.  If We Are, Skip It And Go 

+$! To The Next File 

+$!

+$ IF (CLIENTLIB_FILE_NAME.EQS."AUDIO_AMIGA").OR. -

+     (CLIENTLIB_FILE_NAME.EQS."AUDIO_ESD").OR. -

+     (CLIENTLIB_FILE_NAME.EQS."AUDIO_SDL").OR. -

+     (CLIENTLIB_FILE_NAME.EQS."AUDIO_WINMM").OR. -

+     (CLIENTLIB_FILE_NAME.EQS."CIVCLIENT") THEN GOTO NEXT_CLIENTLIB_FILE

 $!

 $! Create The Source File Name.

 $!

@@ -1321,51 +1312,94 @@

 $!

 $ WRITE SYS$OUTPUT "   ",CLIENTLIB_SOURCE_FILE

 $!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

+$! Compile The File.

 $!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

+$ CC/'CLIENTLIB_INCLUDES'/'CLIENTLIB_DEFINES' -

+    /OBJECT='CLIENTLIB_OBJECT_FILE' 'CLIENTLIB_SOURCE_FILE'

+$!

+$! Add It To The Library.

+$!

+$ LIBRARY/REPLACE/OBJECT 'CLIENTLIB_NAME' 'CLIENTLIB_OBJECT_FILE'

+$!

+$! Delete The Object File.

+$!

+$ DELETE/NOCONFIRM/NOLOG 'CLIENTLIB_OBJECT_FILE';*

+$!

+$! Go Back And Do It Again.

+$!

+$ GOTO NEXT_CLIENTLIB_FILE

+$!

+$! All Done Compiling.

+$!

+$ CLIENTLIB_FILE_DONE:

+$!

+$! Top Of The Agents File Loop.

+$!

+$ NEXT_AGENT_FILE:

+$!

+$! Define The Agent Files That Are Necessary For The CLIENTLIB Library.

+$!

+$ AGENT_FILES = 
F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.CLIENT.AGENTS]*.C",1)))

+$!

+$! O.K, Extract The File Name From The File List.

+$!

+$ AGENT_FILE_NAME = F$ELEMENT(0,".",AGENT_FILES)

+$!

+$! Check To See If We Are At The End Of The File List.

+$!

+$ IF (AGENT_FILE_NAME.EQS."]") THEN GOTO AGENT_FILE_DONE

+$!

+$! Create The Source File Name.

+$!

+$ AGENT_SOURCE_FILE = "SYS$DISK:[-.CLIENT.AGENTS]" + AGENT_FILE_NAME + ".C"

+$!

+$! Check To See If We Are Compiling With DEBUG Information.

+$!

+$ IF (DEBUGGER.EQS."DEBUG")

 $ THEN

 $!

- -$!  Compile The File With Pre DEC C v6.2 Support.

+$!  Create The Object File Name To Reflect DEBUG Information.

 $!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -

- -                SYS$DISK:[-.COMMON],'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB], -

- -                PORTING_LIB:[INCLUDE]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -

- -               "PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='CLIENTLIB_OBJECT_FILE' 'CLIENTLIB_SOURCE_FILE'

+$   AGENT_OBJECT_FILE = "SYS$DISK:[-.CLIENT.AGENTS]" + AGENT_FILE_NAME + -

+                        "-" + MACHINE_TYPE + ".OBJ-DEBUG"

 $!

 $! Else...

 $!

 $ ELSE

 $!

- -$!  Compile The File Without Pre DEC C v6.2 Support.

+$!  Create The Object File Name.

 $!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -

- -                SYS$DISK:[-.COMMON],'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB], -

- -                PORTING_LIB:[INCLUDE]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

- -      /OBJECT='CLIENTLIB_OBJECT_FILE' 'CLIENTLIB_SOURCE_FILE'

+$   AGENT_OBJECT_FILE = "SYS$DISK:[-.CLIENT.AGENTS]" + AGENT_FILE_NAME + -

+                        "-" + MACHINE_TYPE + ".OBJ"

 $!

- -$! Time To End The PRE_DECC_V6_2 Check.

+$! Time To End The DEBUG Check...

 $!

 $ ENDIF

 $!

+$! Tell The User What We Are Compiling.

+$!

+$ WRITE SYS$OUTPUT "   ",AGENT_SOURCE_FILE

+$!

+$! Compile The File.

+$!

+$ CC/'CLIENTLIB_INCLUDES'/'CLIENTLIB_DEFINES' -

+    /OBJECT='AGENT_OBJECT_FILE' 'AGENT_SOURCE_FILE'

+$!

 $! Add It To The Library.

 $!

- -$ LIBRARY/REPLACE/OBJECT 'CLIENTLIB_NAME' 'CLIENTLIB_OBJECT_FILE'

+$ LIBRARY/REPLACE/OBJECT 'CLIENTLIB_NAME' 'AGENT_OBJECT_FILE'

 $!

 $! Delete The Object File.

 $!

- -$ DELETE/NOCONFIRM/NOLOG 'CLIENTLIB_OBJECT_FILE';*

+$ DELETE/NOCONFIRM/NOLOG 'AGENT_OBJECT_FILE';*

 $!

 $! Go Back And Do It Again.

 $!

- -$ GOTO NEXT_CLIENTLIB_FILE

+$ GOTO NEXT_AGENT_FILE

 $!

 $! All Done Compiling.

 $!

- -$ CLIENTLIB_FILE_DONE:

+$ AGENT_FILE_DONE:

 $!

 $! That's It, Time To Return From Where We Came From.

 $!

@@ -1500,62 +1534,44 @@

 $!

 $ ENDIF

 $!

- -$! Well, Since It Looks Like We Have Everything, Tell The User What We

- -$! Are Going To Do.

+$! Define The CIVCLIENT Include Path.

 $!

- -$ WRITE SYS$OUTPUT ""

- -$ WRITE SYS$OUTPUT "Building ''CIVCLIENT_EXE'."

- -$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])"

+$ CIVCLIENT_INCLUDES = "INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT]," + -

+                       "SYS$DISK:[-.CLIENT.INCLUDE]," + -

+                       "SYS$DISK:[-.CLIENT.AGENTS],SYS$DISK:[-.COMMON]," + -

+                       "SYS$DISK:[-.AI])"

 $!

 $! Check To See If We Are A Pre DEC C v6.2 Compiler.

 $!

 $ IF (P3.EQS."PRE_DECC_V6_2")

 $ THEN

 $!

- -$!  Set The Define For Pre DEC C v6.2 Support.

+$!  Set The Compiler Defines For Pre DEC C v6.2 Support.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

+$   CIVCLIENT_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                        """_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"

 $ ELSE

 $!

- -$!  Don't Set The Define For Pre DEC C v6.2 Support.

+$!  Don't Set The Compiler Defines For Pre DEC C v6.2 Support.

 $!

- -$   WRITE SYS$OUTPUT 
"/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"

+$   CIVCLEINT_DEFINES = "DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE""," + -

+                        """_''MACHINE_TYPE'_=TRUE"")"

 $!

- -$! Time To End The PRE_DECC_V6_2 Check

+$! Time To End The Pre DEC C v6.2 Check

 $!

 $ ENDIF

 $!

- -$! Write A Seperator Line.

+$! Well, Since It Looks Like We Have Everything, Tell The User What We

+$! Are Going To Do.

 $!

 $ WRITE SYS$OUTPUT ""

- -$!

- -$! Check To See If We Are A Pre DEC C v6.2 Compiler.

- -$!

- -$ IF (P3.EQS."PRE_DECC_V6_2")

- -$ THEN

- -$!

- -$!  Compile The File With Pre DEC C v6.2 Support.

- -$!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -

- -                SYS$DISK:[-.COMMON]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -

- -               "PRE_DECC_V6_2=TRUE") -

- -      /OBJECT='CIVCLIENT_OBJ' SYS$DISK:[-.CLIENT]CIVCLIENT.C

- -$!

- -$! Else...

- -$!

- -$ ELSE

- -$!

- -$!  Compile The File Without Pre DEC C v6.2 Support.

- -$!

- -$   
CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -

- -                SYS$DISK:[-.COMMON]) -

- -      /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -

- -      /OBJECT='CIVCLIENT_OBJ' SYS$DISK:[-.CLIENT]CIVCLIENT.C

+$ WRITE SYS$OUTPUT "Building ''CIVCLIENT_EXE'."

+$ WRITE SYS$OUTPUT "Using Compile Command: 
",CC,"/",CIVCLIENT_INCLUDES,"/",CIVCLIENT_DEFINES

 $!

- -$! Time To End The PRE_DECC_V6_2 Check.

+$! Compile The CIVCLIENT.

 $!

- -$ ENDIF

+$ CC/'CIVCLIENT_INCLUDES'/'CIVCLIENT_DEFINES' -

+    /OBJECT='CIVCLIENT_OBJ' SYS$DISK:[-.CLIENT]CIVCLIENT.C

 $!

 $! Tell The User We Are Linking The Executable.

 $!

@@ -1565,7 +1581,7 @@

 $!

 $! Link The CIVCLIENT Executable.

 $!

- -$ LINK/'DEBUGGER'/'TRACEBACK'/EXE='CIVCLIENT_EXE' 'CIVCLIENT_OBJ', -

+$ LINK/NOMAP/'DEBUGGER'/'TRACEBACK'/EXE='CIVCLIENT_EXE' 'CIVCLIENT_OBJ', -

       'GTKCLIENTLIB_NAME'/LIBRARY,'CLIENTLIB_NAME'/LIBRARY, -

       'COMMONLIB_NAME'/LIBRARY,SYS$INPUT:/OPTIONS,'IMLIB_NAME'/LIBRARY

 $ DECK


===================================================================

 +------------------+--------------------------+---------------+
 | Robert Alan Byer | byer@xxxxxxxxxxxxxxxxxxx | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands acquire  |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBPdJ0i6VSqzlBVJbBAQG6XggArd9fxcH6cg6sAv8y7gwPHMTmrR5wFz4U
mToB1H/i/lpj4125UEmZqDCQjXkJG7S0HyLvc6xtdsH4rRuCMTUiUGsWNWsGGHUZ
68itpETjeeTd93ozdI4MphqHy0gBRbPMBgTdIC48k4Z70YCbXOhKAdJJag52E8qE
txbUiFjjYbEQmHBtlWkATcItgG1uFH7I+IofyVrEm2l7rJx7GD6BdAmC1qNg1YlA
8y2urk6v18dcCqWWOxRhIZIUwHiA7uaBKkk+HZM/iWrYyoXn/MV4/uv1Z29trlbI
Varqg38jHHIfx/cRFe/VsjBTB4hm9mT6UQ0tniH9t1iwbEtyYMtRsg==
=i0n4
-----END PGP SIGNATURE-----


[Prev in Thread] Current Thread [Next in Thread]