# HG changeset patch # User Richard M. Stallman # Date 732829835 0 # Node ID 50737ca2fd45a43ce3aeea1b700deda53c780bb9 # Parent 4fb5b10c0f1092ef852beab201cc885d73d09a3d Decide automatically whether to use COFF or ELF. diff -r 4fb5b10c0f10 -r 50737ca2fd45 src/s/dgux.h --- a/src/s/dgux.h Mon Mar 22 19:23:41 1993 +0000 +++ b/src/s/dgux.h Mon Mar 22 19:50:35 1993 +0000 @@ -118,11 +118,21 @@ /* 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. */ +#if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) +#undef ELF +#ifndef COFF +#define COFF +#endif /* COFF */ +#else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ +#undef COFF #ifndef ELF -#define COFF -#endif +#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. */