dc5de37072
2000-02-25 Hans Boehm <boehm@acm.org> * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New files. * src/raw_api.c (ffi_translate_args): Fixed typo in argument list. (ffi_prep_raw_closure): Use ffi_translate_args, not ffi_closure_translate. * src/java_raw_api.c: New file. * src/ffitest.c (closure_test_fn): New function. (main): Define `rint' as long long on IA64. Added new test when FFI_CLOSURES is defined. * include/ffi.h.in (ALIGN): Use size_t, not unsigned. (ffi_abi): Recognize IA64. (ffi_raw): Added `flt' field. Added "Java raw API" code. * configure.in: Recognize ia64. * Makefile.am (TARGET_SRC_IA64): New macro. (libffi_la_common_SOURCES): Added java_raw_api.c. (libffi_la_SOURCES): Define in IA64 case. From-SVN: r32151
87 lines
2.5 KiB
Makefile
87 lines
2.5 KiB
Makefile
## Process this with automake to create Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
EXTRA_DIST = LICENSE ChangeLog.v1 src/mips/ffi.c src/mips/n32.S \
|
|
src/mips/n32.s src/mips/o32.S src/mips/o32.s \
|
|
src/sparc/ffi.c src/sparc/v8.S \
|
|
src/x86/ffi.c src/x86/sysv.S \
|
|
src/alpha/ffi.c src/alpha/osf.S \
|
|
src/m68k/ffi.c src/m68k/sysv.S \
|
|
src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/asm.h \
|
|
src/arm/ffi.c src/arm/sysv.S
|
|
|
|
VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
|
|
|
|
# Multilib support variables.
|
|
MULTISRCTOP =
|
|
MULTIBUILDTOP =
|
|
MULTIDIRS =
|
|
MULTISUBDIR =
|
|
MULTIDO = true
|
|
MULTICLEAN = true
|
|
|
|
## Install a library built with a cross compiler in tooldir, not
|
|
## libdir.
|
|
if USE_LIBDIR
|
|
toolexeclibdir = $(libdir)$(MULTISUBDIR)
|
|
else
|
|
toolexecdir = $(exec_prefix)/$(target_alias)
|
|
toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
|
|
endif
|
|
|
|
toolexeclib_LTLIBRARIES = libffi.la
|
|
|
|
noinst_PROGRAMS = ffitest
|
|
|
|
ffitest_SOURCES = src/ffitest.c
|
|
ffitest_LDADD = libffi.la
|
|
|
|
TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
|
|
TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
|
|
TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
|
|
TARGET_SRC_SPARC = src/sparc/ffi.c src/sparc/v8.S
|
|
TARGET_SRC_ALPHA = src/alpha/ffi.c src/alpha/osf.S
|
|
TARGET_SRC_IA64 = src/alpha/ffi.c src/alpha/unix.S
|
|
TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
|
|
TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S
|
|
TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c
|
|
|
|
##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c $(TARGET_SRC_@TARGET@)
|
|
## Work around automake deficiency
|
|
libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c \
|
|
src/raw_api.c src/java_raw_api.c
|
|
if MIPS_GCC
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC)
|
|
endif
|
|
if MIPS_SGI
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
|
|
endif
|
|
if X86
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
|
|
endif
|
|
if SPARC
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC)
|
|
endif
|
|
if ALPHA
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA)
|
|
endif
|
|
if IA64
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_IA64)
|
|
endif
|
|
if M68K
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K)
|
|
endif
|
|
if POWERPC
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC)
|
|
endif
|
|
if ARM
|
|
libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
|
|
endif
|
|
|
|
AM_CFLAGS = -fexceptions
|
|
|
|
libffi_la_LDFLAGS = -release $(VERSION)
|
|
|
|
INCLUDES = -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|