Commit | Line | Data |
---|---|---|
9a446b3c GM |
1 | /* machine description file for Mips running RISCOS version 4. |
2 | ||
3 | Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006, | |
4 | 2007 Free Software Foundation, Inc. | |
5 | ||
6 | This file is part of GNU Emacs. | |
7 | ||
8 | GNU Emacs is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
4a9f99bd | 10 | the Free Software Foundation; either version 3, or (at your option) |
9a446b3c GM |
11 | any later version. |
12 | ||
13 | GNU Emacs is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GNU Emacs; see the file COPYING. If not, write to | |
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
21 | Boston, MA 02110-1301, USA. */ | |
22 | ||
20c428fd JB |
23 | |
24 | #include "mips.h" | |
25 | ||
177c0ea7 | 26 | /* The following line tells the configuration script what sort of |
20c428fd JB |
27 | operating system this machine is likely to run. |
28 | USUAL-OPSYS="note" | |
29 | ||
30 | NOTE-START | |
31 | Use -opsystem=usg5-2-2 normally, or -opsystem=bsd4-3 with the BSD | |
32 | world. | |
33 | NOTE-END */ | |
34 | ||
57a1f2a2 | 35 | #if 0 |
20c428fd | 36 | /* Define MIPS2 if you have an R6000 or R4000. */ |
96160d21 | 37 | #define MIPS2 |
57a1f2a2 | 38 | #endif |
20c428fd | 39 | |
93a37120 JB |
40 | #ifdef __GNUC__ |
41 | #define C_DEBUG_SWITCH -g -O | |
42 | #else | |
66470939 RS |
43 | /* We used to have -systype bsd43, but a configure change |
44 | now takes care of that option. */ | |
20c428fd | 45 | #ifdef MIPS2 |
7a19891b | 46 | #define C_DEBUG_SWITCH -DMips -g3 -Wf,-XNd4000 -O -Olimit 2000 -mips2 |
20c428fd | 47 | #else |
7a19891b | 48 | #define C_DEBUG_SWITCH -DMips -g3 -Wf,-XNd4000 -O -Olimit 2000 |
20c428fd | 49 | #endif |
93a37120 | 50 | #endif |
20c428fd JB |
51 | |
52 | #ifdef TERMINFO | |
53 | #undef TERMINFO | |
54 | #endif | |
55 | ||
56 | #define START_FILES pre-crt0.o /lib/crt1.o | |
57a1f2a2 RS |
57 | /* Used to have -lisode, but jlp@math.byu.edu says remove it |
58 | (for RISCOS 4.52). */ | |
843873e9 RS |
59 | /* ethanb@ptolemy.astro.washington.edu says crtn.o uses _ctype |
60 | and therefore we must search libc again after crtn.o. | |
61 | The -L is used to force second -lc to find the sysv version | |
62 | of libc.a, which is needed because the BSD libc.a | |
63 | doesn't have _ctype. */ | |
64 | #define LIB_STANDARD -lmld -lc /lib/crtn.o -L/usr/lib -lc | |
20c428fd JB |
65 | |
66 | ||
67 | #define COFF | |
68 | #undef LD_SWITCH_MACHINE | |
69 | #define LD_SWITCH_MACHINE -systype bsd43 -g3 -D 800000 | |
66470939 RS |
70 | |
71 | #define NO_MODE_T | |
ecc22c11 RS |
72 | |
73 | /* These are needed on Riscos 4.0. | |
6df54671 KH |
74 | It appears that's the only system which uses mips4.h and defines BSD. */ |
75 | #ifdef BSD_SYSTEM | |
ecc22c11 RS |
76 | #undef HAVE_STRERROR |
77 | #undef HAVE_XRMSETDATABASE | |
78 | #undef HAVE_XSCREENRESOURCESTRING | |
79 | #undef HAVE_SETSID | |
80 | #endif | |
ab5796a9 MB |
81 | |
82 | /* arch-tag: 56050454-0df5-4de9-b1b7-0c6ab400313c | |
83 | (do not change this comment) */ |