File: vms_make.com

package info (click to toggle)
xpdf 0.90-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,336 kB
  • ctags: 3,082
  • sloc: cpp: 60,803; ansic: 720; makefile: 479; sh: 185
file content (86 lines) | stat: -rw-r--r-- 2,283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
$!========================================================================
$!
$! Main xpdf compile script for VMS.
$!
$! Copyright 1996 Derek B. Noonburg
$!
$!========================================================================
$!
$! If you want to enable xpm-support for Xpdf invoke this file as 
$! @vms_make xpm . Make sure you've installed both the headerfiles
$! as well as the compiled object library in your X11 path then.
$! Information about the xpm library distribution can be found on 
$! http://axp616.gsi.de:8080/www/vms/sw/xpm.htmlx
$!
$! In case you want to override the automatic compiler detection
$! specify either DECC or GCC as the second paramter,
$! e.g. @vms_make "" GCC 
$!
$! In case of problems with the compile you may contact me at 
$! zinser@decus.decus.de . 
$!
$!========================================================================
$!
$!
$!
$ true = 1
$ false = 0
$ if (p1 .eqs. "") then xpm = ",NO_XPM"
$!
$! Look for the compiler used
$!
$ its_decc = (f$search("SYS$SYSTEM:CXX$COMPILER.EXE") .nes. "")
$ its_gnuc = .not. its_decc  .and. (f$trnlnm("gnu_cc").nes."")
$!
$! Exit if no compiler available
$!
$ if (.not. (its_decc .or. its_gnuc))
$  then
$   write sys$output "C++ compiler required to build Xpdf"
$   exit
$  endif
$!
$! Override if requested from the commandline
$!
$ if (p2 .eqs. "DECC") 
$  then 
$   its_decc = true
$   its_gnuc = false
$ endif
$ if (p2 .eqs. "GCC") 
$  then 
$  its_decc = false
$  its_gnuc = true
$ endif
$!
$ defs = "/define=(VMS,NO_POPEN,USE_GZIP''xpm')"
$ incs = "/include=([],[-.goo],[-.ltk])"
$!
$! Build the option file
$!
$ open/write optf xpdf.opt
$ write optf "Identification=""xpdf 0.90"""
$ if (p1 .eqs. "xpm") then write optf "X11:libxpm.olb/lib"
$ write optf "SYS$SHARE:DECW$XLIBSHR.EXE/SHARE"
$!
$ if its_decc
$  then
$   ccomp   :== "CC /DECC /PREFIX=ALL ''defs' ''incs'"
$   cxxcomp :== "CXX /PREFIX=ALL ''defs' ''incs'"
$ endif
$!
$ if its_gnuc
$  then
$   ccomp   :== "GCC /NOCASE ''defs' ''incs'" 
$   cxxcomp :== "GCC /PLUSPLUS /NOCASE ''defs' ''incs'"
$   write optf "gnu_cc:[000000]gcclib.olb/lib"
$   write optf "sys$share:vaxcrtl.exe/share"
$ endif
$ close optf
$ set default [.goo]
$ @vms_make
$ set default [-.ltk]
$ @vms_make 
$ set default [-.xpdf]
$ @vms_make
$ set default [-]