aboutsummaryrefslogtreecommitdiff
path: root/gcc/make-cccp.com
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-07-11 15:16:22 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-07-11 15:16:22 -0400
commitb5890b315799572ece95bda30ecd522c499e3580 (patch)
treeaf7bd9c1ea9940ba8fae2b10b68dec11a04fb211 /gcc/make-cccp.com
parent63468c37b4a0223bdb3341428790ebbc7c5bb725 (diff)
downloadgcc-b5890b315799572ece95bda30ecd522c499e3580.zip
gcc-b5890b315799572ece95bda30ecd522c499e3580.tar.gz
gcc-b5890b315799572ece95bda30ecd522c499e3580.tar.bz2
Revise to be more consistent with make-cc1.com for symbol setup &
usage and for echoing command execution. From-SVN: r7709
Diffstat (limited to 'gcc/make-cccp.com')
-rw-r--r--gcc/make-cccp.com67
1 files changed, 44 insertions, 23 deletions
diff --git a/gcc/make-cccp.com b/gcc/make-cccp.com
index f3d6bef..d19940a 100644
--- a/gcc/make-cccp.com
+++ b/gcc/make-cccp.com
@@ -11,28 +11,36 @@ $
$!
$! C compiler
$!
-$ CC := gcc
-$! CC := cc !uncomment for VAXC
-$ BISON := bison
-$ RENAME := rename
-$ LINK := link
+$ CC = "gcc"
+$! CC = "cc" !uncomment for VAXC
+$ BISON = "bison"
+$ RENAME= "rename/New_Version"
+$ LINK = "link"
+$ echo = "write sys$output"
$!
$! Compiler options
$!
-$ CFLAGS = "/debug/incl=([],[.config.])"
-$! CFLAGS = "/noopt/incl=([],[.config])" !uncomment for VAXC
+$ CFLAGS = "/Debug/noVerbos"
+$! CFLAGS = "/noOpt" !uncomment for VAXC
$!
$! Link options
$!
-$ LDFLAGS := /nomap
+$ LDFLAGS = "/noMap"
$!
$! Link libraries
$!
-$ LIBS := gnu_cc:[000000]gcclib.olb/libr,sys$library:vaxcrtl.olb/libr
-$! LIBS := alloca.obj,sys$library:vaxcrtl.olb/libr !uncomment for VAXC
+$ LIBS = "gnu_cc:[000000]gcclib.olb/Libr,sys$library:vaxcrtl.olb/Libr"
+$! 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
-$ 'CC 'CFLAGS cccp.c
+$ echo " Building the preprocessor."
+$ set verify
+$ 'CC''CFLAGS' cccp.c
+$!'f$verify(0)
$ t1:='f$search("CEXP.C")'
$ if "''t1'" .eqs. "" then goto 10$
$ t1:='f$file_attributes("CEXP.Y","RDT")'
@@ -40,18 +48,31 @@ $ t1:='f$cvtime(t1)'
$ t2:='f$file_attributes("CEXP.C","RDT")'
$ t2:='f$cvtime(t2)'
$ if t1 .les. t2 then goto 20$
-$ 10$:
-$ bison cexp.y
-$ rename cexp_tab.c cexp.c
-$ 20$:
-$!
-$ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).lt.f$length(LIBS) then -
- 'CC 'CFLAGS /define="STACK_DIRECTION=(-1)" alloca.c
-$!
-$ 'CC 'CFLAGS cexp.c
-$ 'CC 'CFLAGS version.c
-$ Link:
-$ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS'
+$10$:
+$ set verify
+$ 'BISON' cexp.y
+$ 'RENAME' cexp_tab.c cexp.c
+$!'f$verify(0)
+$20$:
+$!
+$ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).lt.f$length(LIBS)
+$ then
+$ set verify
+$ 'CC''CFLAGS'/Define="STACK_DIRECTION=(-1)" alloca.c !#'f$verify(1)
+$!'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
$!