]>
Commit | Line | Data |
---|---|---|
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 | |
a6b5446a | 14 | $ LINK := link |
948c37aa RS |
15 | $! |
16 | $! Compiler options | |
17 | $! | |
18 | $ CFLAGS = "/debug/inc=([],[.config])" | |
19 | $! | |
20 | $! Link options | |
21 | $! | |
22 | $ LDFLAGS := /nomap | |
23 | $! | |
24 | $! Link libraries | |
25 | $! | |
26 | $ LIBS := gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr | |
27 | $ if "''p1'" .eqs. "LINK" then goto Link | |
28 | $ 'CC 'CFLAGS cccp.c | |
29 | $ t1:='f$search("CEXP.C")' | |
30 | $ if "''t1'" .eqs. "" then goto 10$ | |
31 | $ t1:='f$file_attributes("CEXP.Y","RDT")' | |
32 | $ t1:='f$cvtime(t1)' | |
33 | $ t2:='f$file_attributes("CEXP.C","RDT")' | |
34 | $ t2:='f$cvtime(t2)' | |
35 | $ if t1 .les. t2 then goto 20$ | |
36 | $ 10$: | |
37 | $ bison cexp.y | |
38 | $ rename cexp_tab.c cexp.c | |
39 | $ 20$: | |
40 | $! | |
41 | $ 'CC 'CFLAGS cexp.c | |
42 | $ 'CC 'CFLAGS version.c | |
43 | $ Link: | |
44 | $ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS' | |
45 | $! | |
46 | $! CAUTION: If you want to link gcc-cpp to the sharable image library | |
47 | $! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first. | |
48 | $! | |
49 | $! Done | |
50 | $! | |
51 | $ exit |