diff options
| author | David Jones | 2006-10-10 15:08:14 +0100 |
|---|---|---|
| committer | David Jones | 2006-10-10 15:08:14 +0100 |
| commit | 2b568041abe13ca8f9ff42f9755ab14b1793dcb2 (patch) | |
| tree | ad4da0f4edc35cc42cf428b2d246cf8a8744f04f /mps/code | |
| parent | 9962457ddf37b02d99b3946fbcc38bad9b6da463 (diff) | |
| download | emacs-2b568041abe13ca8f9ff42f9755ab14b1793dcb2.tar.gz emacs-2b568041abe13ca8f9ff42f9755ab14b1793dcb2.zip | |
Mps: roughing a makefile so that intel os x builds are possible.
Copied from Perforce
Change: 160735
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/mpstd.h | 18 | ||||
| -rw-r--r-- | mps/code/xci3gc.gmk | 74 |
2 files changed, 92 insertions, 0 deletions
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h index 7884fc016f8..152bf819206 100644 --- a/mps/code/mpstd.h +++ b/mps/code/mpstd.h | |||
| @@ -186,6 +186,24 @@ | |||
| 186 | #define MPS_WORD_SHIFT 5 | 186 | #define MPS_WORD_SHIFT 5 |
| 187 | #define MPS_PF_ALIGN 8 /* .macos.ppc.align */ | 187 | #define MPS_PF_ALIGN 8 /* .macos.ppc.align */ |
| 188 | 188 | ||
| 189 | /* GCC 4.0.1 (As supplied by Apple on Mac OS X 10.4.8 on an Intel Mac), | ||
| 190 | * gcc -E -dM | ||
| 191 | * And above for xcppgc. | ||
| 192 | */ | ||
| 193 | |||
| 194 | #elif defined(CONFIG_PF_XCI3GC) \ | ||
| 195 | || defined(__APPLE__) && defined(__i386__) && defined(__MACH__) \ | ||
| 196 | && defined(__GNUC__) | ||
| 197 | #define MPS_PF_XCI3GC | ||
| 198 | #define MPS_PF_STRING "xci3gc" | ||
| 199 | #define MPS_OS_XC | ||
| 200 | #define MPS_ARCH_I3 | ||
| 201 | #define MPS_BUILD_GC | ||
| 202 | #define MPS_T_WORD unsigned long | ||
| 203 | #define MPS_WORD_WIDTH 32 | ||
| 204 | #define MPS_WORD_SHIFT 5 | ||
| 205 | #define MPS_PF_ALIGN 4 /* I'm just guessing. */ | ||
| 206 | |||
| 189 | /* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */ | 207 | /* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */ |
| 190 | 208 | ||
| 191 | #elif defined(CONFIG_PF_SUS8GC) \ | 209 | #elif defined(CONFIG_PF_SUS8GC) \ |
diff --git a/mps/code/xci3gc.gmk b/mps/code/xci3gc.gmk new file mode 100644 index 00000000000..9c4ba7a8a48 --- /dev/null +++ b/mps/code/xci3gc.gmk | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | # xci3gc.gmk: BUILD FOR MACOS X (CARBON)/INTEL IA32/GCC PLATFORM | ||
| 2 | # | ||
| 3 | # $Id$ | ||
| 4 | # Copyright (c) 2001,2006 Ravenbrook Limited. See end of file for license. | ||
| 5 | # | ||
| 6 | # Naively copied from xcppgc.gmk, could do with going over properly. | ||
| 7 | |||
| 8 | PFM = xci3gc | ||
| 9 | |||
| 10 | MPMPF = mpsliban.c mpsioan.c lockan.c than.c vmxc.c \ | ||
| 11 | protan.c prmcan.c span.c ssan.c | ||
| 12 | SWPF = than.c vmxc.c protsw.c prmcan.c ssan.c | ||
| 13 | |||
| 14 | LIBS = | ||
| 15 | |||
| 16 | RANLIB=ranlib | ||
| 17 | |||
| 18 | include gc.gmk | ||
| 19 | |||
| 20 | CC = cc | ||
| 21 | |||
| 22 | # Suppress some warnings (last checked in DP3). | ||
| 23 | # .cabs: -Wstrict-prototypes cannot be used because the math.h header has a | ||
| 24 | # traditional declaration of cabs. | ||
| 25 | # .sputc: -Wno-unused is needed, because stdio.h declares __sputc as an | ||
| 26 | # inline function. | ||
| 27 | # .types: sys/types.h uses 'long long' even under -ansi. | ||
| 28 | CFLAGSCOMPILER := $(subst -Wstrict-prototypes,,$(CFLAGSCOMPILER)) \ | ||
| 29 | -Wno-unused -Wno-long-long -no-cpp-precomp | ||
| 30 | CFLAGSDEBUG := $(subst -g -ggdb3,-g3,$(CFLAGSDEBUG)) | ||
| 31 | CFLAGSOPT := $(subst -g -ggdb3,-g3,$(CFLAGSOPT)) | ||
| 32 | |||
| 33 | include comm.gmk | ||
| 34 | |||
| 35 | |||
| 36 | # C. COPYRIGHT AND LICENSE | ||
| 37 | # | ||
| 38 | # Copyright (C) 2001-2006 Ravenbrook Limited <http://www.ravenbrook.com/>. | ||
| 39 | # All rights reserved. This is an open source license. Contact | ||
| 40 | # Ravenbrook for commercial licensing options. | ||
| 41 | # | ||
| 42 | # Redistribution and use in source and binary forms, with or without | ||
| 43 | # modification, are permitted provided that the following conditions are | ||
| 44 | # met: | ||
| 45 | # | ||
| 46 | # 1. Redistributions of source code must retain the above copyright | ||
| 47 | # notice, this list of conditions and the following disclaimer. | ||
| 48 | # | ||
| 49 | # 2. Redistributions in binary form must reproduce the above copyright | ||
| 50 | # notice, this list of conditions and the following disclaimer in the | ||
| 51 | # documentation and/or other materials provided with the distribution. | ||
| 52 | # | ||
| 53 | # 3. Redistributions in any form must be accompanied by information on how | ||
| 54 | # to obtain complete source code for this software and any accompanying | ||
| 55 | # software that uses this software. The source code must either be | ||
| 56 | # included in the distribution or be available for no more than the cost | ||
| 57 | # of distribution plus a nominal fee, and must be freely redistributable | ||
| 58 | # under reasonable conditions. For an executable file, complete source | ||
| 59 | # code means the source code for all modules it contains. It does not | ||
| 60 | # include source code for modules or files that typically accompany the | ||
| 61 | # major components of the operating system on which the executable file | ||
| 62 | # runs. | ||
| 63 | # | ||
| 64 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 65 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | ||
| 66 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
| 67 | # PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
| 68 | # COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 69 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 70 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 71 | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
| 72 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 73 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| 74 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||