3 $! Original Version: Roger Tucker
4 $! roger.tucker@wcom.com
5 $! Re-Writen By: Robert Alan Byer
6 $! byer@mail.ourservers.net
9 $! This script checks the file names and library paths and then compiles
10 $! and links Freeciv for OpenVMS using DEC C and DEC C TCP/IP socket routines.
12 $! P1 ALL Build Everything.
13 $! IMLIB Just Build The IMLIB Library.
14 $! COMMONLIB Just Build The Library Of Common Routines.
15 $! AILIB Just Build The AI Library.
16 $! SERVERLIB Just Build The Server Library.
17 $! CIVSERVER Just Build The CIVSERVER Executable.
18 $! CLIENTLIB Just Build The Client Library.
19 $! GTKCLIENTLIB Just Build The GTK Client Library.
20 $! CIVCLIENT Just Build The CIVCLIENT Executable.
22 $! P2 DEBUG Build With Debugger Information.
23 $! NODEBUG Build Withoug Debugger Information.
25 $! P3 PRE_DECC_V6_2 Compiler Is Pre DEC C v6.2.
28 $! The default is "ALL" and "NODEBUG".
31 $! Check To Make Sure We Have Valid Command Line Parameters.
35 $! Define IMLIB_DIR To "" Since We Don't Know If We Will Need It Or Not Yet
36 $! Or Even Where It's Located.
40 $! Check To Make Sure We Have Some Necessary Files.
44 $! Check To See If We Are On An AXP Machine.
46 $ IF (F$GETSYI("CPU").LT.128)
49 $! We Are On A VAX Machine So Tell The User.
51 $ WRITE SYS$OUTPUT "Compiling On A VAX Machine."
53 $! Define The Machine Type.
55 $ MACHINE_TYPE = "VAX"
57 $! Define The Compile Command For VAX.
59 $ CC = "CC/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/NEST=PRIMARY" + -
60 "/NAME=(AS_IS,SHORTENED)"
66 $! Check To Make Sure We Have Some Necessary Directories.
68 $ GOSUB CHECK_DIRECTORIES
70 $! We Are On A AXP Machine So Tell The User.
72 $ WRITE SYS$OUTPUT "Compiling On A AXP Machine."
74 $! Define The Machine Type.
76 $ MACHINE_TYPE = "AXP"
78 $! Check To Make Sure The Logicals Pointing To The GTK+ and OpenVMS
79 $! Porting Libaries Are Set.
81 $ GOSUB CHECK_LIB_LOGICALS
83 $! Define The Compile Command For AXP.
85 $ CC = "CC/PREFIX=ALL/''OPTIMIZE'/''DEBUGGER'/REENTRANCY=MULTITHREAD" + -
86 "/FLOAT=IEEE_FLOAT/IEEE_MODE=DENORM_RESULTS/NEST=PRIMARY" + -
87 "/NAME=(AS_IS,SHORTENED)"
89 $! End Of The Machine Check.
93 $! Define The Library Names.
94 $! Check To See If We Have A IMLIB_DIR.
96 $ IF (IMLIB_DIR.NES."")
99 $! Check To See If We Are To Compile With DEBUG Information.
101 $ IF (DEBUGGER.EQS."DEBUG")
104 $! Define the DEBUG IMLIB Library Name.
106 $ IMLIB_NAME = IMLIB_DIR + "]IMLIB-''MACHINE_TYPE'.OLB-DEBUG"
112 $! Define The IMLIB Library Name.
114 $ IMLIB_NAME = IMLIB_DIR + "]IMLIB-''MACHINE_TYPE'.OLB"
116 $! Time To End The DEBUG Check.
120 $! Time To End The IMLIB_DIR Check.
124 $! Check To See If We Are Going To Compile With DEBUG Information.
126 $ IF (DEBUGGER.EQS."DEBUG")
129 $! Define The DEBUG COMMON Library Name.
131 $ COMMONLIB_NAME = "SYS$DISK:[-.COMMON]COMMONLIB-''MACHINE_TYPE'.OLB-DEBUG"
133 $! Define The DEBUG AI Library Name.
135 $ AILIB_NAME = "SYS$DISK:[-.AI]AILIB-''MACHINE_TYPE'.OLB-DEBUG"
137 $! Define The DEBUG CLIENT Library.
139 $ CLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]CLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"
141 $! Define The DEBUG SERVER Library.
143 $ SERVERLIB_NAME = "SYS$DISK:[-.SERVER]SERVERLIB-''MACHINE_TYPE'.OLB-DEBUG"
145 $! Define The DEBUG GTKCLIENT Library.
147 $ GTKCLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]GTKCLIENTLIB-''MACHINE_TYPE'.OLB-DEBUG"
153 $! Define The COMMON Library Name.
155 $ COMMONLIB_NAME = "SYS$DISK:[-.COMMON]COMMONLIB-''MACHINE_TYPE'.OLB"
157 $! Define The AI Library Name.
159 $ AILIB_NAME = "SYS$DISK:[-.AI]AILIB-''MACHINE_TYPE'.OLB"
161 $! Define The CLIENT Library.
163 $ CLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]CLIENTLIB-''MACHINE_TYPE'.OLB"
165 $! Define The SERVER Library.
167 $ SERVERLIB_NAME = "SYS$DISK:[-.SERVER]SERVERLIB-''MACHINE_TYPE'.OLB"
169 $! Define The GTKCLIENT Library.
171 $ GTKCLIENTLIB_NAME = "SYS$DISK:[-.CLIENT]GTKCLIENTLIB-''MACHINE_TYPE'.OLB"
173 $! Time To End The DEBUG Library Check.
177 $! Check To See What We Are To Do.
179 $ IF (BUILDALL.EQS."TRUE")
182 $! Build "Everything".
184 $ GOSUB BUILD_COMMONLIB
186 $ GOSUB BUILD_SERVERLIB
187 $ GOSUB BUILD_CIVSERVER
189 $! The Following For Now Will Only Build On The Alpha Platform.
191 $ IF (MACHINE_TYPE.NES."VAX")
194 $ GOSUB BUILD_CLIENTLIB
195 $ GOSUB BUILD_GTKCLIENTLIB
196 $ GOSUB BUILD_CIVCLIENT
198 $! Time To End The (MACHINE_TYPE.NES."VAX") Check.
206 $! Build Just What The User Wants Us To Build.
208 $ GOSUB BUILD_'BUILDALL'
210 $! Time To Exit The Build Check.
218 $! Build The IMLIB Library.
222 $! Tell The User What We Are Doing.
224 $ WRITE SYS$OUTPUT ""
225 $ WRITE SYS$OUTPUT "Compling The ",IMLIB_NAME," Library."
226 $ 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:)"
228 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
230 $ IF (P3.EQS."PRE_DECC_V6_2")
233 $! We Are A Pre DEC C v6.2 Compiler So Set The DEFINE For It.
235 $ WRITE SYS$OUTPUT "/DEFINE=(""PRE_DECC_V6_2=TRUE"")"
237 $! Time To End The PRE_DECC_V6_2 Check.
241 $! Write A Sperator Line.
243 $ WRITE SYS$OUTPUT ""
245 $! Define SYS To Point To The DECWindows Include Directory.
247 $ DEFINE/NOLOG SYS DECW$INCLUDE
249 $! Define GTK To Point To The [.GTK.GTK] Directory.
251 $ DEFINE/NOLOG GTK 'GTK_DIR'.GTK.GTK]
253 $! Define GDK To Point To The [.GTK.GDK] Directory.
255 $ DEFINE/NOLOG GDK 'GTK_DIR'.GTK.GDK]
257 $! Check To See If We Already Have A "IMLIB" Library...
259 $ IF (F$SEARCH(IMLIB_NAME).EQS."")
262 $! Guess Not, Create The Library.
264 $ LIBRARY/CREATE/OBJECT 'IMLIB_NAME'
266 $! End The Library Check.
270 $! Define The Files That Are Necessary For The IMLIB Library.
272 $ IMLIB_FILES = "CACHE,COLORS,GLOBALS,LOAD,MISC,REND,UTILS,SAVE,MODULES"
274 $! Define A File Counter And Set It To "0".
276 $ IMLIB_FILE_COUNTER = 0
278 $! Top Of The File Loop.
282 $! O.K, Extract The File Name From The File List.
284 $ IMLIB_FILE_NAME = F$ELEMENT(IMLIB_FILE_COUNTER,",",IMLIB_FILES)
286 $! Check To See If We Are At The End Of The File List.
288 $ IF (IMLIB_FILE_NAME.EQS.",") THEN GOTO IMLIB_FILE_DONE
290 $! Increment The Counter.
292 $ IMLIB_FILE_COUNTER = IMLIB_FILE_COUNTER + 1
294 $! Create The Source File Name.
296 $ IMLIB_SOURCE_FILE = IMLIB_DIR + ".GDK_IMLIB]" + IMLIB_FILE_NAME + ".C"
298 $! Check To See If We Are Compiling With DEBUG Information.
300 $ IF (DEBUGGER.EQS."DEBUG")
303 $! Create The Object File Name To Reflect DEBUG Information.
305 $ IMLIB_OBJECT_FILE = IMLIB_DIR + ".GDK_IMLIB]" + IMLIB_FILE_NAME + "-" + -
306 MACHINE_TYPE + ".OBJ-DEBUG"
312 $! Create The Object File Name.
314 $ IMLIB_OBJECT_FILE = IMLIB_DIR + ".GDK_IMLIB]" + IMLIB_FILE_NAME + "-" + -
315 MACHINE_TYPE + ".OBJ"
317 $! Time To End The DEBUG Check.
321 $! Check To See If The File We Want To Compile Actually Exists.
323 $ IF (F$SEARCH(IMLIB_SOURCE_FILE).EQS."")
326 $! Tell The User That The File Dosen't Exist.
328 $ WRITE SYS$OUTPUT ""
329 $ WRITE SYS$OUTPUT "The File ",IMLIB_SOURCE_FILE," Dosen't Exist."
330 $ WRITE SYS$OUTPUT ""
336 $! End The File Check.
340 $! Tell The User What We Are Compiling.
342 $ WRITE SYS$OUTPUT " ",IMLIB_SOURCE_FILE
344 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
346 $ IF (P3.EQS."PRE_DECC_V6_2")
349 $! Compile The File With Pre DEC C v6.2 Support.
351 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
352 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK.GTK],'GTK_DIR'.GTK.GDK], -
353 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
354 /DEFINE=("PRE_DECC_V6_2=TRUE") -
355 /OBJECT='IMLIB_OBJECT_FILE' 'IMLIB_SOURCE_FILE'
361 $! Compile The File Without Pre DEC C v6.2 Support.
363 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
364 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK.GTK],'GTK_DIR'.GTK.GDK], -
365 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
366 /OBJECT='IMLIB_OBJECT_FILE' 'IMLIB_SOURCE_FILE'
368 $! Time To End The PRE_DECC_V6_2 Check.
372 $! Add It To The Library.
374 $ LIBRARY/REPLACE/OBJECT 'IMLIB_NAME' 'IMLIB_OBJECT_FILE'
376 $! Delete The Object File.
378 $ DELETE/NOCONFIRM/NOLOG 'IMLIB_OBJECT_FILE';*
380 $! Go Back And Do It Again.
382 $ GOTO NEXT_IMLIB_FILE
384 $! All Done Compiling.
388 $! Check To See If We Are Going To Compile With DEBUG Information.
390 $ IF (DEBUGGER.EQS."DEBUG")
393 $! Define The IMLIB_CONFIG Object File Names And Executable Name To Show A
394 $! Version Compiled With DEBUG Information.
396 $ IMLIB_CONFIG_OBJ = "''IMLIB_DIR'.UTILS]IMLIB_CONFIG-''MACHINE_TYPE'.OBJ-DEBUG"
397 $ IMLIB_CONFIG_EXE = "''IMLIB_DIR'.UTILS]IMLIB_CONFIG-''MACHINE_TYPE'.EXE-DEBUG"
398 $ ICONS_OBJ = "''IMLIB_DIR'.UTILS]ICONS-''MACHINE_TYPE'.OBJ-DEBUG"
399 $ TESTIMG_OBJ = "''IMLIB_DIR'.UTILS]TESTIMG-''MACHINE_TYPE'.OBJ-DEBUG"
405 $! Define The IMLIB_CONFIG Object File Names And Executable Name To Show A
406 $! Version Compiles Without DEBUG Information.
408 $ IMLIB_CONFIG_OBJ = "''IMLIB_DIR'.UTILS]IMLIB_CONFIG-''MACHINE_TYPE'.OBJ"
409 $ IMLIB_CONFIG_EXE = "''IMLIB_DIR'.UTILS]IMLIB_CONFIG-''MACHINE_TYPE'.EXE"
410 $ ICONS_OBJ = "''IMLIB_DIR'.UTILS]ICONS-''MACHINE_TYPE'.OBJ"
411 $ TESTIMG_OBJ = "''IMLIB_DIR'.UTILS]TESTIMG-''MACHINE_TYPE'.OBJ"
413 $! Time To End The DEBUG Check.
417 $! Tell The User We Are Compiling The IMLIB_CONFIG Executable.
419 $ WRITE SYS$OUTPUT ""
420 $ WRITE SYS$OUTPUT "Building ''IMLIB_CONFIG_EXE'."
421 $ 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:)"
423 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
425 $ IF (P3.EQS."PRE_DECC_V6_2")
428 $! We Are A Pre DEC C v6.2 Compiler So Set The DEFINE For It.
430 $ WRITE SYS$OUTPUT "/DEFINE=(""PRE_DECC_V6_2=TRUE"")"
432 $! Time To End The PRE_DECC_V6_2 Check.
436 $! Write A Seperator Line.
438 $ WRITE SYS$OUTPUT ""
440 $! Check To See If The File [.IMLIB.UTILS]IMLIB_CONFIG.C Actually Exists.
442 $ IF (F$SEARCH("''IMLIB_DIR'.UTILS]IMLIB_CONFIG.C").EQS."")
445 $! Tell The User That The File Dosen't Exist.
447 $ WRITE SYS$OUTPUT ""
448 $ WRITE SYS$OUTPUT "The File ''IMLIB_DIR'.UTILS]IMLIB_CONFIG.C Dosen't Exist."
449 $ WRITE SYS$OUTPUT ""
455 $! End The File Check.
459 $! Tell The User What We Are Compiling.
461 $ WRITE SYS$OUTPUT " ''IMLIB_DIR'.UTILS]IMLIB_CONFIG.C"
463 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
465 $ IF (P3.EQS."PRE_DECC_V6_2")
468 $! Compile The File With Pre DEC C v6.2 Support.
470 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
471 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
472 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
473 /DEFINE=("PRE_DECC_V6_2=TRUE") -
474 /OBJECT='IMLIB_CONFIG_OBJ' 'IMLIB_DIR'.UTILS]IMLIB_CONFIG.C
480 $! Compile The File Without Pre DEC C v6.2 Support.
482 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
483 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
484 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
485 /OBJECT='IMLIB_CONFIG_OBJ' 'IMLIB_DIR'.UTILS]IMLIB_CONFIG.C
487 $! Time To End The PRE_DECC_V6_2 Check.
491 $! Check To See If The File [.IMLIB.UTILS]ICONS.C Actually Exists.
493 $ IF (F$SEARCH("''IMLIB_DIR'.UTILS]ICONS.C").EQS."")
496 $! Tell The User That The File Dosen't Exist.
498 $ WRITE SYS$OUTPUT ""
499 $ WRITE SYS$OUTPUT "The File ''IMLIB_DIR'.UTILS]ICONS.C Dosen't Exist."
500 $ WRITE SYS$OUTPUT ""
506 $! End The File Check.
510 $! Tell The User What We Are Compiling.
512 $ WRITE SYS$OUTPUT " ''IMLIB_DIR'.UTILS]ICONS.C"
514 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
516 $ IF (P3.EQS."PRE_DECC_V6_2")
519 $! Compile The File With Pre DEC C v6.2 Support.
521 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
522 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
523 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
524 /DEFINE=("PRE_DECC_V6_2=TRUE") -
525 /OBJECT='ICONS_OBJ' 'IMLIB_DIR'.UTILS]ICONS.C
531 $! Compile The File Without Pre DEC C v6.2 Support.
533 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
534 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
535 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
536 /OBJECT='ICONS_OBJ' 'IMLIB_DIR'.UTILS]ICONS.C
538 $! Time To End The PRE_DECC_V6_2 Check.
542 $! Check To See If The File [.IMLIB.UTILS]TESTIMG.C Actually Exists.
544 $ IF (F$SEARCH("''IMLIB_DIR'.UTILS]TESTIMG.C").EQS."")
547 $! Tell The User That The File Dosen't Exist.
549 $ WRITE SYS$OUTPUT ""
550 $ WRITE SYS$OUTPUT "The File ''IMLIB_DIR'.UTILS]TESTIMG.C Dosen't Exist."
551 $ WRITE SYS$OUTPUT ""
557 $! End The File Check.
561 $! Tell The User What We Are Compiling.
563 $ WRITE SYS$OUTPUT " ''IMLIB_DIR'.UTILS]TESTIMG.C"
565 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
567 $ IF (P3.EQS."PRE_DECC_V6_2")
570 $! Compile The File With Pre DEC C v6.2 Support.
572 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
573 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
574 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
575 /DEFINE=("PRE_DECC_V6_2=TRUE") -
576 /OBJECT='TESTIMG_OBJ' 'IMLIB_DIR'.UTILS]TESTIMG.C
582 $! Compile The File Without Pre DEC C v6.2 Support.
584 $ CC/INCLUDE=('IMLIB_DIR'.GDK_IMLIB],'IMLIB_DIR'],'GTK_DIR'.GLIB], -
585 'GTK_DIR'.GLIB.GMODULE],'GTK_DIR'.GTK],'GTK_DIR'.GDK], -
586 PORTING_LIB:[INCLUDE],DECW$INCLUDE:) -
587 /OBJECT='TESTIMG_OBJ' 'IMLIB_DIR'.UTILS]TESTIMG.C
589 $! Time To End The PRE_DECC_V6_2 Check..
593 $! Tell The User That We Are Linking The IMLIB_CONFIG Executable.
595 $ WRITE SYS$OUTPUT ""
596 $ WRITE SYS$OUTPUT "Linking ''IMLIB_CONFIG_EXE'."
597 $ WRITE SYS$OUTPUT ""
599 $! Link The IMLIB_CONFIG Executable..
601 $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='IMLIB_CONFIG_EXE' -
602 'IMLIB_CONFIG_OBJ','ICONS_OBJ','TESTIMG_OBJ', -
603 SYS$INPUT:/OPTIONS,'IMLIB_NAME'/LIBRARY
609 SYS$SHARE:DECW$XLIBSHR.EXE/SHARE
610 SYS$SHARE:DECW$XEXTLIBSHR.EXE/SHARE
613 $! That's It, Time To Return From Where We Came From.
617 $! Build The COMMON Library.
621 $! Tell The User What We Are Doing.
623 $ WRITE SYS$OUTPUT ""
624 $ WRITE SYS$OUTPUT "Compling The ",COMMONLIB_NAME," Library."
625 $ WRITE SYS$OUTPUT "Using Compile Command: ",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON])/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"
626 $ WRITE SYS$OUTPUT ""
628 $! Check To See If We Already Have A "COMMONLIB" Library...
630 $ IF (F$SEARCH(COMMONLIB_NAME).EQS."")
633 $! Guess Not, Create The Library.
635 $ LIBRARY/CREATE/OBJECT 'COMMONLIB_NAME'
637 $! End The Library Check.
641 $! Top Of The File Loop.
643 $ NEXT_COMMONLIB_FILE:
645 $! Define The Files That Are Necessary For The COMMONLIB Library.
647 $ COMMONLIB_FILES = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.COMMON]*.C",1)))
649 $! O.K, Extract The File Name From The File List.
651 $ COMMONLIB_FILE_NAME = F$ELEMENT(0,".",COMMONLIB_FILES)
653 $! Check To See If We Are At The End Of The File List.
655 $ IF (COMMONLIB_FILE_NAME.EQS."]") THEN GOTO COMMONLIB_FILE_DONE
657 $! Create The Source File Name.
659 $ COMMONLIB_SOURCE_FILE = "SYS$DISK:[-.COMMON]" + COMMONLIB_FILE_NAME + ".C"
661 $! Check To See If We Are Compiling With DEBUG Information.
663 $ IF (DEBUGGER.EQS."DEBUG")
666 $! Create The Object File Name To Reflect DEBUG Information.
668 $ COMMONLIB_OBJECT_FILE = "SYS$DISK:[-.COMMON]" + COMMONLIB_FILE_NAME + -
669 "-" + MACHINE_TYPE + ".OBJ-DEBUG"
675 $! Create The Object File Name.
677 $ COMMONLIB_OBJECT_FILE = "SYS$DISK:[-.COMMON]" + COMMONLIB_FILE_NAME + -
678 "-" + MACHINE_TYPE + ".OBJ"
680 $! Time To End The DEBUG Check.
684 $! Tell The User What We Are Compiling.
686 $ WRITE SYS$OUTPUT " ",COMMONLIB_SOURCE_FILE
690 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON]) -
691 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE", "_''MACHINE_TYPE'_=TRUE") -
692 /OBJECT='COMMONLIB_OBJECT_FILE' 'COMMONLIB_SOURCE_FILE'
694 $! Add It To The Library.
696 $ LIBRARY/REPLACE/OBJECT 'COMMONLIB_NAME' 'COMMONLIB_OBJECT_FILE'
698 $! Delete The Object File.
700 $ DELETE/NOCONFIRM/NOLOG 'COMMONLIB_OBJECT_FILE';*
702 $! Go Back And Do It Again.
704 $ GOTO NEXT_COMMONLIB_FILE
706 $! All Done Compiling.
708 $ COMMONLIB_FILE_DONE:
710 $! That's It, Time To Return From Where We Came From.
714 $! Build The AI Library.
718 $! Tell The User What We Are Doing.
720 $ WRITE SYS$OUTPUT ""
721 $ WRITE SYS$OUTPUT "Compling The ",AILIB_NAME," Library."
722 $ 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"")"
723 $ WRITE SYS$OUTPUT ""
725 $! Check To See If We Already Have A "AILIB" Library...
727 $ IF (F$SEARCH(AILIB_NAME).EQS."")
730 $! Guess Not, Create The Library.
732 $ LIBRARY/CREATE/OBJECT 'AILIB_NAME'
734 $! End The Library Check.
738 $! Top Of The File Loop.
742 $! Define The Files That Are Necessary For The AILIB Library.
744 $ AILIB_FILES = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.AI]*.C",1)))
746 $! O.K, Extract The File Name From The File List.
748 $ AILIB_FILE_NAME = F$ELEMENT(0,".",AILIB_FILES)
750 $! Check To See If We Are At The End Of The File List.
752 $ IF (AILIB_FILE_NAME.EQS."]") THEN GOTO AILIB_FILE_DONE
754 $! Create The Source File Name.
756 $ AILIB_SOURCE_FILE = "SYS$DISK:[-.AI]" + AILIB_FILE_NAME + ".C"
758 $! Check To See If We Are Compiling With DEBUG Information.
760 $ IF (DEBUGGER.EQS."DEBUG")
763 $! Create The Object File Name To Reflect DEBUG Information.
765 $ AILIB_OBJECT_FILE = "SYS$DISK:[-.AI]" + AILIB_FILE_NAME + "-" + -
766 MACHINE_TYPE + ".OBJ-DEBUG"
772 $! Create The Object File Name.
774 $ AILIB_OBJECT_FILE = "SYS$DISK:[-.AI]" + AILIB_FILE_NAME + "-" + -
775 MACHINE_TYPE + ".OBJ"
777 $! Time To End The DEBUG Check.
781 $! Tell The User What We Are Compiling.
783 $ WRITE SYS$OUTPUT " ",AILIB_SOURCE_FILE
787 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.AI],SYS$DISK:[-.COMMON], -
788 SYS$DISK:[-.SERVER]) -
789 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
790 /OBJECT='AILIB_OBJECT_FILE' 'AILIB_SOURCE_FILE'
792 $! Add It To The Library.
794 $ LIBRARY/REPLACE/OBJECT 'AILIB_NAME' 'AILIB_OBJECT_FILE'
796 $! Delete The Object File.
798 $ DELETE/NOCONFIRM/NOLOG 'AILIB_OBJECT_FILE';*
800 $! Go Back And Do It Again.
802 $ GOTO NEXT_AILIB_FILE
804 $! All Done Compiling.
808 $! That's It, Time To Return From Where We Came From.
812 $! Build The Server Library.
816 $! Tell The User What We Are Doing.
818 $ WRITE SYS$OUTPUT ""
819 $ WRITE SYS$OUTPUT "Compling The ",SERVERLIB_NAME," Library."
820 $ 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"")"
821 $ WRITE SYS$OUTPUT ""
823 $! Check To See If We Already Have A "SERVERLIB" Library...
825 $ IF (F$SEARCH(SERVERLIB_NAME).EQS."")
828 $! Guess Not, Create The Library.
830 $ LIBRARY/CREATE/OBJECT 'SERVERLIB_NAME'
832 $! End The Library Check.
836 $! Top Of The File Loop.
838 $ NEXT_SERVERLIB_FILE:
840 $! Define The Files That Are Necessary For The SERVERLIB Library.
842 $ SERVERLIB_FILES = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.SERVER]*.C",1)))
844 $! O.K, Extract The File Name From The File List.
846 $ SERVERLIB_FILE_NAME = F$ELEMENT(0,".",SERVERLIB_FILES)
848 $! Check To See If We Are At The End Of The File List.
850 $ IF (SERVERLIB_FILE_NAME.EQS."]") THEN GOTO SERVERLIB_FILE_DONE
852 $! Check To See If We Are Going To Compile CIVSERVER. If We Are, Skip
853 $! It And Go To The Next File As We Will Compile It Later.
855 $ IF (SERVERLIB_FILE_NAME.EQS."CIVSERVER") THEN GOTO NEXT_SERVERLIB_FILE
857 $! Create The Source File Name.
859 $ SERVERLIB_SOURCE_FILE = "SYS$DISK:[-.SERVER]" + SERVERLIB_FILE_NAME + ".C"
861 $! Check To See If We Are To Compile With DEBUG Information.
863 $ IF (DEBUGGER.EQS."DEBUG")
866 $! Create The Object File Name To Reflect DEBUG Information.
868 $ SERVERLIB_OBJECT_FILE = "SYS$DISK:[-.SERVER]" + SERVERLIB_FILE_NAME + -
869 "-" + MACHINE_TYPE + ".OBJ-DEBUG"
875 $! Create The Object File Name.
877 $ SERVERLIB_OBJECT_FILE = "SYS$DISK:[-.SERVER]" + SERVERLIB_FILE_NAME + -
878 "-" + MACHINE_TYPE + ".OBJ"
880 $! Time To End The DEBUG Check.
884 $! Tell The User What We Are Compiling.
886 $ WRITE SYS$OUTPUT " ",SERVERLIB_SOURCE_FILE
890 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON], -
892 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
893 /OBJECT='SERVERLIB_OBJECT_FILE' 'SERVERLIB_SOURCE_FILE'
895 $! Add It To The Library.
897 $ LIBRARY/REPLACE/OBJECT 'SERVERLIB_NAME' 'SERVERLIB_OBJECT_FILE'
899 $! Delete The Object File.
901 $ DELETE/NOCONFIRM/NOLOG 'SERVERLIB_OBJECT_FILE';*
903 $! Go Back And Do It Again.
905 $ GOTO NEXT_SERVERLIB_FILE
907 $! All Done Compiling.
909 $ SERVERLIB_FILE_DONE:
911 $! That's It, Time To Return From Where We Came From.
915 $! Build The CIVSERVER Executable:
919 $! Check To See If We Have The "SERVERLIB" Library...
921 $ IF (F$SEARCH(SERVERLIB_NAME).EQS."")
924 $! Tell The User We Can't Find The "SERVERLIB" Library, So We Are Gong To
927 $ WRITE SYS$OUTPUT ""
928 $ WRITE SYS$OUTPUT "Can't Find The ",SERVERLIB_NAME," Library. Since It Is"
929 $ WRITE SYS$OUTPUT "Needed To Build The CIVSERVER Executable We Will Compile It Now."
931 $! Build The "SERVERLIB" Library.
933 $ GOSUB BUILD_SERVERLIB
935 $! End The SERVERLIB Library Check.
939 $! Check To See If We Have The "COMMONLIB" Library...
941 $ IF (F$SEARCH(COMMONLIB_NAME).EQS."")
944 $! Tell The User We Can't Find The "COMMONLIB" Library, So We Are Gong To
947 $ WRITE SYS$OUTPUT ""
948 $ WRITE SYS$OUTPUT "Can't Find The ",COMMONLIB_NAME," Library. Since It Is"
949 $ WRITE SYS$OUTPUT "Needed To Build The CIVSERVER Executable We Will Compile It Now."
951 $! Build The "COMMONLIB" Library.
953 $ GOSUB BUILD_COMMONLIB
955 $! End The COMMONLIB Library Check.
959 $! Check To See If We Have The "AILIB" Library...
961 $ IF (F$SEARCH(AILIB_NAME).EQS."")
964 $! Tell The User We Can't Find The "AILIB" Library, So We Are Gong To
967 $ WRITE SYS$OUTPUT ""
968 $ WRITE SYS$OUTPUT "Can't Find The ",AILIB_NAME," Library. Since It Is"
969 $ WRITE SYS$OUTPUT "Needed To Build The CIVSERVER Executable We Will Compile It Now."
971 $! Build The "AILIB" Library.
975 $! End The AILIB Library Check.
979 $! Check To See If We Have The "CIVSERVER.C" File...
981 $ IF (F$SEARCH("SYS$DISK:[-.SERVER]CIVSERVER.C").EQS."")
984 $! Tell The User We Can't Find The "CIVSERVER.C" File, So We Are Gong To
985 $! Exit As We Can't Comple Without It.
987 $ WRITE SYS$OUTPUT ""
988 $ WRITE SYS$OUTPUT "Can't Find The SYS$DISK:[-.SERVER]CIVSERVER.C File. Since It Is"
989 $ WRITE SYS$OUTPUT "Needed To Build The CIVSERVER Executable We Will Exit Now."
991 $! Since We Can't Compile Without It, Time To Exit.
995 $! End The SYS$DISK:[-.SERVER]CIVSERVER.C File Check.
999 $! Check To See If We Are Going To Compile With DEBUG Information.
1001 $ IF (DEBUGGER.EQS."DEBUG")
1004 $! Define The CIVSERVER Object File Name And Executable Name To Show A
1005 $! Version Compiled With DEBUG Information.
1007 $ CIVSERVER_OBJ = "SYS$DISK:[-.SERVER]CIVSERVER-''MACHINE_TYPE'.OBJ-DEBUG"
1008 $ CIVSERVER_EXE = "SYS$DISK:[]CIVSERVER-''MACHINE_TYPE.EXE-DEBUG"
1014 $! Define The CIVSERVER Object File Nane And Executable Name To Show A
1015 $! Version Compiles Without DEBUG Information.
1017 $ CIVSERVER_OBJ = "SYS$DISK:[-.SERVER]CIVSERVER-''MACHINE_TYPE'.OBJ"
1018 $ CIVSERVER_EXE = "SYS$DISK:[]CIVSERVER-''MACHINE_TYPE.EXE"
1020 $! Time To End The DEBUG Check.
1024 $! Tell The User We Are Building CIVSERVER.
1027 $! Well, Since It Looks Like We Have Everything, Tell The User What We
1030 $ WRITE SYS$OUTPUT ""
1031 $ WRITE SYS$OUTPUT "Building ''CIVSERVER_EXE'."
1032 $ 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"")"
1033 $ WRITE SYS$OUTPUT ""
1035 $! Compile The File.
1037 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON], -
1039 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
1040 /OBJECT='CIVSERVER_OBJ' SYS$DISK:[-.SERVER]CIVSERVER.C
1042 $! Tell The User We Are Linking The CIVSERVER.
1044 $ WRITE SYS$OUTPUT ""
1045 $ WRITE SYS$OUTPUT "Linking ''CIVSERVER_EXE'."
1046 $ WRITE SYS$OUTPUT ""
1048 $! Link The Executable.
1050 $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='CIVSERVER_EXE' 'CIVSERVER_OBJ', -
1051 'SERVERLIB_NAME'/LIBRARY,'COMMONLIB_NAME'/LIBRARY,'AILIB_NAME'/LIBRARY
1053 $! That's All, Time To Return From Where We Came From.
1057 $! Build The GTK Client Library.
1059 $ BUILD_GTKCLIENTLIB:
1061 $! Tell The User What We Are Doing.
1063 $ WRITE SYS$OUTPUT ""
1064 $ WRITE SYS$OUTPUT "Compling The ",GTKCLIENTLIB_NAME," Library."
1065 $ 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])"
1067 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1069 $ IF (P3.EQS."PRE_DECC_V6_2")
1072 $! We Are So Set A Define For Pre DEC C v6.2.
1074 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"
1080 $! We Arn't So Don't Set A Define For PRE DECC v6.2.
1082 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"
1084 $! Time To End The PRE_DECC_V6_2 Check.
1088 $! Write A Seperator Line.
1090 $ WRITE SYS$OUTPUT ""
1092 $! Define GTK To Point To The [.GTK.GTK] Directory.
1094 $ DEFINE/NOLOG GTK 'GTK_DIR'.GTK.GTK]
1096 $! Define GDK To Point To The [.GTK.GDK] Directory.
1098 $ DEFINE/NOLOG GDK 'GTK_DIR'.GTK.GDK]
1100 $! Check To See If We Have SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H
1102 $ IF (F$SEARCH("SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H").EQS."")
1105 $! We Don't Have SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H So Copy
1106 $! SYS$DISK:[]FREECIV_H.VMS To SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H
1108 $ COPY SYS$DISK:[]FREECIV_H.VMS SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H
1110 $! Time To End The SYS$DISK:[-.CLIENT.GUI-GTK]FREECIV.H File Check.
1114 $! Check To See If We Already Have A "GTKCLIENTLIB" Library...
1116 $ IF (F$SEARCH(GTKCLIENTLIB_NAME).EQS."")
1119 $! Guess Not, Create The Library.
1121 $ LIBRARY/CREATE/OBJECT 'GTKCLIENTLIB_NAME'
1123 $! End The Library Check.
1127 $! Top Of The File Loop.
1129 $ NEXT_GTKCLIENTLIB_FILE:
1131 $! Define The Files That Are Necessary For The GTKCLIENTLIB Library.
1133 $ GTKCLIENTLIB_FILES = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.CLIENT.GUI-GTK]*.C",1)))
1135 $! O.K, Extract The File Name From The File List.
1137 $ GTKCLIENTLIB_FILE_NAME = F$ELEMENT(0,".",GTKCLIENTLIB_FILES)
1139 $! Check To See If We Are At The End Of The File List.
1141 $ IF (GTKCLIENTLIB_FILE_NAME.EQS."]") THEN GOTO GTKCLIENTLIB_FILE_DONE
1143 $! Create The Source File Name.
1145 $ GTKCLIENTLIB_SOURCE_FILE = "SYS$DISK:[-.CLIENT.GUI-GTK]" + -
1146 GTKCLIENTLIB_FILE_NAME + ".C"
1148 $! Check To See If We Are Compiling With DEBUG Information.
1150 $ IF (DEBUGGER.EQS."DEBUG")
1153 $! Create The Object File Name To Reflect DEBUG Information.
1155 $ GTKCLIENTLIB_OBJECT_FILE = "SYS$DISK:[-.CLIENT.GUI-GTK]" + -
1156 GTKCLIENTLIB_FILE_NAME + "-" + MACHINE_TYPE + -
1163 $! Create The Object File Name.
1165 $ GTKCLIENTLIB_OBJECT_FILE = "SYS$DISK:[-.CLIENT.GUI-GTK]" + -
1166 GTKCLIENTLIB_FILE_NAME + "-" + MACHINE_TYPE + -
1169 $! Time To End The DEBUG Check.
1173 $! Tell The User What We Are Compiling.
1175 $ WRITE SYS$OUTPUT " ",GTKCLIENTLIB_SOURCE_FILE
1177 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1179 $ IF (P3.EQS."PRE_DECC_V6_2")
1182 $! Compile The File The File With Pre DEC C v6.2 Support.
1184 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.GUI-GTK],SYS$DISK:[-.CLIENT], -
1185 SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON], -
1186 'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB],'JACKETS_DIR'.INCLUDE]) -
1187 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -
1188 "PRE_DECC_V6_2=TRUE") -
1189 /OBJECT='GTKCLIENTLIB_OBJECT_FILE' 'GTKCLIENTLIB_SOURCE_FILE'
1195 $! Compile The File Without Pre DEC C v6.2 Support.
1197 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.GUI-GTK],SYS$DISK:[-.CLIENT], -
1198 SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.COMMON], -
1199 'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB],'JACKETS_DIR'.INCLUDE]) -
1200 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
1201 /OBJECT='GTKCLIENTLIB_OBJECT_FILE' 'GTKCLIENTLIB_SOURCE_FILE'
1203 $! Time To End The PRE_DEC_V6_2 Check.
1207 $! Add It To The Library.
1209 $ LIBRARY/REPLACE/OBJECT 'GTKCLIENTLIB_NAME' 'GTKCLIENTLIB_OBJECT_FILE'
1211 $! Delete The Object Files.
1213 $ DELETE/NOCONFIRM/NOLOG 'GTKCLIENTLIB_OBJECT_FILE';*
1215 $! Go Back And Do It Again.
1217 $ GOTO NEXT_GTKCLIENTLIB_FILE
1219 $! All Done Compiling.
1221 $ GTKCLIENTLIB_FILE_DONE:
1223 $! That's It, Time To Return From Where We Came From.
1227 $! Build The Client Library.
1231 $! Tell The User What We Are Doing.
1233 $ WRITE SYS$OUTPUT ""
1234 $ WRITE SYS$OUTPUT "Compilng The ",CLIENTLIB_NAME," Library."
1235 $ 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])"
1237 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1239 $ IF (P3.EQS."PRE_DECC_V6_2")
1242 $! Set The Define For Pre DEC C v6.2 Support.
1244 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"
1250 $! Don't Set The Define For Pre DEC C v6.2 Support.
1252 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"
1255 $! Write A Seperator Line.
1257 $ WRITE SYS$OUTPUT ""
1259 $! Check To See If We Already Have A "CLIENTLIB" Library...
1261 $ IF (F$SEARCH(CLIENTLIB_NAME).EQS."")
1264 $! Guess Not, Create The Library.
1266 $ LIBRARY/CREATE/OBJECT 'CLIENTLIB_NAME'
1268 $! End The Library Check.
1272 $! Top Of The File Loop.
1274 $ NEXT_CLIENTLIB_FILE:
1276 $! Define The Files That Are Necessary For The CLIENTLIB Library.
1278 $ CLIENTLIB_FILES = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.CLIENT]*.C",1)))
1280 $! O.K, Extract The File Name From The File List.
1282 $ CLIENTLIB_FILE_NAME = F$ELEMENT(0,".",CLIENTLIB_FILES)
1284 $! Check To See If We Are At The End Of The File List.
1286 $ IF (CLIENTLIB_FILE_NAME.EQS."]") THEN GOTO CLIENTLIB_FILE_DONE
1288 $! Check To See If We Are Going To Compile CIVCLIENT. If We Are, Skip
1289 $! It And Go To The Next File As We Will Compile It Later.
1291 $ IF (CLIENTLIB_FILE_NAME.EQS."CIVCLIENT") THEN GOTO NEXT_CLIENTLIB_FILE
1293 $! Create The Source File Name.
1295 $ CLIENTLIB_SOURCE_FILE = "SYS$DISK:[-.CLIENT]" + CLIENTLIB_FILE_NAME + ".C"
1297 $! Check To See If We Are Compiling With DEBUG Information.
1299 $ IF (DEBUGGER.EQS."DEBUG")
1302 $! Create The Object File Name To Reflect DEBUG Information.
1304 $ CLIENTLIB_OBJECT_FILE = "SYS$DISK:[-.CLIENT]" + CLIENTLIB_FILE_NAME + -
1305 "-" + MACHINE_TYPE + ".OBJ-DEBUG"
1311 $! Create The Object File Name.
1313 $ CLIENTLIB_OBJECT_FILE = "SYS$DISK:[-.CLIENT]" + CLIENTLIB_FILE_NAME + -
1314 "-" + MACHINE_TYPE + ".OBJ"
1316 $! Time To End The DEBUG Check...
1320 $! Tell The User What We Are Compiling.
1322 $ WRITE SYS$OUTPUT " ",CLIENTLIB_SOURCE_FILE
1324 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1326 $ IF (P3.EQS."PRE_DECC_V6_2")
1329 $! Compile The File With Pre DEC C v6.2 Support.
1331 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -
1332 SYS$DISK:[-.COMMON],'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB], -
1333 PORTING_LIB:[INCLUDE]) -
1334 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -
1335 "PRE_DECC_V6_2=TRUE") -
1336 /OBJECT='CLIENTLIB_OBJECT_FILE' 'CLIENTLIB_SOURCE_FILE'
1342 $! Compile The File Without Pre DEC C v6.2 Support.
1344 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -
1345 SYS$DISK:[-.COMMON],'GTK_DIR'.GLIB],'IMLIB_DIR'.GDK_IMLIB], -
1346 PORTING_LIB:[INCLUDE]) -
1347 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
1348 /OBJECT='CLIENTLIB_OBJECT_FILE' 'CLIENTLIB_SOURCE_FILE'
1350 $! Time To End The PRE_DECC_V6_2 Check.
1354 $! Add It To The Library.
1356 $ LIBRARY/REPLACE/OBJECT 'CLIENTLIB_NAME' 'CLIENTLIB_OBJECT_FILE'
1358 $! Delete The Object File.
1360 $ DELETE/NOCONFIRM/NOLOG 'CLIENTLIB_OBJECT_FILE';*
1362 $! Go Back And Do It Again.
1364 $ GOTO NEXT_CLIENTLIB_FILE
1366 $! All Done Compiling.
1368 $ CLIENTLIB_FILE_DONE:
1370 $! That's It, Time To Return From Where We Came From.
1374 $! Build The CIVCLIENT Executable:
1378 $! Check To See If We Have The "IMLIB" Library...
1380 $ IF (F$SEARCH(IMLIB_NAME).EQS."")
1383 $! Tell The User We Can't Find The "IMLIB" Library, So We Are Gong To
1386 $ WRITE SYS$OUTPUT ""
1387 $ WRITE SYS$OUTPUT "Can't Find The ",IMLIB_NAME," Library. Since It Is"
1388 $ WRITE SYS$OUTPUT "Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now."
1390 $! Build The "IMLIB" Library.
1394 $! End The IMLIB Library Check.
1398 $! Check To See If We Have The "COMMONLIB" Library...
1400 $ IF (F$SEARCH(COMMONLIB_NAME).EQS."")
1403 $! Tell The User We Can't Find The "COMMONLIB" Library, So We Are Gong To
1406 $ WRITE SYS$OUTPUT ""
1407 $ WRITE SYS$OUTPUT "Can't Find The ",COMMONLIB_NAME," Library. Since It Is"
1408 $ WRITE SYS$OUTPUT "Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now."
1410 $! Build The "COMMONLIB" Library.
1412 $ GOSUB BUILD_COMMONLIB
1414 $! End The COMMONLIB Library Check.
1418 $! Check To See If We Have The "CLIENTLIB" Library...
1420 $ IF (F$SEARCH(CLIENTLIB_NAME).EQS."")
1423 $! Tell The User We Can't Find The "CLIENTLIB" Library, So We Are Gong To
1426 $ WRITE SYS$OUTPUT ""
1427 $ WRITE SYS$OUTPUT "Can't Find The ",CLIENTLIB_NAME," Library. Since It Is"
1428 $ WRITE SYS$OUTPUT "Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now."
1430 $! Build The "CLIENTLIB" Library.
1432 $ GOSUB BUILD_CLIENTLIB
1434 $! End The CLIENTLIB Library Check.
1438 $! Check To See If We Have The "GTKCLIENTLIB" Library...
1440 $ IF (F$SEARCH(GTKCLIENTLIB_NAME).EQS."")
1443 $! Tell The User We Can't Find The "GTKCLIENTLIB" Library, So We Are Gong To
1446 $ WRITE SYS$OUTPUT ""
1447 $ WRITE SYS$OUTPUT "Can't Find The ",GTKCLIENTLIB_NAME," Library. Since It Is"
1448 $ WRITE SYS$OUTPUT "Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now."
1450 $! Build The "GTKCLIENTLIB" Library.
1452 $ GOSUB BUILD_GTKCLIENTLIB
1454 $! End The GTKCLIENTLIB Library Check.
1458 $! Check To See If We Have The "CIVCLIENT.C" File...
1460 $ IF (F$SEARCH("SYS$DISK:[-.CLIENT]CIVCLIENT.C").EQS."")
1463 $! Tell The User We Can't Find The "CIVCLIENT.C" File, So We Are Gong To
1464 $! Exit As We Can't Comple Without It.
1466 $ WRITE SYS$OUTPUT ""
1467 $ WRITE SYS$OUTPUT "Can't Find The SYS$DISK:[-.CLIENT]CIVCLIENT.C File. Since It Is"
1468 $ WRITE SYS$OUTPUT "Needed To Build The GTK CIVCLIENT Executable We Will Exit Now."
1470 $! Since We Can't Compile Without It, Time To Exit.
1474 $! End The SYS$DISK:[-.CLIENT]CIVCLIENT.C File Check.
1478 $! Check To See If We Are Going To Compile With DEBUG Information.
1480 $ IF (DEBUGGER.EQS."DEBUG")
1483 $! Define The CIVCLIENT Object File Name And Executable Name To Show A
1484 $! Version Compiled With DEBUG Information.
1486 $ CIVCLIENT_OBJ = "SYS$DISK:[-.CLIENT]CIVCLIENT-''MACHINE_TYPE'.OBJ-DEBUG"
1487 $ CIVCLIENT_EXE = "SYS$DISK:[]CIVCLIENT-''MACHINE_TYPE'.EXE-DEBUG"
1493 $! Define The CIVCLIENT Object File Nane And Executable Name To Show A
1494 $! Version Compiles Without DEBUG Information.
1496 $ CIVCLIENT_OBJ = "SYS$DISK:[-.CLIENT]CIVCLIENT-''MACHINE_TYPE'.OBJ"
1497 $ CIVCLIENT_EXE = "SYS$DISK:[]CIVCLIENT-''MACHINE_TYPE'.EXE"
1499 $! Time To End The DEBUG Check.
1503 $! Well, Since It Looks Like We Have Everything, Tell The User What We
1506 $ WRITE SYS$OUTPUT ""
1507 $ WRITE SYS$OUTPUT "Building ''CIVCLIENT_EXE'."
1508 $ WRITE SYS$OUTPUT "Using Compile Command: ",CC,"/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.SERVER],SYS$DISK:[-.COMMON],SYS$DISK:[-.AI])"
1510 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1512 $ IF (P3.EQS."PRE_DECC_V6_2")
1515 $! Set The Define For Pre DEC C v6.2 Support.
1517 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"",""PRE_DECC_V6_2=TRUE"")"
1520 $! Don't Set The Define For Pre DEC C v6.2 Support.
1522 $ WRITE SYS$OUTPUT "/DEFINE=(""HAVE_CONFIG_H=TRUE"",""DEBUG=TRUE"",""_''MACHINE_TYPE'_=TRUE"")"
1524 $! Time To End The PRE_DECC_V6_2 Check
1528 $! Write A Seperator Line.
1530 $ WRITE SYS$OUTPUT ""
1532 $! Check To See If We Are A Pre DEC C v6.2 Compiler.
1534 $ IF (P3.EQS."PRE_DECC_V6_2")
1537 $! Compile The File With Pre DEC C v6.2 Support.
1539 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -
1540 SYS$DISK:[-.COMMON]) -
1541 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE", -
1542 "PRE_DECC_V6_2=TRUE") -
1543 /OBJECT='CIVCLIENT_OBJ' SYS$DISK:[-.CLIENT]CIVCLIENT.C
1549 $! Compile The File Without Pre DEC C v6.2 Support.
1551 $ CC/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE], -
1552 SYS$DISK:[-.COMMON]) -
1553 /DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_''MACHINE_TYPE'_=TRUE") -
1554 /OBJECT='CIVCLIENT_OBJ' SYS$DISK:[-.CLIENT]CIVCLIENT.C
1556 $! Time To End The PRE_DECC_V6_2 Check.
1560 $! Tell The User We Are Linking The Executable.
1562 $ WRITE SYS$OUTPUT ""
1563 $ WRITE SYS$OUTPUT "Linking ''CIVCLIENT_EXE'."
1564 $ WRITE SYS$OUTPUT ""
1566 $! Link The CIVCLIENT Executable.
1568 $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='CIVCLIENT_EXE' 'CIVCLIENT_OBJ', -
1569 'GTKCLIENTLIB_NAME'/LIBRARY,'CLIENTLIB_NAME'/LIBRARY, -
1570 'COMMONLIB_NAME'/LIBRARY,SYS$INPUT:/OPTIONS,'IMLIB_NAME'/LIBRARY
1576 SYS$SHARE:DECW$XLIBSHR.EXE/SHARE
1577 SYS$SHARE:DECW$XEXTLIBSHR.EXE/SHARE
1580 $! That's All, Time To Return From Where We Came From.
1584 $! Check The User's Options.
1588 $! Check To See If We Are To "Just Build Everything."
1590 $ IF (P1.EQS."").OR.(P1.EQS."ALL")
1593 $! P1 Is Blank Or "ALL", So Just Build Everything.
1601 $! Check To See If P1 Has A Valid Arguement.
1603 $ IF (P1.EQS."COMMONLIB").OR.(P1.EQS."AILIB").OR.(P1.EQS."SERVERLIB").OR. -
1604 (P1.EQS."CIVSERVER").OR.(P1.EQS."CLIENTLIB").OR.(P1.EQS."IMLIB").OR. -
1605 (P1.EQS."GTKCLIENTLIB").OR.(P1.EQS."CIVCLIENT")
1608 $! Check To See If We Are On A VAX.
1610 $ IF (F$GETSYI("CPU").LT.128)
1613 $! We Are On A VAX, Check To See If The Options The User Entered
1614 $! Are Valib For VAX.
1616 $ IF (P1.EQS."CLIENTLIB").OR.(P1.EQS."GTKCLIENTLIB").OR. -
1617 (P1.EQS."CIVCLIENT").OR.(P1.EQS."IMLIB")
1620 $! The User Entered An Option Invalid For OpenVMS VAX, So Tell Them.
1622 $ WRITE SYS$OUTPUT ""
1623 $ WRITE SYS$OUTPUT "Sorry, for now only the CIVSERVER is available for OpenVMS VAX."
1624 $ WRITE SYS$OUTPUT ""
1626 $! Since They Entered An Invalid Option, Exit.
1630 $! Time To End The VAX Option Check.
1634 $! Time To Exit The Valid VAX Check.
1638 $! A Valid Arguement.
1646 $! Tell The User We Don't Know What They Want.
1648 $ WRITE SYS$OUTPUT ""
1649 $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
1650 $ WRITE SYS$OUTPUT ""
1651 $ WRITE SYS$OUTPUT " ALL : Just Build 'Everything'."
1652 $ WRITE SYS$OUTPUT " IMLIB : Just Build The IMLIB Library."
1653 $ WRITE SYS$OUTPUT " COMMONLIB : Just Build The Library Of Common Routines."
1654 $ WRITE SYS$OUTPUT " AILIB : Just Build The AI Library."
1655 $ WRITE SYS$OUTPUT " SERVERLIB : Just Build The Server Library."
1656 $ WRITE SYS$OUTPUT " CIVSERVER : Just Build The CIVSERVER Executable."
1657 $ WRITE SYS$OUTPUT " CLIENTLIB : Just Build The Client Library."
1658 $ WRITE SYS$OUTPUT " GTKCLIENTLIB : Just Build The GTK Client Library."
1659 $ WRITE SYS$OUTPUT " CIVCLIENT : Just Build The CIVCLIENT Executable."
1660 $ WRITE SYS$OUTPUT ""
1666 $! Time To End The Valid Arguement Check.
1670 $! Time To End The BUILDALL Check.
1674 $! Check To See If We Are To Compile Without Debugger Information.
1676 $ IF ((P2.EQS."").OR.(P2.EQS."NODEBUG"))
1679 $! P2 Is Either Blank Or "NODEBUG" So Compile Without Debugger Information.
1681 $ DEBUGGER = "NODEBUG"
1683 $! Check To See If We Are On An AXP Platform.
1685 $ IF (F$GETSYI("CPU").LT.128)
1688 $! We Are On A VAX Machine So Use VAX Compiler Optimizations.
1690 $ OPTIMIZE = "OPTIMIZE"
1696 $! We Are On A AXP Machine So Use AXP Compiler Optimizations.
1698 $ OPTIMIZE = "OPTIMIZE=(LEVEL=5,TUNE=HOST)/ARCH=HOST"
1700 $! Time To End The Machine Check.
1704 $! Define The Linker Options.
1706 $ TRACEBACK = "NOTRACEBACK"
1708 $! Tell The User What They Selected.
1710 $ WRITE SYS$OUTPUT ""
1711 $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
1712 $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
1715 $! Check To See If We Are To Compile With Debugger Information.
1717 $ IF (P2.EQS."DEBUG")
1720 $! Compile With Debugger Information.
1722 $ DEBUGGER = "DEBUG"
1723 $ OPTIMIZE = "NOOPTIMIZE"
1724 $ TRACEBACK = "TRACEBACK"
1726 $! Tell The User What They Selected.
1728 $ WRITE SYS$OUTPUT ""
1729 $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
1730 $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
1736 $! Tell The User Entered An Invalid Option..
1738 $ WRITE SYS$OUTPUT ""
1739 $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
1740 $ WRITE SYS$OUTPUT ""
1741 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
1742 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
1743 $ WRITE SYS$OUTPUT ""
1749 $! Time To End The DEBUG Check.
1753 $! Time To End The P2 Check.
1757 $! Check To See If We Are To Compile With Pre DEC C v6.2 Support.
1762 $! The We Are Not Compiling With Pre DEC C v6.2 Support, So Go Back To
1763 $! Where We Came From.
1771 $! Check To See If The User Entered A Valid Option.
1773 $ IF (P3.EQS."PRE_DECC_V6_2")
1776 $! We Are Compiling With Pre DEC C v6.2 Support, So Tell The User.
1778 $ WRITE SYS$OUTPUT "Compiling With Pre DEC C v6.2 Support."
1780 $! Time To Return From Where We Came From.
1788 $! Tell The User Entered An Invalid Option..
1790 $ WRITE SYS$OUTPUT ""
1791 $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Option Is:"
1792 $ WRITE SYS$OUTPUT ""
1793 $ WRITE SYS$OUTPUT " PRE_DECC_V6_2 : Compile With Pre DEC C v6.2 Support."
1794 $ WRITE SYS$OUTPUT ""
1800 $! Time To End The PRE_DECC_V6_2 Check.
1804 $! Time To End The P3 Check.
1808 $! Time To Return To Where We Were.
1812 $! Check To Make Sure We Have The GTK+ And Porting Library Logicals Set.
1814 $ CHECK_LIB_LOGICALS:
1816 $! Tell The User We Are Checking Logicals.
1818 $ WRITE SYS$OUTPUT "Checking Library Logicals."
1820 $! Check To See If The LIBGLIB Logical Is Assigned.
1822 $ IF (F$TRNLNM("LIBGLIB").EQS."")
1824 $ DEFINE/NOLOG LIBGLIB 'GTK_DIR'.GLIB]LIBGLIB.EXE
1827 $! Check To See If The LIBGMODULE Logical Is Assigned.
1829 $ IF (F$TRNLNM("LIBGMODULE").EQS."")
1831 $ DEFINE/NOLOG LIBGMODULE 'GTK_DIR'.GLIB.GMODULE]LIBGMODULE.EXE
1834 $! Check To See If The LIBGDK Logical Is Assigned.
1836 $ IF (F$TRNLNM("LIBGDK").EQS."")
1838 $ DEFINE/NOLOG LIBGDK 'GTK_DIR'.GTK.GDK]LIBGDK.EXE
1841 $! Check To See If The LIBGTK Logical Is Assigned.
1843 $ IF (F$TRNLNM("LIBGTK").EQS."")
1845 $ DEFINE/NOLOG LIBGTK 'GTK_DIR'.GTK.GTK]LIBGTK.EXE
1848 $! Check To See If The PORTING_LIB Logical Is Assigned.
1850 $ IF (F$TRNLNM("PORTING_LIB").EQS."")
1853 $! Tell The User That We Need To Have The PORTING_LIB Logical Defiend.
1855 $ WRITE SYS$OUTPUT ""
1856 $ WRITE SYS$OUTPUT "The Logical PORTING_LIB Is Not Defined. We Need This"
1857 $ WRITE SYS$OUTPUT "Logical Defined For The CIVCLIENT To Compile And Link."
1858 $ WRITE SYS$OUTPUT ""
1859 $ WRITE SYS$OUTPUT "The PORTING_LIB Logical Needs To Point To The Directory"
1860 $ WRITE SYS$OUTPUT "Where You Installed Your OpenVMS Porting Library After Compiling."
1861 $ WRITE SYS$OUTPUT ""
1862 $ WRITE SYS$OUTPUT "Example: $ DEFINE/NOLOG PORTING_LIB DISK$CARTMAN:[PORTING_LIB.]"
1863 $ WRITE SYS$OUTPUT ""
1865 $! Since It's Needed And Not Defined, Just EXIT.
1869 $! Time TO End The PORTING_LIB Check.
1873 $! Check To See If The VMS_JACKETS Logical Is Assigned.
1875 $ IF (F$TRNLNM("VMS_JACKETS").EQS."")
1877 $ DEFINE/NOLOG VMS_JACKETS PORTING_LIB:[LIB]VMS_JACKETS.EXE
1880 $! All Done, Time To Return From Where We Game From.
1884 $! Check To Make Sure We Have Some Necessary Directories.
1886 $ CHECK_DIRECTORIES:
1888 $! Tell The User We Are Checking Files And Directories.
1890 $ WRITE SYS$OUTPUT "Checking Directories."
1892 $! If We Are Compiling "ALL", "CLIENTLIB", "GTKCLIENTLIB", "CIVCLIENT" and
1893 $! "IMLIB" Then Check For The GTK and IMLIB Directories And Files.
1895 $ IF (P1.EQS."ALL").OR.(P1.EQS."CLIENTLIB").OR.(P1.EQS."GTKCLIENTLIB").OR. -
1896 (P1.EQS."CIVCLIENT").OR.(P1.EQS."IMLIB").OR.(BUILDALL.EQS."TRUE")
1899 $! Define Where We Are Looking For GTK.
1901 $ DIR_NAME = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.-]GTK*.DIR")))
1903 $! Let's See If We Have The GTK Directory.
1905 $ IF (DIR_NAME.EQS."]")
1908 $! Tell The User We Didn't Find The GTK Directory And That
1909 $! We Are Going To Exit As We Need That To Compile.
1911 $ WRITE SYS$OUTPUT ""
1912 $ WRITE SYS$OUTPUT "I Can't Seem To Find The GTK Directory In SYS$DISK:[-.-]. Since It Is"
1913 $ WRITE SYS$OUTPUT "Needed To Compile The Freeciv Client, This Needs To Be Resolved."
1914 $ WRITE SYS$OUTPUT ""
1924 $! We Found The GTK Directoy So Make The GTK_DIR Variable.
1926 $ GTK_DIR = "SYS$DISK:[-.-." + F$ELEMENT(0,".",DIR_NAME)
1928 $! Time To End The GTK Directory Check.
1932 $! Define Where We Are Looking For IMLIB.
1934 $ DIR_NAME = F$ELEMENT(0,";",F$ELEMENT(1,"]",F$SEARCH("SYS$DISK:[-.-]IMLIB*.DIR")))
1936 $! Let's See If We Have The IMLIB Directory.
1938 $ IF (DIR_NAME.EQS."]")
1941 $! Tell The User We Didn't Find The IMLIB Directory And That
1942 $! We Are Going To Exit As We Need That To Compile.
1944 $ WRITE SYS$OUTPUT ""
1945 $ WRITE SYS$OUTPUT "I Can't Seem To Find The IMLIB Directory In SYS$DISK:[-.-]. Since It Is"
1946 $ WRITE SYS$OUTPUT "Needed To Compile The Freeciv Client, This Needs To Be Resolved."
1947 $ WRITE SYS$OUTPUT ""
1957 $! We Found The IMLIB Directoy So Make The IMLIB_DIR Variable.
1959 $ IMLIB_DIR = "SYS$DISK:[-.-." + F$ELEMENT(0,".",DIR_NAME)
1961 $! Time To End The IMLIB_DIR Directory Check.
1965 $! Let's See If We Have The IMLIB_CONFIG.H_VMS File.
1967 $ IF (F$SEARCH("SYS$DISK:[]IMLIB_CONFIG.H_VMS").EQS."")
1970 $! Tell The User We Didn't Find The SYS$DISK:[]IMLIB_CONFIG.H_VMS File And
1971 $! We Are Going To Exit As We Need That To Compile.
1973 $ WRITE SYS$OUTPUT ""
1974 $ WRITE SYS$OUTPUT "I Can't Seem To Find The SYS$DISK:[]IMLIB_CONFIG.H_VMS File. Since It Is"
1975 $ WRITE SYS$OUTPUT "Needed To Compile The Freeciv Client, This Needs To Be Resolved."
1976 $ WRITE SYS$OUTPUT ""
1986 $! Copy IMLIB_CONFIG.H_VMS To IMLIB_CONFIG.H In The IMLIB Directory.
1988 $ COPY SYS$DISK:[]IMLIB_CONFIG.H_VMS 'IMLIB_DIR']CONFIG.H
1990 $! Time To End The SYS$DISK:[]IMLIB_CONFIG.H_VMS File Check.
1994 $! Time To End The P1 Check.
1998 $! All Done, Time To Return From Where We Game From.
2002 $! Check To Make Sure We Have Some Necessary Directories.
2006 $! Tell The User We Are Checking Files And Directories.
2008 $ WRITE SYS$OUTPUT "Checking Files."
2010 $! Let's See If We Have The SYS$DISK:[]CONFIG.H_VMS File.
2012 $ IF (F$SEARCH("SYS$DISK:[]CONFIG.H_VMS").EQS."")
2015 $! Tell The User We Didn't Find The SYS$DISK:[]CONFIG.H_VMS File And
2016 $! We Are Going To Exit As We Need That To Compile.
2018 $ WRITE SYS$OUTPUT ""
2019 $ WRITE SYS$OUTPUT "I Can't Seem To Find The SYS$DISK:[]CONFIG.H_VMS File. Since It Is"
2020 $ WRITE SYS$OUTPUT "Needed To Compile Freeciv This Needs To Be Resolved."
2021 $ WRITE SYS$OUTPUT ""
2031 $! Copy SYS$DISK:[]CONFIG.H_VMS To SYS$DISK:[-]CONFIG.H
2033 $ COPY SYS$DISK:[]CONFIG.H_VMS SYS$DISK:[-]CONFIG.H
2035 $! Time To End The SYS$DISK:[]CONFIG.H_VMS File Check.
2039 $! All Done, Time To Return From Where We Game From.