]>
Commit | Line | Data |
---|---|---|
63e5e3e0 AG |
1 | ## Process this with automake to create Makefile.in |
2 | ||
3 | AUTOMAKE_OPTIONS = cygnus | |
4 | ||
5 | EXTRA_DIST = LICENSE ChangeLog.v1 src/mips/ffi.c src/mips/n32.S \ | |
6 | src/mips/n32.s src/mips/o32.S src/mips/o32.s \ | |
7 | src/sparc/ffi.c src/sparc/v8.S \ | |
8 | src/x86/ffi.c src/x86/sysv.S \ | |
9 | src/alpha/ffi.c src/alpha/osf.S \ | |
10 | src/m68k/ffi.c src/m68k/sysv.S \ | |
11 | src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/asm.h \ | |
12 | src/arm/ffi.c src/arm/sysv.S | |
13 | ||
14 | VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@ | |
15 | ||
16 | # Multilib support variables. | |
17 | MULTISRCTOP = | |
18 | MULTIBUILDTOP = | |
19 | MULTIDIRS = | |
20 | MULTISUBDIR = | |
21 | MULTIDO = true | |
22 | MULTICLEAN = true | |
23 | ||
24 | toolexecdir = $(exec_prefix)/$(target_alias) | |
25 | toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR) | |
26 | ||
63e5e3e0 AG |
27 | toolexeclib_LTLIBRARIES = libffi.la |
28 | ||
29 | noinst_PROGRAMS = ffitest | |
30 | ||
31 | ffitest_SOURCES = src/ffitest.c | |
32 | ffitest_LDADD = libffi.la | |
33 | ||
34 | TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S | |
35 | TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s | |
36 | TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S | |
37 | TARGET_SRC_SPARC = src/sparc/ffi.c src/sparc/v8.S | |
38 | TARGET_SRC_ALPHA = src/alpha/ffi.c src/alpha/osf.S | |
39 | TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S | |
40 | TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S | |
41 | TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c | |
42 | ||
43 | ##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c $(TARGET_SRC_@TARGET@) | |
44 | ## Work around automake deficiency | |
45 | libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c src/raw_api.c | |
46 | if MIPS_GCC | |
47 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC) | |
48 | endif | |
49 | if MIPS_SGI | |
50 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI) | |
51 | endif | |
52 | if X86 | |
53 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86) | |
54 | endif | |
55 | if SPARC | |
56 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC) | |
57 | endif | |
58 | if ALPHA | |
59 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA) | |
60 | endif | |
61 | if M68K | |
62 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K) | |
63 | endif | |
64 | if POWERPC | |
65 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC) | |
66 | endif | |
67 | if ARM | |
68 | libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM) | |
69 | endif | |
70 | ||
248c0b69 AG |
71 | AM_CFLAGS = -fexceptions |
72 | ||
63e5e3e0 AG |
73 | libffi_la_LDFLAGS = -release $(VERSION) |
74 | ||
75 | INCLUDES = -I$(top_srcdir)/include -Iinclude |