Mercurial > hg > xemacs-beta
annotate src/m/powerpc.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 /* machine description file for Power PC |
2 Copyright (C) 1987, 1994 Free Software Foundation, Inc. | |
3 Copyright (C) 1995 Board of Trustees, University of Illinois | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
4 Copyright (C) 2010 Ben Wing. |
428 | 5 |
6 This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
8 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:
2367
diff
changeset
|
9 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:
2367
diff
changeset
|
10 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:
2367
diff
changeset
|
11 option) any later version. |
428 | 12 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
13 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:
2367
diff
changeset
|
14 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:
2367
diff
changeset
|
15 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:
2367
diff
changeset
|
16 for more details. |
428 | 17 |
18 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:
2367
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 20 |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="solaris2-5" */ | |
24 | |
25 #ifdef NOT_C_CODE | |
26 # define POWERPC | |
27 #else | |
28 # ifndef powerpc | |
29 # define powerpc | |
30 # endif | |
31 #endif | |
32 | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
33 /* Delete C_OPTIMIZE_SWITCH stuff, moved (currently brokenly) to |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
34 configure.ac */ |
428 | 35 |
36 #ifndef __linux__ | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
37 |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
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:
2367
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 / FSCALE) | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
47 |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
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:
2367
diff
changeset
|
49 |
428 | 50 #else /* mklinux */ |
51 | |
52 /* Define addresses, macros, change some setup for dump */ | |
53 | |
54 #define NO_REMAP | |
55 | |
56 #define N_BADMAG(x) BADMAG(x) | |
57 #define N_TXTOFF(x) A_TEXTPOS(x) | |
58 #define N_SYMOFF(x) A_SYMPOS(x) | |
59 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */ | |
60 /* #define ADJUST_EXEC_HEADER \ | |
61 unexec_text_start += sizeof(hdr); \ | |
62 unexec_data_start = ohdr.a_dbase | |
63 */ | |
64 #undef ADDR_CORRECT | |
65 #define ADDR_CORRECT(x) ((int)(x)) | |
66 | |
67 /* Specify the font for X to use. | |
68 This used to be Rom14.500; that's nice on the X server shipped with | |
69 the RS/6000, but it's not available on other servers. */ | |
70 #define X_DEFAULT_FONT "fixed" | |
71 | |
72 /* Here override various assumptions in ymakefile */ | |
73 | |
74 /* #undef START_FILES */ | |
75 /* #define HAVE_SYSVIPC */ | |
76 | |
77 /* Don't try to include sioctl.h or ptem.h. */ | |
78 #undef NEED_SIOCTL | |
79 #undef NEED_PTEM_H | |
80 | |
81 #define ORDINARY_LINK | |
82 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/ | |
83 #endif |