062b827975
2009-06-12 Andrew Haley <aph@redhat.com> * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c, testsuite/libffi.call/cls_align_uint64.c, testsuite/libffi.call/cls_ulonglong.c, testsuite/libffi.call/return_ll1.c, testsuite/libffi.call/stret_medium2.c: Fix printf format specifiers. testsuite/libffi.special/unwindtest.cc: include stdint.h. 2009-06-11 Timothy Wall <twall@users.sf.net> * Makefile.am, configure.ac, include/ffi.h.in, include/ffi_common.h, src/closures.c, src/dlmalloc.c, src/x86/ffi.c, src/x86/ffitarget.h, src/x86/win64.S (new), README: Added win64 support (mingw or MSVC) * Makefile.in, include/Makefile.in, man/Makefile.in, testsuite/Makefile.in, configure, aclocal.m4: Regenerated * ltcf-c.sh: properly escape cygwin/w32 path * man/ffi_call.3: Clarify size requirements for return value. * src/x86/ffi64.c: Fix filename in comment. * src/x86/win32.S: Remove unused extern. * testsuite/libffi.call/closure_fn0.c, testsuite/libffi.call/closure_fn1.c, testsuite/libffi.call/closure_fn2.c, testsuite/libffi.call/closure_fn3.c, testsuite/libffi.call/closure_fn4.c, testsuite/libffi.call/closure_fn5.c, testsuite/libffi.call/closure_fn6.c, testsuite/libffi.call/closure_stdcall.c, testsuite/libffi.call/cls_12byte.c, testsuite/libffi.call/cls_16byte.c, testsuite/libffi.call/cls_18byte.c, testsuite/libffi.call/cls_19byte.c, testsuite/libffi.call/cls_1_1byte.c, testsuite/libffi.call/cls_20byte.c, testsuite/libffi.call/cls_20byte1.c, testsuite/libffi.call/cls_24byte.c, testsuite/libffi.call/cls_2byte.c, testsuite/libffi.call/cls_3_1byte.c, testsuite/libffi.call/cls_3byte1.c, testsuite/libffi.call/cls_3byte2.c, testsuite/libffi.call/cls_4_1byte.c, testsuite/libffi.call/cls_4byte.c, testsuite/libffi.call/cls_5_1_byte.c, testsuite/libffi.call/cls_5byte.c, testsuite/libffi.call/cls_64byte.c, testsuite/libffi.call/cls_6_1_byte.c, testsuite/libffi.call/cls_6byte.c, testsuite/libffi.call/cls_7_1_byte.c, testsuite/libffi.call/cls_7byte.c, testsuite/libffi.call/cls_8byte.c, testsuite/libffi.call/cls_9byte1.c, testsuite/libffi.call/cls_9byte2.c, testsuite/libffi.call/cls_align_double.c, testsuite/libffi.call/cls_align_float.c, testsuite/libffi.call/cls_align_longdouble.c, testsuite/libffi.call/cls_align_longdouble_split.c, testsuite/libffi.call/cls_align_longdouble_split2.c, testsuite/libffi.call/cls_align_pointer.c, testsuite/libffi.call/cls_align_sint16.c, testsuite/libffi.call/cls_align_sint32.c, testsuite/libffi.call/cls_align_sint64.c, testsuite/libffi.call/cls_align_uint16.c, testsuite/libffi.call/cls_align_uint32.c, testsuite/libffi.call/cls_align_uint64.c, testsuite/libffi.call/cls_dbls_struct.c, testsuite/libffi.call/cls_double.c, testsuite/libffi.call/cls_double_va.c, testsuite/libffi.call/cls_float.c, testsuite/libffi.call/cls_longdouble.c, testsuite/libffi.call/cls_longdouble_va.c, testsuite/libffi.call/cls_multi_schar.c, testsuite/libffi.call/cls_multi_sshort.c, testsuite/libffi.call/cls_multi_sshortchar.c, testsuite/libffi.call/cls_multi_uchar.c, testsuite/libffi.call/cls_multi_ushort.c, testsuite/libffi.call/cls_multi_ushortchar.c, testsuite/libffi.call/cls_pointer.c, testsuite/libffi.call/cls_pointer_stack.c, testsuite/libffi.call/cls_schar.c, testsuite/libffi.call/cls_sint.c, testsuite/libffi.call/cls_sshort.c, testsuite/libffi.call/cls_uchar.c, testsuite/libffi.call/cls_uint.c, testsuite/libffi.call/cls_ulonglong.c, testsuite/libffi.call/cls_ushort.c, testsuite/libffi.call/err_bad_abi.c, testsuite/libffi.call/err_bad_typedef.c, testsuite/libffi.call/float2.c, testsuite/libffi.call/huge_struct.c, testsuite/libffi.call/nested_struct.c, testsuite/libffi.call/nested_struct1.c, testsuite/libffi.call/nested_struct10.c, testsuite/libffi.call/nested_struct2.c, testsuite/libffi.call/nested_struct3.c, testsuite/libffi.call/nested_struct4.c, testsuite/libffi.call/nested_struct5.c, testsuite/libffi.call/nested_struct6.c, testsuite/libffi.call/nested_struct7.c, testsuite/libffi.call/nested_struct8.c, testsuite/libffi.call/nested_struct9.c, testsuite/libffi.call/problem1.c, testsuite/libffi.call/return_ldl.c, testsuite/libffi.call/return_ll1.c, testsuite/libffi.call/stret_large.c, testsuite/libffi.call/stret_large2.c, testsuite/libffi.call/stret_medium.c, testsuite/libffi.call/stret_medium2.c, testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead of checking for MMAP. Use intptr_t instead of long casts. 2009-06-12 Andrew Haley <aph@redhat.com> * Makefile.am: Remove info_TEXINFOS. From-SVN: r148433
184 lines
5.7 KiB
Makefile
184 lines
5.7 KiB
Makefile
## Process this with automake to create Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = foreign subdir-objects
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
|
|
|
SUBDIRS = include testsuite man
|
|
|
|
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
|
src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
|
|
src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
|
|
src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
|
|
src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
|
|
src/ia64/unix.S \
|
|
src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
|
|
src/mips/ffitarget.h \
|
|
src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
|
|
src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
|
|
src/powerpc/ffi.c src/powerpc/sysv.S \
|
|
src/powerpc/linux64.S src/powerpc/linux64_closure.S \
|
|
src/powerpc/ppc_closure.S src/powerpc/asm.h \
|
|
src/powerpc/aix.S src/powerpc/darwin.S \
|
|
src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
|
|
src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
|
|
src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
|
|
src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
|
|
src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
|
|
src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
|
|
src/sparc/ffi.c src/x86/darwin64.S \
|
|
src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
|
|
src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
|
|
src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
|
|
src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h src/dlmalloc.c
|
|
|
|
## ################################################################
|
|
|
|
##
|
|
## This section is for make and multilib madness.
|
|
##
|
|
|
|
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
|
# values defined in terms of make variables, as is the case for CC and
|
|
# friends when we are called from the top level Makefile.
|
|
AM_MAKEFLAGS = \
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
|
"CFLAGS=$(CFLAGS)" \
|
|
"CXXFLAGS=$(CXXFLAGS)" \
|
|
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
|
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
|
"INSTALL=$(INSTALL)" \
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
|
"JC1FLAGS=$(JC1FLAGS)" \
|
|
"LDFLAGS=$(LDFLAGS)" \
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
|
"MAKE=$(MAKE)" \
|
|
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
|
"PICFLAG=$(PICFLAG)" \
|
|
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
|
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
|
"SHELL=$(SHELL)" \
|
|
"exec_prefix=$(exec_prefix)" \
|
|
"infodir=$(infodir)" \
|
|
"libdir=$(libdir)" \
|
|
"prefix=$(prefix)" \
|
|
"AR=$(AR)" \
|
|
"AS=$(AS)" \
|
|
"CC=$(CC)" \
|
|
"CXX=$(CXX)" \
|
|
"LD=$(LD)" \
|
|
"NM=$(NM)" \
|
|
"RANLIB=$(RANLIB)" \
|
|
"DESTDIR=$(DESTDIR)"
|
|
|
|
MAKEOVERRIDES=
|
|
|
|
toolexeclib_LTLIBRARIES = libffi.la
|
|
noinst_LTLIBRARIES = libffi_convenience.la
|
|
|
|
libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
|
|
src/raw_api.c src/java_raw_api.c src/closures.c
|
|
|
|
nodist_libffi_la_SOURCES =
|
|
|
|
if MIPS
|
|
nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
|
|
endif
|
|
if X86
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
|
|
endif
|
|
if X86_FREEBSD
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
|
|
endif
|
|
if X86_WIN32
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
|
|
endif
|
|
if X86_WIN64
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
|
|
endif
|
|
if X86_DARWIN
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
|
|
endif
|
|
if SPARC
|
|
nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
|
|
endif
|
|
if ALPHA
|
|
nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
|
|
endif
|
|
if IA64
|
|
nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
|
|
endif
|
|
if M32R
|
|
nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
|
|
endif
|
|
if M68K
|
|
nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
|
|
endif
|
|
if POWERPC
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S src/powerpc/linux64.S src/powerpc/linux64_closure.S
|
|
endif
|
|
if POWERPC_AIX
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
|
|
endif
|
|
if POWERPC_DARWIN
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
|
|
endif
|
|
if POWERPC_FREEBSD
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
|
|
endif
|
|
if ARM
|
|
nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
|
|
endif
|
|
if LIBFFI_CRIS
|
|
nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
|
|
endif
|
|
if FRV
|
|
nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
|
|
endif
|
|
if S390
|
|
nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
|
|
endif
|
|
if X86_64
|
|
nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
|
|
endif
|
|
if SH
|
|
nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
|
|
endif
|
|
if SH64
|
|
nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
|
|
endif
|
|
if PA_LINUX
|
|
nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
|
|
endif
|
|
if PA_HPUX
|
|
nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
|
|
endif
|
|
|
|
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
|
nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
|
|
|
|
AM_CFLAGS = -Wall -g -fexceptions
|
|
|
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
|
|
|
libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS)
|
|
|
|
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
|
|
|
# No install-html or install-pdf support in automake yet
|
|
.PHONY: install-html install-pdf
|
|
install-html:
|
|
install-pdf:
|
|
|
|
# Multilib support. Automake should provide these on its own.
|
|
all-recursive: all-multi
|
|
install-recursive: install-multi
|
|
mostlyclean-recursive: mostlyclean-multi
|
|
clean-recursive: clean-multi
|
|
distclean-recursive: distclean-multi
|
|
maintainer-clean-recursive: maintainer-clean-multi
|