1 /* outform.h header file for binding output format drivers to the
2 * remainder of the code in the Netwide Assembler
4 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
5 * Julian Hall. All rights reserved. The software is
6 * redistributable under the licence given in the file "Licence"
7 * distributed in the NASM archive.
11 * This header file allows configuration of which output formats
12 * get compiled into the NASM binary. You can configure by defining
13 * various preprocessor symbols beginning with "OF_", either on the
14 * compiler command line or at the top of this file.
16 * OF_ONLY -- only include specified object formats
17 * OF_name -- ensure that output format 'name' is included
18 * OF_NO_name -- remove output format 'name'
19 * OF_DOS -- ensure that 'obj', 'bin' & 'win32' are included.
20 * OF_UNIX -- ensure that 'aout', 'aoutb', 'coff', 'elf' are in.
21 * OF_OTHERS -- ensure that 'bin', 'as86' & 'rdf' are in.
22 * OF_ALL -- ensure that all formats are included.
24 * OF_DEFAULT=of_name -- ensure that 'name' is the default format.
26 * eg: -DOF_UNIX -DOF_ELF -DOF_DEFAULT=of_elf would be a suitable config
27 * for an average linux system.
29 * Default config = -DOF_ALL -DOF_DEFAULT=of_bin
31 * You probably only want to set these options while compiling 'nasm.c'. */
33 #ifndef NASM_OUTFORM_H
34 #define NASM_OUTFORM_H
38 #define MAX_OUTPUT_FORMATS 16
40 struct ofmt
*ofmt_find(char *);
41 void ofmt_list(struct ofmt
*, FILE *);
42 void ofmt_register (struct ofmt
*);
44 /* -------------- USER MODIFIABLE PART ---------------- */
47 * Insert #defines here in accordance with the configuration
56 * for a 16-bit DOS assembler with no extraneous formats.
59 /* ------------ END USER MODIFIABLE PART -------------- */
61 /* ====configurable info begins here==== */
62 /* formats configurable:
63 * bin,obj,elf,aout,aoutb,coff,win32,as86,rdf */
65 /* process options... */
69 #define OF_ALL /* default is to have all formats */
73 #ifdef OF_ALL /* set all formats on... */
103 /* turn on groups of formats specified.... */
143 /* finally... override any format specifically specifed to be off */
173 #define OF_DEFAULT of_bin
176 #endif /* NASM_OUTFORM_H */