diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:34:05 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:34:05 -0400 |
| commit | 60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f (patch) | |
| tree | fdc0be85a1ca35e34c3ae2c805fe9b718e3c1091 /gcc-1.40/make-cccp.com | |
| parent | dd8dfab51b832a654365ed00c06bf802ff628bfa (diff) | |
| download | linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.tar.gz linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.tar.bz2 linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.zip | |
Diffstat (limited to 'gcc-1.40/make-cccp.com')
| -rw-r--r-- | gcc-1.40/make-cccp.com | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gcc-1.40/make-cccp.com b/gcc-1.40/make-cccp.com new file mode 100644 index 0000000..4978216 --- /dev/null +++ b/gcc-1.40/make-cccp.com @@ -0,0 +1,48 @@ +$! 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 +$! +$! 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,'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 |
