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 $ arch=F$GETSYI("ARCH_NAME")
10 $ arch=F$EDIT(arch,"LOWERCASE")
13 $ write sys$output "Generate opcodes/build.com"
19 $ FILES="ia64-dis,ia64-opc"
20 $ DEFS="""ARCH_ia64"""
27 $ FILES="alpha-dis,alpha-opc"
28 $ DEFS="""ARCH_alpha"""
32 $ append sys$input build.com
34 $ FILES=FILES + ",dis-init,dis-buf,disassemble"
36 $ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])/name=(as_is,shortened)" + -
37 "/define=(" + DEFS + ")"
38 $ write sys$output "CFLAGS=",CFLAGS
41 $ F = F$ELEMENT(NUM,",",FILES)
42 $ IF F.EQS."," THEN GOTO END
43 $ write sys$output "Compiling ", F, ".c"
49 $ lib/create libopcodes 'FILES