xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/configure.com (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos$!
275fd0b74Schristos$! This file configures the bfd library for use with openVMS.
375fd0b74Schristos$!
475fd0b74Schristos$! We do not use the configure script, since we do not have /bin/sh
575fd0b74Schristos$! to execute it.
675fd0b74Schristos$!
775fd0b74Schristos$! Written by Klaus K"ampf (kkaempf@rmi.de)
875fd0b74Schristos$! Rewritten by Tristan Gingold (gingold@adacore.com)
975fd0b74Schristos$!
10*e992f068Schristos$!   Copyright (C) 2012-2022 Free Software Foundation, Inc.
1175fd0b74Schristos$!
1275fd0b74Schristos$! This file is free software; you can redistribute it and/or modify
1375fd0b74Schristos$! it under the terms of the GNU General Public License as published by
1475fd0b74Schristos$! the Free Software Foundation; either version 3 of the License, or
1575fd0b74Schristos$! (at your option) any later version.
1675fd0b74Schristos$!
1775fd0b74Schristos$! This program is distributed in the hope that it will be useful,
1875fd0b74Schristos$! but WITHOUT ANY WARRANTY; without even the implied warranty of
1975fd0b74Schristos$! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2075fd0b74Schristos$! GNU General Public License for more details.
2175fd0b74Schristos$!
2275fd0b74Schristos$! You should have received a copy of the GNU General Public License
2375fd0b74Schristos$! along with this program; see the file COPYING3.  If not see
2475fd0b74Schristos$! <http://www.gnu.org/licenses/>.
2575fd0b74Schristos$!
2675fd0b74Schristos$ arch=F$GETSYI("ARCH_NAME")
2775fd0b74Schristos$ arch=F$EDIT(arch,"LOWERCASE")
2875fd0b74Schristos$if arch .eqs. "alpha" then target = "alpha"
2975fd0b74Schristos$if arch .eqs. "ia64" then target = "ia64"
3075fd0b74Schristos$!
3175fd0b74Schristos$if (arch .eqs. "alpha") .or. (arch .eqs. "ia64")
3275fd0b74Schristos$then
3375fd0b74Schristos$!
3475fd0b74Schristos$ write sys$output "Configuring BFD for ''target' target"
3575fd0b74Schristos$!
3675fd0b74Schristos$!
3775fd0b74Schristos$! copy bfd-in2.h to bfd.h, replacing @ macros
3875fd0b74Schristos$!
3975fd0b74Schristos$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
4075fd0b74Schristos        []bfd-in2.h /output=[]bfd.h
4175fd0b74Schristos$DECK
4275fd0b74Schristos!
4375fd0b74Schristos!  Copy file, changing lines with macros (@@)
4475fd0b74Schristos!
4575fd0b74Schristos!
4675fd0b74Schristos   set (success,off);
4775fd0b74Schristos
4875fd0b74Schristos   file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
4975fd0b74Schristos   rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
5075fd0b74Schristos
5175fd0b74Schristos   match_pos := SEARCH_QUIETLY('@wordsize@', FORWARD, EXACT, rang);
5275fd0b74Schristos   IF match_pos <> 0 THEN;
5375fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
5475fd0b74Schristos      ERASE(match_pos);
5575fd0b74Schristos      COPY_TEXT('64');
5675fd0b74Schristos   ENDIF;
5775fd0b74Schristos   match_pos := SEARCH_QUIETLY('@bfd_default_target_size@', FORWARD, EXACT, rang);
5875fd0b74Schristos   IF match_pos <> 0 THEN;
5975fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
6075fd0b74Schristos      ERASE(match_pos);
6175fd0b74Schristos      COPY_TEXT('64');
6275fd0b74Schristos   ENDIF;
63*e992f068Schristos   match_pos := SEARCH_QUIETLY('@BFD_INT64_FMT@', FORWARD, EXACT, rang);
6475fd0b74Schristos   IF match_pos <> 0 THEN;
6575fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
6675fd0b74Schristos      ERASE(match_pos);
67*e992f068Schristos      COPY_TEXT('"l"');
6875fd0b74Schristos   ENDIF;
6975fd0b74Schristos   match_pos := SEARCH_QUIETLY('@bfd_file_ptr@', FORWARD, EXACT, rang);
7075fd0b74Schristos   IF match_pos <> 0 THEN;
7175fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
7275fd0b74Schristos      ERASE(match_pos);
7375fd0b74Schristos      COPY_TEXT('bfd_signed_vma');
7475fd0b74Schristos   ENDIF;
75*e992f068Schristos   match_pos := SEARCH_QUIETLY('@bfd_ufile_ptr@', FORWARD, EXACT, rang);
7675fd0b74Schristos   IF match_pos <> 0 THEN;
7775fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
7875fd0b74Schristos      ERASE(match_pos);
79*e992f068Schristos      COPY_TEXT('bfd_vma');
8075fd0b74Schristos   ENDIF;
8175fd0b74Schristos   match_pos := SEARCH_QUIETLY('@supports_plugins@', FORWARD, EXACT, rang);
8275fd0b74Schristos   IF match_pos <> 0 THEN;
8375fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
8475fd0b74Schristos      ERASE(match_pos);
8575fd0b74Schristos      COPY_TEXT('0');
8675fd0b74Schristos   ENDIF;
8775fd0b74Schristos   WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
8875fd0b74Schristos   QUIT
8975fd0b74Schristos$  EOD
9075fd0b74Schristos$
9175fd0b74Schristos$else
9275fd0b74Schristos$
9375fd0b74Schristos$ write sys$output "Configuring for Vax target"
9475fd0b74Schristos$ target = "vax"
9575fd0b74Schristos$!
9675fd0b74Schristos$! copy bfd-in2.h to bfd.h, replacing @ macros
9775fd0b74Schristos$!
9875fd0b74Schristos$ write sys$output "Generated `bfd.h' from `bfd-in2.h'."
9975fd0b74Schristos$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
10075fd0b74Schristos        []bfd-in2.h /output=[]bfd.h
10175fd0b74Schristos$DECK
10275fd0b74Schristos!
10375fd0b74Schristos!  Copy file, changing lines with macros (@@)
10475fd0b74Schristos!
10575fd0b74Schristos!
10675fd0b74Schristos   set (success,off);
10775fd0b74Schristos
10875fd0b74Schristos   file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
10975fd0b74Schristos   rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
11075fd0b74Schristos
11175fd0b74Schristos   match_pos := SEARCH_QUIETLY('@wordsize@', FORWARD, EXACT, rang);
11275fd0b74Schristos   IF match_pos <> 0 THEN;
11375fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
11475fd0b74Schristos      ERASE(match_pos);
11575fd0b74Schristos      COPY_TEXT('32');
11675fd0b74Schristos   ENDIF;
117*e992f068Schristos   match_pos := SEARCH_QUIETLY('@bfd_default_target_size@', FORWARD, EXACT, rang);
118*e992f068Schristos   IF match_pos <> 0 THEN;
119*e992f068Schristos      POSITION(BEGINNING_OF(match_pos));
120*e992f068Schristos      ERASE(match_pos);
121*e992f068Schristos      COPY_TEXT('32');
122*e992f068Schristos   ENDIF;
123*e992f068Schristos   match_pos := SEARCH_QUIETLY('@BFD_INT64_FMT@', FORWARD, EXACT, rang);
124*e992f068Schristos   IF match_pos <> 0 THEN;
125*e992f068Schristos      POSITION(BEGINNING_OF(match_pos));
126*e992f068Schristos      ERASE(match_pos);
127*e992f068Schristos      COPY_TEXT('"ll"');
128*e992f068Schristos   ENDIF;
129*e992f068Schristos   match_pos := SEARCH_QUIETLY('@bfd_file_ptr@', FORWARD, EXACT, rang);
130*e992f068Schristos   IF match_pos <> 0 THEN;
131*e992f068Schristos      POSITION(BEGINNING_OF(match_pos));
132*e992f068Schristos      ERASE(match_pos);
133*e992f068Schristos      COPY_TEXT('bfd_signed_vma');
134*e992f068Schristos   ENDIF;
135*e992f068Schristos   match_pos := SEARCH_QUIETLY('@bfd_ufile_ptr@', FORWARD, EXACT, rang);
136*e992f068Schristos   IF match_pos <> 0 THEN;
137*e992f068Schristos      POSITION(BEGINNING_OF(match_pos));
138*e992f068Schristos      ERASE(match_pos);
139*e992f068Schristos      COPY_TEXT('bfd_vma');
140*e992f068Schristos   ENDIF;
141*e992f068Schristos   match_pos := SEARCH_QUIETLY('@supports_plugins@', FORWARD, EXACT, rang);
14275fd0b74Schristos   IF match_pos <> 0 THEN;
14375fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
14475fd0b74Schristos      ERASE(match_pos);
14575fd0b74Schristos      COPY_TEXT('0');
14675fd0b74Schristos   ENDIF;
14775fd0b74Schristos   WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
14875fd0b74Schristos   QUIT
14975fd0b74Schristos$  EOD
15075fd0b74Schristos$endif
15175fd0b74Schristos$
15275fd0b74Schristos$!
15375fd0b74Schristos$! create bfdver.h
15475fd0b74Schristos$!
15575fd0b74Schristos$ write sys$output "Generate `bfdver.h' from 'version.h' and `configure.in'."
15675fd0b74Schristos$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
15775fd0b74Schristos        []version.h /output=[]bfdver.h
15875fd0b74Schristos$DECK
15975fd0b74Schristos!
16075fd0b74Schristos!  Copy file, changing lines with macros (@@)
16175fd0b74Schristos!
16275fd0b74Schristos!
16375fd0b74Schristos   set (success,off);
16475fd0b74Schristos   vfile := CREATE_BUFFER("vfile", "configure.in");
16575fd0b74Schristos   rang := CREATE_RANGE(BEGINNING_OF(vfile), END_OF(vfile));
16675fd0b74Schristos   match_pos := SEARCH_QUIETLY('AC_INIT([bfd], [', FORWARD, EXACT, rang);
16775fd0b74Schristos   IF match_pos <> 0 THEN;
16875fd0b74Schristos     POSITION(BEGINNING_OF(match_pos));
16975fd0b74Schristos     ERASE(match_pos);
17075fd0b74Schristos     vers := CURRENT_LINE-"])";
17175fd0b74Schristos   ELSE;
17275fd0b74Schristos     vers := "unknown";
17375fd0b74Schristos   ENDIF;
17475fd0b74Schristos   versnum := vers - "." - ".";
17575fd0b74Schristos
17675fd0b74Schristos   file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
17775fd0b74Schristos   rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
17875fd0b74Schristos
17975fd0b74Schristos   match_pos := SEARCH_QUIETLY('@bfd_version@', FORWARD, EXACT, rang);
18075fd0b74Schristos   IF match_pos <> 0 THEN;
18175fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
18275fd0b74Schristos      ERASE(match_pos);
18375fd0b74Schristos      COPY_TEXT(versnum);
18475fd0b74Schristos   ENDIF;
18575fd0b74Schristos   match_pos := SEARCH_QUIETLY('@bfd_version_string@', FORWARD, EXACT, rang);
18675fd0b74Schristos   IF match_pos <> 0 THEN;
18775fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
18875fd0b74Schristos      ERASE(match_pos);
18975fd0b74Schristos      COPY_TEXT('"');
19075fd0b74Schristos      COPY_TEXT(vers);
19175fd0b74Schristos      COPY_TEXT('"');
19275fd0b74Schristos   ENDIF;
19375fd0b74Schristos   match_pos := SEARCH_QUIETLY('@bfd_version_package@', FORWARD, EXACT, rang);
19475fd0b74Schristos   IF match_pos <> 0 THEN;
19575fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
19675fd0b74Schristos      ERASE(match_pos);
19775fd0b74Schristos      COPY_TEXT('"(GNU Binutils) "');
19875fd0b74Schristos   ENDIF;
19975fd0b74Schristos   match_pos := SEARCH_QUIETLY('@report_bugs_to@', FORWARD, EXACT, rang);
20075fd0b74Schristos   IF match_pos <> 0 THEN;
20175fd0b74Schristos      POSITION(BEGINNING_OF(match_pos));
20275fd0b74Schristos      ERASE(match_pos);
203*e992f068Schristos      COPY_TEXT('"<https://www.sourceware.org/bugzilla/>"');
20475fd0b74Schristos   ENDIF;
20575fd0b74Schristos   WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
20675fd0b74Schristos   QUIT
20775fd0b74Schristos$  EOD
20875fd0b74Schristos$!
20975fd0b74Schristos$!
21075fd0b74Schristos$! create targmatch.h
21175fd0b74Schristos$!
21275fd0b74Schristos$ write sys$output "Generate `targmatch.h'"
21375fd0b74Schristos$ open/write tfile []targmatch.h
21475fd0b74Schristos$ write tfile "{ """ + target + "-*-*vms*""" + ","
21575fd0b74Schristos$ write tfile "#if defined (SELECT_VECS)"
21675fd0b74Schristos$ write tfile "SELECT_VECS"
21775fd0b74Schristos$ write tfile "#else"
21875fd0b74Schristos$ write tfile "UNSUPPORTED_TARGET"
21975fd0b74Schristos$ write tfile "#endif"
22075fd0b74Schristos$ write tfile "},"
22175fd0b74Schristos$ close tfile
22275fd0b74Schristos$!
22375fd0b74Schristos$!
22475fd0b74Schristos$! create config.h
22575fd0b74Schristos$!
22675fd0b74Schristos$ write sys$output "Generate `config.h'"
22775fd0b74Schristos$ create []config.h
22875fd0b74Schristos/* config.h-vms.  Generated by hand by Klaus K�mpf, kkaempf@didymus.rmi.de.  */
22975fd0b74Schristos/* config.in.  Generated automatically from configure.in by autoheader.  */
23075fd0b74Schristos/* Whether malloc must be declared even if <stdlib.h> is included.  */
23175fd0b74Schristos/* #undef NEED_DECLARATION_MALLOC */
23275fd0b74Schristos/* Whether free must be declared even if <stdlib.h> is included.  */
23375fd0b74Schristos/* #undef NEED_DECLARATION_FREE */
23475fd0b74Schristos/* Define if you have a working `mmap' system call.  */
23575fd0b74Schristos/* #define HAVE_MMAP 1 */
23675fd0b74Schristos/* Do we need to use the b modifier when opening binary files?  */
23775fd0b74Schristos/* #undef USE_BINARY_FOPEN */
23875fd0b74Schristos/* Name of host specific header file to include in trad-core.c.  */
23975fd0b74Schristos/* #undef TRAD_HEADER */
24075fd0b74Schristos/* Define only if <sys/procfs.h> is available *and* it defines prstatus_t.  */
24175fd0b74Schristos/* #undef HAVE_SYS_PROCFS_H */
24275fd0b74Schristos/* Do we really want to use mmap if it's available?  */
24375fd0b74Schristos/* #undef USE_MMAP */
24475fd0b74Schristos/* Define if you have the fcntl function.  */
24575fd0b74Schristos#define HAVE_FCNTL 1
24675fd0b74Schristos/* Define if you have the getpagesize function.  */
24775fd0b74Schristos#define HAVE_GETPAGESIZE 1
24875fd0b74Schristos/* Define if you have the madvise function.  */
24975fd0b74Schristos#define HAVE_MADVISE 1
25075fd0b74Schristos/* Define if you have the mprotect function.  */
25175fd0b74Schristos#define HAVE_MPROTECT 1
25275fd0b74Schristos/* Define if you have the <fcntl.h> header file.  */
25375fd0b74Schristos#define HAVE_FCNTL_H 1
25475fd0b74Schristos/* Define if you have the <stddef.h> header file.  */
25575fd0b74Schristos#define HAVE_STDDEF_H 1
25675fd0b74Schristos/* Define if you have the <stdlib.h> header file.  */
25775fd0b74Schristos#define HAVE_STDLIB_H 1
25875fd0b74Schristos/* Define if you have the <string.h> header file.  */
25975fd0b74Schristos#define HAVE_STRING_H 1
26075fd0b74Schristos/* Define if you have the <strings.h> header file.  */
26175fd0b74Schristos#define HAVE_STRINGS_H 1
26275fd0b74Schristos/* Define if you have the <sys/file.h> header file.  */
26375fd0b74Schristos#define HAVE_SYS_FILE_H 1
26475fd0b74Schristos/* Define if you have the <time.h> header file.  */
26575fd0b74Schristos#define HAVE_TIME_H 1
26675fd0b74Schristos/* Define if you have the <unistd.h> header file.  */
26775fd0b74Schristos#define HAVE_UNISTD_H 1
26875fd0b74Schristos/* Disable NLS  */
26975fd0b74Schristos#undef ENABLE_NLS
27075fd0b74Schristos/* Name of package */
27175fd0b74Schristos#define PACKAGE "bfd"
27275fd0b74Schristos/* Define to the address where bug reports for this package should be sent. */
27375fd0b74Schristos#define PACKAGE_BUGREPORT ""
27475fd0b74Schristos/* Define to the full name of this package. */
27575fd0b74Schristos#define PACKAGE_NAME "bfd"
27675fd0b74Schristos/* Define to the full name and version of this package. */
27775fd0b74Schristos#define PACKAGE_STRING "bfd"
27875fd0b74Schristos/* Define to the one symbol short name of this package. */
27975fd0b74Schristos#define PACKAGE_TARNAME "bfd"
28075fd0b74Schristos/* Define to the home page for this package. */
28175fd0b74Schristos#define PACKAGE_URL ""
28275fd0b74Schristos/* Define to the version of this package. */
28375fd0b74Schristos#define PACKAGE_VERSION "(package version)"
28475fd0b74Schristos$!
28575fd0b74Schristos$ write sys$output "Copy sysdep.h"
28675fd0b74Schristos$ copy [.hosts]alphavms.h sysdep.h
28775fd0b74Schristos$
28875fd0b74Schristos$ write sys$output "Generate build.com"
28975fd0b74Schristos$!
29075fd0b74Schristos$ if ARCH.eqs."alpha"
29175fd0b74Schristos$ then
29275fd0b74Schristos$   create build.com
29375fd0b74Schristos$DECK
29475fd0b74Schristos$ DEFS="""SELECT_VECS=&alpha_vms_vec"","+-
29575fd0b74Schristos  """SELECT_ARCHITECTURES=&bfd_alpha_arch"""
29675fd0b74Schristos$ FILES="cpu-alpha,vms,vms-hdr,vms-gsd,vms-tir,vms-misc,"
29775fd0b74Schristos$EOD
29875fd0b74Schristos$ endif
29975fd0b74Schristos$ if ARCH.eqs."ia64"
30075fd0b74Schristos$ then
30175fd0b74Schristos$   create build.com
30275fd0b74Schristos$DECK
30375fd0b74Schristos$ DEFS="""SELECT_VECS=&ia64_elf64_vms_vec"","+-
30475fd0b74Schristos  """SELECT_ARCHITECTURES=&bfd_ia64_arch"""
30575fd0b74Schristos$ FILES="cpu-ia64,elf64-ia64,elf-strtab,corefile,stabs,merge,elf-eh-frame,"+-
30675fd0b74Schristos  "elflink,elf-attrs,dwarf1,elf64,"
30775fd0b74Schristos$EOD
30875fd0b74Schristos$ create substxx.tpu
30975fd0b74Schristos$DECK
31075fd0b74Schristos   set (success,off);
31175fd0b74Schristos   file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
31275fd0b74Schristos   found_range := CREATE_RANGE(BEGINNING_OF(file), BEGINNING_OF(file));
31375fd0b74Schristos
31475fd0b74Schristos   LOOP
31575fd0b74Schristos     rang := CREATE_RANGE (END_OF(found_range),END_OF(file));
31675fd0b74Schristos     match_pos := SEARCH_QUIETLY('NN', FORWARD, EXACT, rang);
31775fd0b74Schristos     EXITIF match_pos = 0;
31875fd0b74Schristos     POSITION(BEGINNING_OF(match_pos));
31975fd0b74Schristos     ERASE(match_pos);
32075fd0b74Schristos     COPY_TEXT('64');
32175fd0b74Schristos   ENDLOOP;
32275fd0b74Schristos   WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
32375fd0b74Schristos   QUIT
32475fd0b74Schristos$  EOD
32575fd0b74Schristos$ write sys$output "Generate elf64-target.h from elfxx-target.h"
32675fd0b74Schristos$ edit/tpu/nojournal/nosection/nodisplay/command=substxx.tpu -
32775fd0b74Schristos        []elfXX-target.h /output=[]elf64-target.h
32875fd0b74Schristos$ del substxx.tpu;*
32975fd0b74Schristos$ endif
33075fd0b74Schristos$ append sys$input build.com
33175fd0b74Schristos$DECK
33275fd0b74Schristos$ DEFS=DEFS + ",""unlink=remove"",""DEBUGDIR=""""GNU$DEBUGDIR:"""""""
33375fd0b74Schristos$ OPT="/noopt/debug"
33475fd0b74Schristos$ CFLAGS="/name=(as_is,shortened)" + -
33575fd0b74Schristos  "/include=([],""../"",""../include"")" + -
33675fd0b74Schristos  "/define=(" + DEFS + ")" + OPT
33775fd0b74Schristos$ FILES=FILES + "archive,archive64,archures,bfd,bfdio,binary,cache,coffgen,"+-
33875fd0b74Schristos  "compress,corefile,dwarf2,elf,format,hash,ihex,init,libbfd,linker,"+-
33975fd0b74Schristos  "opncls,reloc,section,simple,srec,stab-syms,syms,targets,tekhex,verilog"
34075fd0b74Schristos$ write sys$output "CFLAGS=",CFLAGS
34175fd0b74Schristos$ cflags_libbfd="/warning=(disable=missingreturn)"
34275fd0b74Schristos$ cflags_nil=""
34375fd0b74Schristos$ NUM = 0
34475fd0b74Schristos$ OBJS=""
34575fd0b74Schristos$ LOOP:
34675fd0b74Schristos$   F = F$ELEMENT(NUM,",",FILES)
34775fd0b74Schristos$   IF F.EQS."," THEN GOTO END
34875fd0b74Schristos$   eflags_name="cflags_''f'"
34975fd0b74Schristos$   name_len=f$length(eflags_name)
35075fd0b74Schristos$   dash_pos=f$locate("-",eflags_name)
35175fd0b74Schristos$   if dash_pos.ne.name_len
35275fd0b74Schristos$   then
35375fd0b74Schristos$     eflags_name['dash_pos,1]:="_"
35475fd0b74Schristos$     dash_pos=f$locate("-",eflags_name)
35575fd0b74Schristos$     if dash_pos.ne.name_len then eflags_name['dash_pos,1]:="_"
35675fd0b74Schristos$   endif
35775fd0b74Schristos$   if f$type('eflags_name).eqs."" then eflags_name="cflags_nil"
35875fd0b74Schristos$   eflags='eflags_name
35975fd0b74Schristos$   write sys$output "Compiling ", F, ".c", eflags
36075fd0b74Schristos$   cc 'CFLAGS 'eflags 'F.c
36175fd0b74Schristos$   IF OBJS.NES."" THEN OBJS=OBJS + ","
36275fd0b74Schristos$   OBJS=OBJS + F + ".obj"
36375fd0b74Schristos$   NUM = NUM + 1
36475fd0b74Schristos$   GOTO LOOP
36575fd0b74Schristos$ END:
36675fd0b74Schristos$ purge
36775fd0b74Schristos$ lib/create libbfd 'OBJS
36875fd0b74Schristos$EOD
369