1 ## Process this with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
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
14 VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
16 # Multilib support variables.
24 ## Install a library built with a cross compiler in tooldir, not
27 toolexeclibdir = $(libdir)$(MULTISUBDIR)
29 toolexecdir = $(exec_prefix)/$(target_alias)
30 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
33 toolexeclib_LTLIBRARIES = libffi.la
35 noinst_PROGRAMS = ffitest
37 ffitest_SOURCES = src/ffitest.c
38 ffitest_LDADD = libffi.la
40 TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
41 TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
42 TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
43 TARGET_SRC_SPARC = src/sparc/ffi.c src/sparc/v8.S
44 TARGET_SRC_ALPHA = src/alpha/ffi.c src/alpha/osf.S
45 TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
46 TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S
47 TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c
49 ##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c $(TARGET_SRC_@TARGET@)
50 ## Work around automake deficiency
51 libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c src/raw_api.c
53 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC)
56 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
59 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
62 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC)
65 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA)
68 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K)
71 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC)
74 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
77 AM_CFLAGS = -fexceptions
79 libffi_la_LDFLAGS = -release $(VERSION)
81 INCLUDES = -I$(top_srcdir)/include -Iinclude