1 /* Configuration for GNU C-compiler for Intel 80386 running DJGPP.
2 Copyright (C) 1988, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
23 #include "i386/xm-i386.h"
25 /* Use semicolons to separate elements of a path. */
26 #define PATH_SEPARATOR ';'
28 #define EXECUTABLE_SUFFIX ".exe"
30 /* Even though we support "/", allow "\" since everybody tests both. */
31 #define DIR_SEPARATOR '/'
32 #define DIR_SEPARATOR_2 '\\'
34 /* Allow test for DOS drive names. */
35 #define HAVE_DOS_BASED_FILE_SYSTEM
37 /* System dependant initialization for collect2
38 to tell system() to act like Unix. */
39 #define COLLECT2_HOST_INITIALIZATION \
40 do { __system_flags |= (__system_allow_multiple_cmds \
41 | __system_emulate_chdir); } while (0)
43 /* Define a version appropriate for DOS. */
45 #define XREF_FILE_NAME(xref_file, file) \
47 const char xref_ext[] = ".gxref"; \
48 strcpy (xref_file, file); \
49 s = basename (xref_file); \
50 t = strchr (s, '.'); \
52 strcpy (t, xref_ext); \
54 strcat (xref_file, xref_ext); \