xref: /titanic_41/usr/src/lib/libbc/inc/include/a.out.h (revision 0f1702c5201310f0529cd5abb77652e5e9b241b6)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #ifndef _a_out_h
30 #define _a_out_h
31 
32 #if !defined(_CROSS_TARGET_ARCH)
33 
34    /* The usual, native case.  Usage:
35     *      #include <a.out.h>
36     */
37 
38 #include <machine/a.out.h>
39 
40 #else /*defined(_CROSS_TARGET_ARCH)*/
41 
42    /* Used when building a cross-tool, with the target system architecture
43     * determined by the _CROSS_TARGET_ARCH preprocessor variable at compile
44     * time.  Usage:
45     *      #include <a.out.h>
46     * ...plus compilation with command (e.g. for Sun-4 target architecture):
47     *      cc  -DSUN2=2 -DSUN3=3 -DSUN3X=31 -DSUN4=4 \
48     *		-D_CROSS_TARGET_ARCH=SUN4  ...
49     * Note: this may go away in a future release.
50     */
51 #  if   _CROSS_TARGET_ARCH == SUN2
52 #    include "sun2/a.out.h"
53 #  elif _CROSS_TARGET_ARCH == SUN3
54 #    include "sun3/a.out.h"
55 #  elif _CROSS_TARGET_ARCH == SUN3X
56 #    include "sun3x/a.out.h"
57 #  elif _CROSS_TARGET_ARCH == SUN4
58 #    include "sun4/a.out.h"
59 #  elif _CROSS_TARGET_ARCH == VAX
60 #    include "vax/a.out.h"
61 #  endif
62 
63 #endif /*defined(_CROSS_TARGET_ARCH)*/
64 
65 /*
66  * Usage when building a cross-tool with a fixed target system architecture
67  * (Sun-4 in this example), bypassing this file:
68  *      #include <sun4/a.out.h>
69  */
70 
71 #endif /*!_a_out_h*/
72