diff options
author | Richard Stallman <rms@gnu.org> | 1992-02-12 17:50:48 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-02-12 17:50:48 +0000 |
commit | 948c37aafe65d32757046ca3dc979dc4571b3041 (patch) | |
tree | 286ed8a10e9ea73398003962ef3fb6d38079e5fb /gcc/make-cccp.com | |
parent | 89cf554bda49808feef769fad6dd62fef6223bdf (diff) | |
download | gcc-948c37aafe65d32757046ca3dc979dc4571b3041.tar.gz |
Initial revision
From-SVN: r310
Diffstat (limited to 'gcc/make-cccp.com')
-rw-r--r-- | gcc/make-cccp.com | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gcc/make-cccp.com b/gcc/make-cccp.com new file mode 100644 index 00000000000..f224ac58ff3 --- /dev/null +++ b/gcc/make-cccp.com @@ -0,0 +1,50 @@ +$! Set the def dir to proper place for use in batch. Works for interactive too. +$flnm = f$enviroment("PROCEDURE") ! get current procedure name +$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")' +$! +$! Build the GNU "C" pre-processor on VMS +$! +$ +$! +$! C compiler +$! +$ CC := gcc +$ BISON := bison +$ RENAME := rename +$! +$! Compiler options +$! +$ CFLAGS = "/debug/inc=([],[.config])" +$! +$! Link options +$! +$ LDFLAGS := /nomap +$! +$! Link libraries +$! +$ LIBS := gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr +$ if "''p1'" .eqs. "LINK" then goto Link +$ 'CC 'CFLAGS cccp.c +$ t1:='f$search("CEXP.C")' +$ if "''t1'" .eqs. "" then goto 10$ +$ t1:='f$file_attributes("CEXP.Y","RDT")' +$ 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$: +$! +$ 'CC 'CFLAGS cexp.c +$ 'CC 'CFLAGS version.c +$ Link: +$ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS' +$! +$! CAUTION: If you want to link gcc-cpp to the sharable image library +$! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first. +$! +$! Done +$! +$ exit |