keep arm dir
[deliverable/binutils-gdb.git] / gas / make-gas.com
CommitLineData
0e39a8bb
RP
1$! Set the def dir to proper place for use in batch. Works for interactive to.
2$flnm = f$enviroment("PROCEDURE") ! get current procedure name
3$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
4$!
5$! Command file to build a GNU assembler on VMS
6$!
7$! If you are using a version of GCC that supports global constants
8$! you should remove the define="const=" from the gcc lines.
4b0dd31c
KR
9$!
10$! Caution: Versions 1.38.1 and earlier had a bug in the handling of
11$! some static constants. If you are using such a version of the
12$! assembler, and you wish to compile without the "const=" hack,
13$! you should first build this version *with* the "const="
14$! definition, and then use that assembler to rebuild it without the
15$! "const=" definition. Failure to do this will result in an assembler
16$! that will mung floating point constants.
17$!
18$! Note: The version of gas shipped on the GCC VMS tapes has been patched
19$! to fix the above mentioned bug.
20$!
21$ write sys$output "If this assembler is going to be used with GCC 1.n, you"
22$ write sys$Output "need to modify the driver to supply the -1 switch to gas."
23$ write sys$output "This is required because of a small change in how global"
24$ write sys$Output "constant variables are handled. Failure to include this"
25$ write sys$output "will result in linker warning messages about mismatched
26$ write sys$output "psect attributes."
27$!
28$ C_DEFS :="""VMS"""
29$! C_DEFS :="""VMS""","""const="""
f6570d60 30$ C_INCLUDES :=/include=([],[.config],[-.include],[-.include.aout])
4b0dd31c
KR
31$ C_FLAGS := /debug 'c_includes'
32$!
33$!
0e39a8bb 34$ if "''p1'" .eqs. "LINK" then goto Link
4b0dd31c
KR
35$!
36$! This helps gcc 1.nn find the aout/* files.
37$!
38$ aout_dev = f$parse(flnm,,,"DEVICE")
39$ tmp = aout_dev - ":"
40$if f$trnlnm(tmp).nes."" then aout_dev = f$trnlnm(tmp)
41$ aout_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
42 - "GAS]" + "INCLUDE.AOUT.]" - "]["
43$assign 'aout_dir' aout/tran=conc
44$ opcode_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
45 - "GAS]" + "INCLUDE.OPCODE.]" - "]["
46$assign 'opcode_dir' opcode/tran=conc
47$!
f6570d60
KR
48$ gcc 'c_flags'/define=('C_DEFS') targ-cpu.c
49$ gcc 'c_flags'/define=('C_DEFS') obj-format.c
50$ gcc 'c_flags'/define=('C_DEFS') atof-targ.c
51$ gcc 'c_flags'/define=('C_DEFS') app.c
4b0dd31c 52$ gcc 'c_flags'/define=('C_DEFS') as.c
4b0dd31c 53$ gcc 'c_flags'/define=('C_DEFS') atof-generic.c
f6570d60 54$ gcc 'c_flags'/define=('C_DEFS') bignum-copy.c
4b0dd31c 55$ gcc 'c_flags'/define=('C_DEFS') cond.c
f6570d60
KR
56$ gcc 'c_flags'/define=('C_DEFS') expr.c
57$ gcc 'c_flags'/define=('C_DEFS') flonum-konst.c
58$ gcc 'c_flags'/define=('C_DEFS') flonum-copy.c
59$ gcc 'c_flags'/define=('C_DEFS') flonum-mult.c
4b0dd31c 60$ gcc 'c_flags'/define=('C_DEFS') frags.c
f6570d60
KR
61$ gcc 'c_flags'/define=('C_DEFS') hash.c
62$ gcc 'c_flags'/define=('C_DEFS') hex-value.c
4b0dd31c
KR
63$ gcc 'c_flags'/define=('C_DEFS') input-file.c
64$ gcc 'c_flags'/define=('C_DEFS') input-scrub.c
f6570d60
KR
65$ gcc 'c_flags'/define=('C_DEFS') literal.c
66$ gcc 'c_flags'/define=('C_DEFS') messages.c
4b0dd31c
KR
67$ gcc 'c_flags'/define=('C_DEFS') output-file.c
68$ gcc 'c_flags'/define=('C_DEFS') read.c
69$ gcc 'c_flags'/define=('C_DEFS') subsegs.c
70$ gcc 'c_flags'/define=('C_DEFS') symbols.c
71$ gcc 'c_flags'/define=('C_DEFS') write.c
4b0dd31c 72$ gcc 'c_flags'/define=('C_DEFS') listing.c
f6570d60
KR
73$ gcc 'c_flags'/define=('C_DEFS') ecoff.c
74$ gcc 'c_flags'/define=('C_DEFS') stabs.c
75$ gcc 'c_flags'/define=('C_DEFS') xmalloc.c
c92d9ee9
KR
76$ gcc 'c_flags'/define=('C_DEFS')/object=[]obstack.obj [-.libiberty]obstack.c
77$ gcc 'c_flags'/define=('C_DEFS')/object=[]strdup.obj [-.libiberty]strdup.c
78$ gcc 'c_flags'/define=('C_DEFS')/object=[]strncasecmp.obj [-.libiberty]strncasecmp.c
79$ gcc 'c_flags'/define=('C_DEFS')/object=[]getruntime.obj [-.libiberty]getruntime.c
80$link:
4b0dd31c 81$ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt
0e39a8bb
RP
82!
83! Linker options file for GNU assembler
84!
c92d9ee9
KR
85targ-cpu.obj,-
86obj-format.obj,-
87atof-targ.obj,-
88app.obj,-
89as.obj,-
90atof-generic.obj,-
91bignum-copy.obj,-
92cond.obj,-
93expr.obj,-
94flonum-konst.obj,-
95flonum-copy.obj,-
96flonum-mult.obj,-
97frags.obj,-
98hash.obj,-
99hex-value.obj,-
100input-file.obj,-
101input-scrub.obj,-
102literal.obj,-
103messages.obj,-
104output-file.obj,-
105read.obj,-
106subsegs.obj,-
107symbols.obj,-
108write.obj,-
109listing.obj,-
110ecoff.obj,-
111stabs.obj,-
112xmalloc.obj,-
113obstack.obj,-
114strdup.obj,-
115strncasecmp.obj,-
116getruntime.obj,-
0e39a8bb 117gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib
c92d9ee9 118! Tell linker exactly what psect attributes we want -- match VAXCRTL.
c06e55d9 119psect_attr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt
This page took 0.119478 seconds and 4 git commands to generate.