Commit b5890b31 by Richard Kenner

Revise to be more consistent with make-cc1.com for symbol setup &

usage and for echoing command execution.

From-SVN: r7709
parent 63468c37
...@@ -11,28 +11,36 @@ $ ...@@ -11,28 +11,36 @@ $
$! $!
$! C compiler $! C compiler
$! $!
$ CC := gcc $ CC = "gcc"
$! CC := cc !uncomment for VAXC $! CC = "cc" !uncomment for VAXC
$ BISON := bison $ BISON = "bison"
$ RENAME := rename $ RENAME= "rename/New_Version"
$ LINK := link $ LINK = "link"
$ echo = "write sys$output"
$! $!
$! Compiler options $! Compiler options
$! $!
$ CFLAGS = "/debug/incl=([],[.config.])" $ CFLAGS = "/Debug/noVerbos"
$! CFLAGS = "/noopt/incl=([],[.config])" !uncomment for VAXC $! CFLAGS = "/noOpt" !uncomment for VAXC
$! $!
$! Link options $! Link options
$! $!
$ LDFLAGS := /nomap $ LDFLAGS = "/noMap"
$! $!
$! Link libraries $! Link libraries
$! $!
$ LIBS := gnu_cc:[000000]gcclib.olb/libr,sys$library:vaxcrtl.olb/libr $ LIBS = "gnu_cc:[000000]gcclib.olb/Libr,sys$library:vaxcrtl.olb/Libr"
$! LIBS := alloca.obj,sys$library:vaxcrtl.olb/libr !uncomment for VAXC $! LIBS = "alloca.obj,sys$library:vaxcrtl.olb/Libr" !uncomment for VAXC
$
$!!!!!!!
$! Nothing beyond this point should need any local configuration changes.
$!!!!!!!
$ $
$ if "''p1'" .eqs. "LINK" then goto Link $ if "''p1'" .eqs. "LINK" then goto Link
$ 'CC 'CFLAGS cccp.c $ echo " Building the preprocessor."
$ set verify
$ 'CC''CFLAGS' cccp.c
$!'f$verify(0)
$ t1:='f$search("CEXP.C")' $ t1:='f$search("CEXP.C")'
$ if "''t1'" .eqs. "" then goto 10$ $ if "''t1'" .eqs. "" then goto 10$
$ t1:='f$file_attributes("CEXP.Y","RDT")' $ t1:='f$file_attributes("CEXP.Y","RDT")'
...@@ -40,18 +48,31 @@ $ t1:='f$cvtime(t1)' ...@@ -40,18 +48,31 @@ $ t1:='f$cvtime(t1)'
$ t2:='f$file_attributes("CEXP.C","RDT")' $ t2:='f$file_attributes("CEXP.C","RDT")'
$ t2:='f$cvtime(t2)' $ t2:='f$cvtime(t2)'
$ if t1 .les. t2 then goto 20$ $ if t1 .les. t2 then goto 20$
$ 10$: $10$:
$ bison cexp.y $ set verify
$ rename cexp_tab.c cexp.c $ 'BISON' cexp.y
$ 20$: $ 'RENAME' cexp_tab.c cexp.c
$! $!'f$verify(0)
$ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).lt.f$length(LIBS) then - $20$:
'CC 'CFLAGS /define="STACK_DIRECTION=(-1)" alloca.c $!
$! $ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).lt.f$length(LIBS)
$ 'CC 'CFLAGS cexp.c $ then
$ 'CC 'CFLAGS version.c $ set verify
$ Link: $ 'CC''CFLAGS'/Define="STACK_DIRECTION=(-1)" alloca.c !#'f$verify(1)
$ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS' $!'f$verify(0)
$ endif
$!
$ echo " (Ignore any warning about not finding file ""bison.simple"".)"
$ set verify
$ 'CC''CFLAGS' cexp.c
$ 'CC''CFLAGS' version.c
$!'f$verify(0)
$Link:
$ echo " Linking the preprocessor."
$ set verify
$ 'LINK''LDFLAGS'/Exe=gcc-cpp.exe cccp.obj,cexp.obj,version.obj,version.opt/Opt,-
'LIBS'
$!'f$verify(0)
$! $!
$! Done $! Done
$! $!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment