diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-03-22 19:50:35 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-03-22 19:50:35 +0000 |
commit | a100548014c325e06d360997c9a305932d909cfc (patch) | |
tree | 7542e1e9e6b08970377ee1ebf87bd21abe097ee7 /src/s/dgux.h | |
parent | 0d5761c4370bfe9249dceaa1caca305ab2706d4c (diff) | |
download | emacs-a100548014c325e06d360997c9a305932d909cfc.tar.gz |
Decide automatically whether to use COFF or ELF.
Diffstat (limited to 'src/s/dgux.h')
-rw-r--r-- | src/s/dgux.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/s/dgux.h b/src/s/dgux.h index 437e1106f78..47f5e2f6952 100644 --- a/src/s/dgux.h +++ b/src/s/dgux.h @@ -118,11 +118,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* If your system uses COFF (Common Object File Format) then define the preprocessor symbol "COFF". - DGUX can use either COFF or ELF. To use ELF format, define ELF. */ + DGUX can use either COFF or ELF; the default is ELF. + To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE + environment variable. */ -#ifndef ELF +#if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) +#undef ELF +#ifndef COFF #define COFF -#endif +#endif /* COFF */ +#else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ +#undef COFF +#ifndef ELF +#define ELF +#endif /* ELF */ +#endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ #ifndef COFF /* People will probably find this apparently unreliable till the NFS dumping bug is fixed. */ |