6 'MIPS_IRIX': ['src/mips/ffi.c', 'src/mips/o32.S', 'src/mips/n32.S'],
7 'MIPS_LINUX': ['src/mips/ffi.c', 'src/mips/o32.S'],
8 'X86': ['src/x86/ffi.c', 'src/x86/sysv.S'],
9 'X86_DARWIN': ['src/x86/ffi_darwin.c', 'src/x86/darwin.S'],
10 'X86_WIN32': ['src/x86/ffi.c', 'src/x86/win32.S'],
11 'SPARC': ['src/sparc/ffi.c', 'src/sparc/v8.S', 'src/sparc/v9.S'],
12 'ALPHA': ['src/alpha/ffi.c', 'src/alpha/osf.S'],
13 'IA64': ['src/ia64/ffi.c', 'src/ia64/unix.S'],
14 'M32R': ['src/m32r/sysv.S', 'src/m32r/ffi.c'],
15 'M68K': ['src/m68k/ffi.c', 'src/m68k/sysv.S'],
16 'POWERPC': ['src/powerpc/ffi.c', 'src/powerpc/sysv.S', 'src/powerpc/ppc_closure.S', 'src/powerpc/linux64.S', 'src/powerpc/linux64_closure.S'],
17 'POWERPC_AIX': ['src/powerpc/ffi_darwin.c', 'src/powerpc/aix.S', 'src/powerpc/aix_closure.S'],
18 'POWERPC_DARWIN': ['src/powerpc/ffi_darwin.c', 'src/powerpc/darwin.S', 'src/powerpc/darwin_closure.S'],
19 'POWERPC_FREEBSD': ['src/powerpc/ffi.c', 'src/powerpc/sysv.S', 'src/powerpc/ppc_closure.S'],
20 'ARM': ['src/arm/sysv.S', 'src/arm/ffi.c'],
21 'LIBFFI_CRIS': ['src/cris/sysv.S', 'src/cris/ffi.c'],
22 'FRV': ['src/frv/eabi.S', 'src/frv/ffi.c'],
23 'S390': ['src/s390/sysv.S', 'src/s390/ffi.c'],
24 'X86_64': ['src/x86/ffi64.c', 'src/x86/unix64.S', 'src/x86/ffi.c', 'src/x86/sysv.S'],
25 'SH': ['src/sh/sysv.S', 'src/sh/ffi.c'],
26 'SH64': ['src/sh64/sysv.S', 'src/sh64/ffi.c'],
27 'PA': ['src/pa/linux.S', 'src/pa/ffi.c'],
30 # Build all darwin related files on all supported darwin architectures, this
31 # makes it easier to build universal binaries.
33 all_darwin
= ('X86_DARWIN', 'POWERPC_DARWIN')
36 all_darwin_files
.extend(ffi_platforms
[pn
])
38 ffi_platforms
[pn
] = all_darwin_files
39 del all_darwin
, all_darwin_files
, pn
41 ffi_srcdir
= '@srcdir@'
42 ffi_sources
+= ffi_platforms
['@MKTARGET@']
43 ffi_sources
= [os
.path
.join('@srcdir@', f
) for f
in ffi_sources
]
45 ffi_cflags
= '@CFLAGS@'