]>
git.saurik.com Git - apple/boot.git/blob - i386/nasm/outform.h
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
22 * @APPLE_LICENSE_HEADER_END@
24 /* outform.h header file for binding output format drivers to the
25 * remainder of the code in the Netwide Assembler
27 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
28 * Julian Hall. All rights reserved. The software is
29 * redistributable under the licence given in the file "Licence"
30 * distributed in the NASM archive.
34 * This header file allows configuration of which output formats
35 * get compiled into the NASM binary. You can configure by defining
36 * various preprocessor symbols beginning with "OF_", either on the
37 * compiler command line or at the top of this file.
39 * OF_ONLY -- only include specified object formats
40 * OF_name -- ensure that output format 'name' is included
41 * OF_NO_name -- remove output format 'name'
42 * OF_DOS -- ensure that 'obj', 'bin' & 'win32' are included.
43 * OF_UNIX -- ensure that 'aout', 'aoutb', 'coff', 'elf' are in.
44 * OF_OTHERS -- ensure that 'bin', 'as86' & 'rdf' are in.
45 * OF_ALL -- ensure that all formats are included.
47 * OF_DEFAULT=of_name -- ensure that 'name' is the default format.
49 * eg: -DOF_UNIX -DOF_ELF -DOF_DEFAULT=of_elf would be a suitable config
50 * for an average linux system.
52 * Default config = -DOF_ALL -DOF_DEFAULT=of_bin
54 * You probably only want to set these options while compiling 'nasm.c'. */
56 #ifndef NASM_OUTFORM_H
57 #define NASM_OUTFORM_H
61 #define MAX_OUTPUT_FORMATS 16
63 struct ofmt
*ofmt_find(char *);
64 void ofmt_list(struct ofmt
*, FILE *);
65 void ofmt_register (struct ofmt
*);
67 /* -------------- USER MODIFIABLE PART ---------------- */
70 * Insert #defines here in accordance with the configuration
79 * for a 16-bit DOS assembler with no extraneous formats.
82 /* ------------ END USER MODIFIABLE PART -------------- */
84 /* ====configurable info begins here==== */
85 /* formats configurable:
86 * bin,obj,elf,aout,aoutb,coff,win32,as86,rdf */
88 /* process options... */
92 #define OF_ALL /* default is to have all formats */
96 #ifdef OF_ALL /* set all formats on... */
126 /* turn on groups of formats specified.... */
166 /* finally... override any format specifically specifed to be off */
196 #define OF_DEFAULT of_bin
199 #endif /* NASM_OUTFORM_H */