2 $! This file configures the opcodes library for use with openVMS.
4 $! We do not use the configure script, since we do not have /bin/sh
7 $! Written by Tristan Gingold (gingold@adacore.com)
9 $! Copyright (C) 2012-2018 Free Software Foundation, Inc.
11 $! This file is free software; you can redistribute it and/or modify
12 $! it under the terms of the GNU General Public License as published by
13 $! the Free Software Foundation; either version 3 of the License, or
14 $! (at your option) any later version.
16 $! This program is distributed in the hope that it will be useful,
17 $! but WITHOUT ANY WARRANTY; without even the implied warranty of
18 $! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 $! GNU General Public License for more details.
21 $! You should have received a copy of the GNU General Public License
22 $! along with this program; see the file COPYING3. If not see
23 $! <http://www.gnu.org/licenses/>.
25 $ arch=F$GETSYI("ARCH_NAME")
26 $ arch=F$EDIT(arch,"LOWERCASE")
29 $ write sys$output "Generate opcodes/build.com"
35 $ FILES="ia64-dis,ia64-opc"
36 $ DEFS="""ARCH_ia64"""
43 $ FILES="alpha-dis,alpha-opc"
44 $ DEFS="""ARCH_alpha"""
48 $ append sys$input build.com
50 $ FILES=FILES + ",dis-init,dis-buf,disassemble"
52 $ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])/name=(as_is,shortened)" + -
53 "/define=(" + DEFS + ")"
54 $ write sys$output "CFLAGS=",CFLAGS
57 $ F = F$ELEMENT(NUM,",",FILES)
58 $ IF F.EQS."," THEN GOTO END
59 $ write sys$output "Compiling ", F, ".c"
65 $ lib/create libopcodes 'FILES