An annoying typo (faflse instead of false). Oopsie.
[platform/upstream/binutils.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],[-.include.aout])
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') 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
52 $ gcc 'c_flags'/define=('C_DEFS') as.c
53 $ gcc 'c_flags'/define=('C_DEFS') atof-generic.c
54 $ gcc 'c_flags'/define=('C_DEFS') bignum-copy.c
55 $ gcc 'c_flags'/define=('C_DEFS') cond.c
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
60 $ gcc 'c_flags'/define=('C_DEFS') frags.c
61 $ gcc 'c_flags'/define=('C_DEFS') hash.c
62 $ gcc 'c_flags'/define=('C_DEFS') hex-value.c
63 $ gcc 'c_flags'/define=('C_DEFS') input-file.c
64 $ gcc 'c_flags'/define=('C_DEFS') input-scrub.c
65 $ gcc 'c_flags'/define=('C_DEFS') literal.c
66 $ gcc 'c_flags'/define=('C_DEFS') messages.c
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
72 $ gcc 'c_flags'/define=('C_DEFS') listing.c
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
76 $ gcc 'c_flags'/define=('C_DEFS') [-.libiberty]obstack.c
77 $ gcc 'c_flags'/define=('C_DEFS') [-.libiberty]strdup.c
78 $if f$search("obstack.obj").eqs."" then copy [-.libiberty]obstack.obj *.*
79 $if f$search("strdup.obj").eqs."" then copy [-.libiberty]strdup.obj *.*
80 $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt
81 !
82 !       Linker options file for GNU assembler
83 !
84 targ-cpu.o,-
85 obj-format.o,-
86 atof-targ.o,-
87 app.o,-
88 as.o,-
89 atof-generic.o,-
90 bignum-copy.o,-
91 cond.o,-
92 expr.o,-
93 flonum-konst.o,-
94 flonum-copy.o,-
95 flonum-mult.o,-
96 frags.o,-
97 hash.o,-
98 hex-value.o,-
99 input-file.o,-
100 input-scrub.o,-
101 literal.o,-
102 messages.o,-
103 output-file.o,-
104 read.o,-
105 subsegs.o,-
106 symbols.o,-
107 write.o,-
108 listing.o,-
109 ecoff.o,-
110 stabs.o,-
111 xmalloc.o,-
112 obstack.o,-
113 strdup.o,-
114 gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib