File: make2.com

package info (click to toggle)
xsnow 1.41-1
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 308 kB
  • ctags: 178
  • sloc: ansic: 1,214; makefile: 56; sh: 10
file content (51 lines) | stat: -rwxr-xr-x 1,414 bytes parent folder | download | duplicates (7)
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
$! Compile and link Xsnow under VMS 
$!
$! Get compiler info
$!
$ CFLAGS = "/optimize"
$ decc = f$search("SYS$SYSTEM:DECC$COMPILER.EXE") .nes. "" -
        .and. CFLAGS - "/VAXC" .eqs. CFLAGS
$ all_cflags = CFLAGS
$ if decc then all_cflags = "/DECC/PREFIX=ALL " + all_cflags
$!
$!      Build the option-file
$!
$ open/write optf xsnow.opt
$ write optf "xsnow"
$ if .not.decc then write optf "SYS$SHARE:ucx$ipc/lib"
$ write optf "Identification=""Xsnow 1.39""
$!
$!
$!  Find out which X-Version we're running.  This will fail for older
$!  VMS versions (i.e., v5.5-1).  Therefore, choose DECWindows XUI for
$!  default.
$!
$ On Error Then GoTo XUI
$ @sys$update:decw$get_image_version sys$share:decw$xlibshr.exe decw$version
$ if f$extract(4,3,decw$version).eqs."1.0"
$ then
$   write optf "Sys$share:DECW$DWTLIBSHR.EXE/Share"
$ endif
$ if f$extract(4,3,decw$version).eqs."1.1"
$ then
$   write optf "sys$share:decw$xmulibshr.exe/share"
$   write optf "sys$share:decw$xtshr.exe/share"
$ endif
$ if f$extract(4,3,decw$version).eqs."1.2"
$ then
$   write optf "sys$share:decw$xmulibshrr5.exe/share"
$   write optf "sys$share:decw$xtlibshrr5.exe/share"
$ endif
$ GoTo MAIN
$!
$XUI:
$!
$   write optf "Sys$share:DECW$DWTLIBSHR.EXE/Share"
$MAIN:
$!
$ write optf "sys$share:decw$xlibshr.exe/share"
$ if .not.decc then write optf "SYS$SHARE:VAXCRTL/SHARE"
$ close optf
$ cc'all_cflags' xsnow.c
$ link xsnow.opt/opt
$ exit