Lots of changes from Eric Youngdale, mostly for VAX and VMS support.
[deliverable/binutils-gdb.git] / gas / make-gas.com
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.
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="""
30 $ C_INCLUDES :=/include=([],[.config],[-.include])
31 $ C_FLAGS := /debug 'c_includes'
32 $!
33 $!
34 $ if "''p1'" .eqs. "LINK" then goto Link
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 $!
48 $ gcc 'c_flags'/define=('C_DEFS') as.c
49 $ gcc 'c_flags'/define=("error=as_fatal",'C_DEFS') xmalloc.c
50 $ gcc 'c_flags'/define=("error=as_fatal",'C_DEFS') hash.c
51 $ gcc 'c_flags'/define=('C_DEFS') [-.libiberty]obstack.c
52 $ gcc 'c_flags'/define=('C_DEFS') hex-value.c
53 $ gcc 'c_flags'/define=('C_DEFS') messages.c
54 $ gcc 'c_flags'/define=('C_DEFS') atof-generic.c
55 $ gcc 'c_flags'/define=('C_DEFS') expr.c
56 $ gcc 'c_flags'/define=('C_DEFS') cond.c
57 $ gcc 'c_flags'/define=('C_DEFS') app.c
58 $ gcc 'c_flags'/define=('C_DEFS') frags.c
59 $ gcc 'c_flags'/define=('C_DEFS') input-file.c
60 $ gcc 'c_flags'/define=('C_DEFS') input-scrub.c
61 $ gcc 'c_flags'/define=('C_DEFS') output-file.c
62 $ gcc 'c_flags'/define=('C_DEFS') read.c
63 $ gcc 'c_flags'/define=('C_DEFS') subsegs.c
64 $ gcc 'c_flags'/define=('C_DEFS') symbols.c
65 $ gcc 'c_flags'/define=('C_DEFS') write.c
66 $ gcc 'c_flags'/define=('C_DEFS') version.c
67 $ gcc 'c_flags'/define=('C_DEFS') flonum-konst.c
68 $ gcc 'c_flags'/define=('C_DEFS') flonum-copy.c
69 $ gcc 'c_flags'/define=('C_DEFS') flonum-mult.c
70 $ gcc 'c_flags'/define=('C_DEFS') bignum-copy.c
71 $ gcc 'c_flags'/define=('C_DEFS') listing.c
72 $ gcc 'c_flags'/define=('C_DEFS') atof-targ.c
73 $ gcc 'c_flags'/define=("error=as_fatal",'C_DEFS') targ-cpu.c
74 $ gcc 'c_flags'/define=("error=as_fatal",'C_DEFS') obj-format.c
75 $ Link:
76 $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt
77 !
78 ! Linker options file for GNU assembler
79 !
80 as,xmalloc,hash,hex-value,atof-generic,messages,expr,app,cond,-
81 frags,input-file,input-scrub,output-file,read,subsegs,symbols,write,-
82 version,flonum-konst,flonum-copy,flonum-mult,bignum-copy,listing,-
83 obstack,targ-cpu,atof-targ,obj-format,-
84 gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib
This page took 0.032964 seconds and 4 git commands to generate.