blob: edfd6d9d83ab59bb2e0cc36e42fabd1da0f213b2 [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)" \
72 "prefix=$(prefix)" \
73 "AR=$(AR)" \
74 "AS=$(AS)" \
75 "CC=$(CC)" \
76 "CXX=$(CXX)" \
77 "LD=$(LD)" \
78 "NM=$(NM)" \
79 "RANLIB=$(RANLIB)" \
80 "DESTDIR=$(DESTDIR)"
81
82MAKEOVERRIDES=
83
Anthony Green115ab362009-12-24 00:22:00 -050084ACLOCAL_AMFLAGS=$(ACLOCAL_AMFLAGS) -I m4
85
Anthony Green5cbe2052009-10-04 23:53:11 -040086lib_LTLIBRARIES = libffi.la
Anthony Greenc6dddbd2009-10-04 08:11:33 -040087noinst_LTLIBRARIES = libffi_convenience.la
88
89libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
90 src/raw_api.c src/java_raw_api.c src/closures.c
91
Anthony Green5cbe2052009-10-04 23:53:11 -040092pkgconfigdir = $(libdir)/pkgconfig
93pkgconfig_DATA = libffi.pc
94
Anthony Greenc6dddbd2009-10-04 08:11:33 -040095nodist_libffi_la_SOURCES =
96
97if MIPS
98nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
99endif
100if X86
101nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
102endif
103if X86_FREEBSD
104nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
105endif
106if X86_WIN32
107nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
108endif
109if X86_WIN64
110nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
111endif
112if X86_DARWIN
113nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
114endif
115if SPARC
116nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
117endif
118if ALPHA
119nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
120endif
121if IA64
122nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
123endif
124if M32R
125nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
126endif
127if M68K
128nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
129endif
130if POWERPC
131nodist_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
132endif
133if POWERPC_AIX
134nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
135endif
136if POWERPC_DARWIN
137nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
138endif
139if POWERPC_FREEBSD
140nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
141endif
142if ARM
143nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
144endif
Anthony Green2340e7a2009-10-04 23:53:17 -0400145if AVR32
146nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c
147endif
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400148if LIBFFI_CRIS
149nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
150endif
151if FRV
152nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
153endif
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400154if S390
155nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
156endif
157if X86_64
158nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
159endif
160if SH
161nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
162endif
163if SH64
164nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
165endif
166if PA_LINUX
167nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
168endif
169if PA_HPUX
170nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
171endif
172
173libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
174nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
175
176AM_CFLAGS = -Wall -g -fexceptions
177
Anthony Green1fe3dc72009-12-25 01:39:00 -0500178libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(AM_LTLDFLAGS)
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400179
180AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
181AM_CCASFLAGS = $(AM_CPPFLAGS)
182
Anthony Green5cbe2052009-10-04 23:53:11 -0400183# No install-html or install-pdf support in automake yet
184.PHONY: install-html install-pdf
185install-html:
186install-pdf:
187