1 |
732 |
jeremybenn |
## Process this with automake to create Makefile.in
|
2 |
|
|
|
3 |
|
|
AUTOMAKE_OPTIONS = foreign subdir-objects
|
4 |
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
5 |
|
|
|
6 |
|
|
SUBDIRS = include testsuite man
|
7 |
|
|
|
8 |
|
|
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
9 |
|
|
src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
|
10 |
|
|
src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
|
11 |
|
|
src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \
|
12 |
|
|
src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \
|
13 |
|
|
src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \
|
14 |
|
|
src/ia64/unix.S \
|
15 |
|
|
src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
|
16 |
|
|
src/mips/ffitarget.h \
|
17 |
|
|
src/m32r/ffi.c src/m32r/sysv.S src/m32r/ffitarget.h \
|
18 |
|
|
src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
|
19 |
|
|
src/powerpc/ffi.c src/powerpc/sysv.S \
|
20 |
|
|
src/powerpc/linux64.S src/powerpc/linux64_closure.S \
|
21 |
|
|
src/powerpc/ppc_closure.S src/powerpc/asm.h \
|
22 |
|
|
src/powerpc/aix.S src/powerpc/darwin.S \
|
23 |
|
|
src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
|
24 |
|
|
src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
|
25 |
|
|
src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
|
26 |
|
|
src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
|
27 |
|
|
src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
|
28 |
|
|
src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
|
29 |
|
|
src/sparc/ffi.c src/x86/darwin64.S \
|
30 |
|
|
src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
|
31 |
|
|
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
|
34 |
|
|
|
35 |
|
|
## ################################################################
|
36 |
|
|
|
37 |
|
|
##
|
38 |
|
|
## This section is for make and multilib madness.
|
39 |
|
|
##
|
40 |
|
|
|
41 |
|
|
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
42 |
|
|
# values defined in terms of make variables, as is the case for CC and
|
43 |
|
|
# friends when we are called from the top level Makefile.
|
44 |
|
|
AM_MAKEFLAGS = \
|
45 |
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
46 |
|
|
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
47 |
|
|
"CFLAGS=$(CFLAGS)" \
|
48 |
|
|
"CXXFLAGS=$(CXXFLAGS)" \
|
49 |
|
|
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
50 |
|
|
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
51 |
|
|
"INSTALL=$(INSTALL)" \
|
52 |
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
53 |
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
54 |
|
|
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
55 |
|
|
"JC1FLAGS=$(JC1FLAGS)" \
|
56 |
|
|
"LDFLAGS=$(LDFLAGS)" \
|
57 |
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
58 |
|
|
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
59 |
|
|
"MAKE=$(MAKE)" \
|
60 |
|
|
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
61 |
|
|
"PICFLAG=$(PICFLAG)" \
|
62 |
|
|
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
63 |
|
|
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
64 |
|
|
"SHELL=$(SHELL)" \
|
65 |
|
|
"exec_prefix=$(exec_prefix)" \
|
66 |
|
|
"infodir=$(infodir)" \
|
67 |
|
|
"libdir=$(libdir)" \
|
68 |
|
|
"mandir=$(mandir)" \
|
69 |
|
|
"prefix=$(prefix)" \
|
70 |
|
|
"AR=$(AR)" \
|
71 |
|
|
"AS=$(AS)" \
|
72 |
|
|
"CC=$(CC)" \
|
73 |
|
|
"CXX=$(CXX)" \
|
74 |
|
|
"LD=$(LD)" \
|
75 |
|
|
"NM=$(NM)" \
|
76 |
|
|
"RANLIB=$(RANLIB)" \
|
77 |
|
|
"DESTDIR=$(DESTDIR)"
|
78 |
|
|
|
79 |
|
|
# Subdir rules rely on $(FLAGS_TO_PASS)
|
80 |
|
|
FLAGS_TO_PASS = $(AM_MAKEFLAGS)
|
81 |
|
|
|
82 |
|
|
MAKEOVERRIDES=
|
83 |
|
|
|
84 |
|
|
toolexeclib_LTLIBRARIES = libffi.la
|
85 |
|
|
noinst_LTLIBRARIES = libffi_convenience.la
|
86 |
|
|
|
87 |
|
|
libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
|
88 |
|
|
src/raw_api.c src/java_raw_api.c src/closures.c
|
89 |
|
|
|
90 |
|
|
nodist_libffi_la_SOURCES =
|
91 |
|
|
|
92 |
|
|
if MIPS
|
93 |
|
|
nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
|
94 |
|
|
endif
|
95 |
|
|
if X86
|
96 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
|
97 |
|
|
endif
|
98 |
|
|
if X86_FREEBSD
|
99 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
|
100 |
|
|
endif
|
101 |
|
|
if X86_WIN32
|
102 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
|
103 |
|
|
endif
|
104 |
|
|
if X86_WIN64
|
105 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
|
106 |
|
|
endif
|
107 |
|
|
if X86_DARWIN
|
108 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
|
109 |
|
|
endif
|
110 |
|
|
if SPARC
|
111 |
|
|
nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
|
112 |
|
|
endif
|
113 |
|
|
if ALPHA
|
114 |
|
|
nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
|
115 |
|
|
endif
|
116 |
|
|
if IA64
|
117 |
|
|
nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
|
118 |
|
|
endif
|
119 |
|
|
if M32R
|
120 |
|
|
nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
|
121 |
|
|
endif
|
122 |
|
|
if M68K
|
123 |
|
|
nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
|
124 |
|
|
endif
|
125 |
|
|
if POWERPC
|
126 |
|
|
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
|
127 |
|
|
endif
|
128 |
|
|
if POWERPC_AIX
|
129 |
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
|
130 |
|
|
endif
|
131 |
|
|
if POWERPC_DARWIN
|
132 |
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
|
133 |
|
|
endif
|
134 |
|
|
if POWERPC_FREEBSD
|
135 |
|
|
nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
|
136 |
|
|
endif
|
137 |
|
|
if ARM
|
138 |
|
|
nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
|
139 |
|
|
endif
|
140 |
|
|
if AVR32
|
141 |
|
|
nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c
|
142 |
|
|
endif
|
143 |
|
|
if LIBFFI_CRIS
|
144 |
|
|
nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
|
145 |
|
|
endif
|
146 |
|
|
if FRV
|
147 |
|
|
nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
|
148 |
|
|
endif
|
149 |
|
|
if S390
|
150 |
|
|
nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
|
151 |
|
|
endif
|
152 |
|
|
if X86_64
|
153 |
|
|
nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
|
154 |
|
|
endif
|
155 |
|
|
if SH
|
156 |
|
|
nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
|
157 |
|
|
endif
|
158 |
|
|
if SH64
|
159 |
|
|
nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
|
160 |
|
|
endif
|
161 |
|
|
if PA_LINUX
|
162 |
|
|
nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
|
163 |
|
|
endif
|
164 |
|
|
if PA_HPUX
|
165 |
|
|
nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
|
166 |
|
|
endif
|
167 |
|
|
|
168 |
|
|
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
169 |
|
|
nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
|
170 |
|
|
|
171 |
|
|
AM_CFLAGS = -Wall -g -fexceptions
|
172 |
|
|
|
173 |
|
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
174 |
|
|
|
175 |
|
|
libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
176 |
|
|
|
177 |
|
|
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
178 |
|
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
179 |
|
|
|
180 |
|
|
# Multilib support. Automake should provide these on its own.
|
181 |
|
|
all-recursive: all-multi
|
182 |
|
|
install-recursive: install-multi
|
183 |
|
|
mostlyclean-recursive: mostlyclean-multi
|
184 |
|
|
clean-recursive: clean-multi
|
185 |
|
|
distclean-recursive: distclean-multi
|
186 |
|
|
maintainer-clean-recursive: maintainer-clean-multi
|