blob: 4a23206238b84d20b78655504fb6e55c1882f5fe [file] [log] [blame]
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001## Process this with automake to create Makefile.in
2
3AUTOMAKE_OPTIONS = foreign subdir-objects
Anthony Greenc6dddbd2009-10-04 08:11:33 -04004
5SUBDIRS = include testsuite man
6
7EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
8 src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
9 src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
Anthony Green2340e7a2009-10-04 23:53:17 -040010 src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
Anthony Greenc6dddbd2009-10-04 08:11:33 -040011 src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
12 src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
13 src/ia64/unix.S \
14 src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
15 src/mips/ffitarget.h \
16 src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
17 src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
18 src/powerpc/ffi.c src/powerpc/sysv.S \
19 src/powerpc/linux64.S src/powerpc/linux64_closure.S \
20 src/powerpc/ppc_closure.S src/powerpc/asm.h \
21 src/powerpc/aix.S src/powerpc/darwin.S \
22 src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
23 src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
24 src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
25 src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
26 src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
27 src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
28 src/sparc/ffi.c src/x86/darwin64.S \
Anthony Green5cbe2052009-10-04 23:53:11 -040029 src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
30 src/x86/darwin.S src/x86/freebsd.S \
Anthony Greenc6dddbd2009-10-04 08:11:33 -040031 src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
32 src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
33 src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h src/dlmalloc.c \
Anthony Greenc7fa2da2009-12-24 07:22:44 -050034 libtool-version ChangeLog.libffi m4/libtool.m4 \
35 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
Anthony Green5cbe2052009-10-04 23:53:11 -040036
37info_TEXINFOS = doc/libffi.texi
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038
39## ################################################################
40
41##
42## This section is for make and multilib madness.
43##
44
45# Work around what appears to be a GNU make bug handling MAKEFLAGS
46# values defined in terms of make variables, as is the case for CC and
47# friends when we are called from the top level Makefile.
48AM_MAKEFLAGS = \
49 "AR_FLAGS=$(AR_FLAGS)" \
50 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
51 "CFLAGS=$(CFLAGS)" \
52 "CXXFLAGS=$(CXXFLAGS)" \
53 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
54 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
55 "INSTALL=$(INSTALL)" \
56 "INSTALL_DATA=$(INSTALL_DATA)" \
57 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
58 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
59 "JC1FLAGS=$(JC1FLAGS)" \
60 "LDFLAGS=$(LDFLAGS)" \
61 "LIBCFLAGS=$(LIBCFLAGS)" \
62 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
63 "MAKE=$(MAKE)" \
64 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
65 "PICFLAG=$(PICFLAG)" \
66 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
67 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
68 "SHELL=$(SHELL)" \
69 "exec_prefix=$(exec_prefix)" \
70 "infodir=$(infodir)" \
71 "libdir=$(libdir)" \
Anthony Green3f5b1372010-07-12 14:39:18 -040072 "mandir=$(mandir)" \
Anthony Greenc6dddbd2009-10-04 08:11:33 -040073 "prefix=$(prefix)" \
74 "AR=$(AR)" \
75 "AS=$(AS)" \
76 "CC=$(CC)" \
77 "CXX=$(CXX)" \
78 "LD=$(LD)" \
79 "NM=$(NM)" \
80 "RANLIB=$(RANLIB)" \
81 "DESTDIR=$(DESTDIR)"
82
83MAKEOVERRIDES=
84
Anthony Green115ab362009-12-24 00:22:00 -050085ACLOCAL_AMFLAGS=$(ACLOCAL_AMFLAGS) -I m4
86
Anthony Green5cbe2052009-10-04 23:53:11 -040087lib_LTLIBRARIES = libffi.la
Anthony Greenc6dddbd2009-10-04 08:11:33 -040088noinst_LTLIBRARIES = libffi_convenience.la
89
90libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
91 src/raw_api.c src/java_raw_api.c src/closures.c
92
Anthony Green5cbe2052009-10-04 23:53:11 -040093pkgconfigdir = $(libdir)/pkgconfig
94pkgconfig_DATA = libffi.pc
95
Anthony Greenc6dddbd2009-10-04 08:11:33 -040096nodist_libffi_la_SOURCES =
97
98if MIPS
99nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
100endif
101if X86
102nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
103endif
104if X86_FREEBSD
105nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
106endif
107if X86_WIN32
108nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
109endif
110if X86_WIN64
111nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
112endif
113if X86_DARWIN
114nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
115endif
116if SPARC
117nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
118endif
119if ALPHA
120nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
121endif
122if IA64
123nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
124endif
125if M32R
126nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
127endif
128if M68K
129nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
130endif
131if POWERPC
132nodist_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
133endif
134if POWERPC_AIX
135nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
136endif
137if POWERPC_DARWIN
138nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
139endif
140if POWERPC_FREEBSD
141nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
142endif
143if ARM
144nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
145endif
Anthony Green2340e7a2009-10-04 23:53:17 -0400146if AVR32
147nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c
148endif
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400149if LIBFFI_CRIS
150nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
151endif
152if FRV
153nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
154endif
Anthony Green9dc9a292010-04-13 10:33:52 -0400155if MOXIE
156nodist_libffi_la_SOURCES += src/moxie/eabi.S src/moxie/ffi.c
157endif
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400158if S390
159nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
160endif
161if X86_64
162nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
163endif
164if SH
165nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
166endif
167if SH64
168nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
169endif
170if PA_LINUX
171nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
172endif
173if PA_HPUX
174nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
175endif
176
177libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
178nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
179
180AM_CFLAGS = -Wall -g -fexceptions
181
Anthony Greenc3042af2010-01-01 08:08:02 -0500182libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400183
184AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
185AM_CCASFLAGS = $(AM_CPPFLAGS)
186
Anthony Green5cbe2052009-10-04 23:53:11 -0400187# No install-html or install-pdf support in automake yet
188.PHONY: install-html install-pdf
189install-html:
190install-pdf: