Mercurial > hg > xemacs-beta
annotate src/m/mips.h @ 5724:ede80ef92a74
Make soft links in src for module source files, if built in to the executable.
This ensures that those files are built with the same compiler flags as all
other source files.
See these xemacs-beta messages:
<CAHCOHQn+q=Xuwq+y68dvqi7afAP9f-TdB7=8YiZ8VYO816sjHg@mail.gmail.com>
<f5by5ejqiyk.fsf@calexico.inf.ed.ac.uk>
author | Jerry James <james@xemacs.org> |
---|---|
date | Sat, 02 Mar 2013 14:32:37 -0700 |
parents | 1f0b15040456 |
children |
rev | line source |
---|---|
428 | 1 /* m- file for Mips machines. |
2 Copyright (C) 1987, 1992 Free Software Foundation, Inc. | |
3 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
4 This file is part of XEmacs. |
428 | 5 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
7 under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
9 option) any later version. |
428 | 10 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
14 for more details. |
428 | 15 |
16 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 18 |
19 /* Synched up with: FSF 19.31. */ | |
20 | |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="note" | |
24 | |
25 NOTE-START | |
26 Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. | |
27 Note that the proper m- file for the Decstation is m-pmax.h. | |
28 NOTE-END */ | |
29 | |
30 /* Now define a symbol for the cpu type, if your compiler | |
31 does not define it automatically: | |
32 Ones defined so far include vax, m68000, ns16000, pyramid, | |
33 orion, tahoe, APOLLO and many others */ | |
34 #ifndef mips | |
35 # define mips | |
36 #endif | |
37 | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
38 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
39 |
428 | 40 /* Data type of load average, as read out of kmem. */ |
41 | |
42 #define LOAD_AVE_TYPE long | |
43 | |
44 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
45 | |
46 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) | |
47 | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
48 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
49 |
428 | 50 #ifndef linux |
51 /* CDC EP/IX 1.4.3 uses /unix */ | |
52 | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
53 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
54 |
428 | 55 #undef KERNEL_FILE |
56 #define KERNEL_FILE "/unix" | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
57 |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
58 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
59 |
428 | 60 #endif /* ! linux */ |
61 | |
62 /* Define NO_REMAP if memory segmentation makes it not work well | |
63 to change the boundary between the text section and data section | |
64 when Emacs is dumped. If you define this, the preloaded Lisp | |
65 code will not be sharable; but that's better than failing completely. */ | |
66 | |
67 #define NO_REMAP | |
68 | |
69 /* This machine requires completely different unexec code | |
70 which lives in a separate file. Specify the file name. */ | |
71 | |
72 #ifndef linux | |
73 #define UNEXEC "unexmips.o" | |
74 #endif /* !linux */ | |
75 /* Describe layout of the address space in an executing process. */ | |
76 | |
77 #ifdef linux | |
78 #define TEXT_START 0x00400000 | |
79 #define DATA_START 0x10000000 | |
80 #else /* !linux */ | |
81 #define TEXT_START 0x400000 | |
82 #define DATA_START 0x800000 | |
83 #endif /* linux */ | |
84 | |
85 /* Alter some of the options used when linking. */ | |
86 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
87 #if !defined(linux) |
428 | 88 #ifdef BSD |
89 | |
90 /* DECstations don't have this library. */ | |
91 /* #define LIBS_MACHINE "-lmld" */ | |
92 | |
93 #define LD_SWITCH_MACHINE "-D 800000" | |
94 #define LIBS_DEBUG | |
95 | |
96 #define LINKER "/bsd43/bin/ld" | |
97 | |
98 #else /* not BSD */ | |
99 | |
100 #undef LIBS_MACHINE | |
101 #define LD_SWITCH_MACHINE "-D 800000 -g3" | |
102 #define START_FILES "pre-crt0.o /usr/lib/crt1.o" | |
103 #define LIB_STANDARD "-lbsd -lc /usr/lib/crtn.o" | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
104 /* LIBS_TERMCAP deleted */ |
428 | 105 |
106 #define C_SWITCH_MACHINE "-I/usr/include/bsd" | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
107 /* XEmacs deleted C_DEBUG_SWITCH */ |
428 | 108 |
109 #endif /* not BSD */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
110 #endif /* !linux */ |
428 | 111 |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
112 #if !defined(linux) |
428 | 113 #ifdef USG |
114 | |
115 /* Don't try to use SIGIO even though it is defined. */ | |
116 #define BROKEN_SIGIO | |
117 | |
118 /* Describe special kernel features. */ | |
119 | |
120 #if defined(emacs) && !defined(INHIBIT_BSD_TIME) | |
121 #include <bsd/sys/time.h> | |
122 #endif | |
123 | |
124 /* The `select' in the system won't work for pipes, so don't use it. */ | |
125 #undef HAVE_SELECT /* override configuration decision */ | |
126 | |
127 /* ??? */ | |
128 #define IRIS | |
129 | |
130 #endif /* USG */ | |
131 | |
132 #ifdef BSD | |
133 #define COFF | |
134 #define TERMINFO | |
135 #undef MAIL_USE_FLOCK /* Someone should check this. */ | |
136 #endif /* BSD */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
137 #endif /* !linux */ |