forked from n-t-roff/sc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.com
39 lines (39 loc) · 1.4 KB
/
build.com
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
$! VMS command file to build SC and PSC (requires bison) on VMS
$! SC:
$! $Revision: 7.16 $
$! bison -d gram.y
$! ren gram_tab.c gram.c
$ cc'p1' /define=("SIMPLE","SIGVOID") sc.c
$ cc'p1' /define=("SIMPLE","SIGVOID") gram.c
$ cc'p1' /define=("SIMPLE","SIGVOID") lex.c
$ cc'p1' /define=("SIMPLE","SIGVOID","RINT") interp
$ cc'p1' /define=("SIMPLE","SIGVOID") cmds
$ cc'p1' /define=("SIMPLE","SIGVOID") xmalloc
$ cc'p1' /define=("SIMPLE","SIGVOID") range
$ cc'p1' /define=("SIMPLE","SIGVOID") help
$ cc'p1' /define=("SIMPLE","SIGVOID") vmtbl
$ cc'p1' /define=("SIMPLE","SIGVOID") screen
$ cc'p1' /define=("SIMPLE","SIGVOID") vi
$ cc'p1' /define=("SIMPLE","SIGVOID") format
$ link'p1' sc.obj,lex.obj,gram.obj,interp.obj,cmds.obj,xmalloc.obj,-
range.obj,help.obj,vmtbl.obj,screen.obj,vi.obj,format.obj,-
sys$library:vaxccurse.olb/lib,-
sys$library:vaxcrtl/shar
$ !
$ ! Create VMS foreign command symbol to test SC
$ !
$ sc == "$" + f$logical("SYS$DISK") + f$directory() + "SC.EXE"
$!
$! Now PSC
$!
!$ cc'p1' psc.c
!$ cc'p1' getopt.c
$ link'p1' psc,getopt,vmtbl.obj,xmalloc.obj,screen.obj,vi.obj,format.obj,-
sys$library:vaxccurse.olb/lib,-
sys$library:vaxcrtl/shar
$ !
$ ! Create VMS foreign command symbol to test PSC (Note that
$ ! PSC reads SYS$INPUT and writes to SYS$OUTPUT, so use
$ ! DEFINE/USER to redirect.)
$ !
$ psc == "$" + f$logical("SYS$DISK") + f$directory() + "PSC.EXE"