5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License, Version 1.0 only
7 # (the "License"). You may not use this file except in compliance
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
24 # Copyright (c) 1998 by Sun Microsystems, Inc.
25 # All rights reserved.
27 # ident "%Z%%M% %I% %E% SMI"
29 USAGE
="adbgen [-d] [-m ilp32|lp64] [-w] <adb macro file>"
49 /usr
/bin
/optisa sparcv9
> /dev
/null
52 echo adbgen
-mlp64 must be run on
64-bit system
70 shift `expr $OPTIND - 1`
76 if [ `expr "XX$file" : ".*\.adb"` -eq 0 ]
78 echo File
$file invalid.
85 file=`expr "XX$file" : "XX\(.*\)\.adb"`
86 if adbgen1
$flag $mflag < $file.adb
> $file.adb.c
88 if ${CC:-cc} -w -D${ARCH:-`uname -m`} $cflags \
89 -I/usr
/platform
/${ARCH:-`uname -m`}/include \
90 -o $file.run
$file.adb.c
$ADBDIR/$subdir/adbsub.o
92 $file.run | adbgen3 | adbgen4
> $file
93 $DEBUG rm -f $file.run
$file.adb.C
$file.adb.c
$file.adb.o
95 $DEBUG rm -f $file.run
$file.adb.C
$file.adb.c
$file.adb.o
100 $DEBUG rm -f $file.adb.C