]> gcc.gnu.org Git - gcc.git/blame - gcc/make-cccp.com
Initial revision
[gcc.git] / gcc / make-cccp.com
CommitLineData
948c37aa
RS
1$! Set the def dir to proper place for use in batch. Works for interactive too.
2$flnm = f$enviroment("PROCEDURE") ! get current procedure name
3$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
4$!
5$! Build the GNU "C" pre-processor on VMS
6$!
7$
8$!
9$! C compiler
10$!
11$ CC := gcc
12$ BISON := bison
13$ RENAME := rename
14$!
15$! Compiler options
16$!
17$ CFLAGS = "/debug/inc=([],[.config])"
18$!
19$! Link options
20$!
21$ LDFLAGS := /nomap
22$!
23$! Link libraries
24$!
25$ LIBS := gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr
26$ if "''p1'" .eqs. "LINK" then goto Link
27$ 'CC 'CFLAGS cccp.c
28$ t1:='f$search("CEXP.C")'
29$ if "''t1'" .eqs. "" then goto 10$
30$ t1:='f$file_attributes("CEXP.Y","RDT")'
31$ t1:='f$cvtime(t1)'
32$ t2:='f$file_attributes("CEXP.C","RDT")'
33$ t2:='f$cvtime(t2)'
34$ if t1 .les. t2 then goto 20$
35$ 10$:
36$ bison cexp.y
37$ rename cexp_tab.c cexp.c
38$ 20$:
39$!
40$ 'CC 'CFLAGS cexp.c
41$ 'CC 'CFLAGS version.c
42$ Link:
43$ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS'
44$!
45$! CAUTION: If you want to link gcc-cpp to the sharable image library
46$! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
47$!
48$! Done
49$!
50$ exit
This page took 0.036227 seconds and 5 git commands to generate.