]>
Commit | Line | Data |
---|---|---|
63e5e3e0 AG |
1 | ## Process this with automake to create Makefile.in |
2 | ||
b85e31b9 | 3 | AUTOMAKE_OPTIONS = foreign subdir-objects |
4e70f25f | 4 | ACLOCAL_AMFLAGS = -I .. -I ../config |
63e5e3e0 | 5 | |
b7b857bb | 6 | SUBDIRS = include testsuite man |
bbf3057b | 7 | |
b4b575ce AG |
8 | EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \ |
9 | src/aarch64/ffi.c src/aarch64/ffitarget.h \ | |
10 | src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \ | |
11 | src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \ | |
12 | src/avr32/ffi.c src/avr32/sysv.S src/avr32/ffitarget.h \ | |
13 | src/cris/ffi.c src/cris/sysv.S src/cris/ffitarget.h \ | |
14 | src/ia64/ffi.c src/ia64/ffitarget.h src/ia64/ia64_flags.h \ | |
15 | src/ia64/unix.S src/mips/ffi.c src/mips/n32.S src/mips/o32.S \ | |
16 | src/mips/ffitarget.h src/m32r/ffi.c src/m32r/sysv.S \ | |
17 | src/m32r/ffitarget.h src/m68k/ffi.c src/m68k/sysv.S \ | |
e73d2479 AM |
18 | src/m68k/ffitarget.h \ |
19 | src/powerpc/ffi.c src/powerpc/ffi_powerpc.h \ | |
20 | src/powerpc/ffi_sysv.c src/powerpc/ffi_linux64.c \ | |
21 | src/powerpc/sysv.S src/powerpc/linux64.S \ | |
22 | src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S \ | |
23 | src/powerpc/asm.h src/powerpc/aix.S src/powerpc/darwin.S \ | |
b4b575ce AG |
24 | src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \ |
25 | src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \ | |
26 | src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \ | |
27 | src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h src/sh64/ffi.c \ | |
28 | src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S \ | |
29 | src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c \ | |
30 | src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S \ | |
31 | src/x86/win32.S src/x86/darwin.S src/x86/win64.S \ | |
32 | src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S \ | |
33 | src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c \ | |
34 | src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/bfin/ffi.c \ | |
35 | src/bfin/ffitarget.h src/bfin/sysv.S src/frv/eabi.S \ | |
36 | src/frv/ffitarget.h src/dlmalloc.c src/tile/ffi.c \ | |
37 | src/tile/ffitarget.h src/tile/tile.S libtool-version \ | |
38 | ChangeLog.libffi m4/libtool.m4 m4/lt~obsolete.m4 \ | |
39 | m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \ | |
40 | m4/ltversion.m4 src/arm/gentramp.sh src/debug.c msvcc.sh \ | |
41 | generate-ios-source-and-headers.py \ | |
42 | generate-osx-source-and-headers.py \ | |
43 | libffi.xcodeproj/project.pbxproj src/arm/trampoline.S | |
44 | ||
4e70f25f AS |
45 | # Automake Documentation: |
46 | # If your package has Texinfo files in many directories, you can use the | |
47 | # variable TEXINFO_TEX to tell Automake where to find the canonical | |
48 | # `texinfo.tex' for your package. The value of this variable should be | |
49 | # the relative path from the current `Makefile.am' to `texinfo.tex'. | |
50 | TEXINFO_TEX = ../gcc/doc/include/texinfo.tex | |
51 | ||
52 | # Defines info, dvi, pdf and html targets | |
53 | MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include | |
b4b575ce | 54 | info_TEXINFOS = doc/libffi.texi |
b7b857bb | 55 | |
4e70f25f AS |
56 | # AM_CONDITIONAL on configure option --generated-files-in-srcdir |
57 | if GENINSRC | |
58 | STAMP_GENINSRC = stamp-geninsrc | |
59 | else | |
60 | STAMP_GENINSRC = | |
61 | endif | |
62 | ||
63 | # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO]) | |
64 | if BUILD_INFO | |
65 | STAMP_BUILD_INFO = stamp-build-info | |
66 | else | |
67 | STAMP_BUILD_INFO = | |
68 | endif | |
69 | ||
70 | all-local: $(STAMP_GENINSRC) | |
71 | ||
72 | stamp-geninsrc: doc/libffi.info | |
73 | cp -p $(top_builddir)/doc/libffi.info $(srcdir)/doc/libffi.info | |
74 | @touch $@ | |
75 | ||
76 | doc/libffi.info: $(STAMP_BUILD_INFO) | |
77 | ||
78 | stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp) | |
79 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi | |
80 | @touch $@ | |
81 | ||
82 | ||
83 | CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) doc/libffi.info | |
84 | MAINTAINERCLEANFILES = $(srcdir)/doc/libffi.info | |
85 | ||
91bffbe9 JJ |
86 | ## ################################################################ |
87 | ||
88 | ## | |
89 | ## This section is for make and multilib madness. | |
90 | ## | |
91 | ||
92 | # Work around what appears to be a GNU make bug handling MAKEFLAGS | |
93 | # values defined in terms of make variables, as is the case for CC and | |
94 | # friends when we are called from the top level Makefile. | |
95 | AM_MAKEFLAGS = \ | |
96 | "AR_FLAGS=$(AR_FLAGS)" \ | |
97 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
98 | "CFLAGS=$(CFLAGS)" \ | |
99 | "CXXFLAGS=$(CXXFLAGS)" \ | |
100 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | |
101 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
102 | "INSTALL=$(INSTALL)" \ | |
103 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
104 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
105 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
106 | "JC1FLAGS=$(JC1FLAGS)" \ | |
107 | "LDFLAGS=$(LDFLAGS)" \ | |
108 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
109 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
110 | "MAKE=$(MAKE)" \ | |
111 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
112 | "PICFLAG=$(PICFLAG)" \ | |
113 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ | |
bbf3057b | 114 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
91bffbe9 JJ |
115 | "SHELL=$(SHELL)" \ |
116 | "exec_prefix=$(exec_prefix)" \ | |
117 | "infodir=$(infodir)" \ | |
118 | "libdir=$(libdir)" \ | |
f0ee5e3e | 119 | "mandir=$(mandir)" \ |
91bffbe9 JJ |
120 | "prefix=$(prefix)" \ |
121 | "AR=$(AR)" \ | |
122 | "AS=$(AS)" \ | |
123 | "CC=$(CC)" \ | |
124 | "CXX=$(CXX)" \ | |
125 | "LD=$(LD)" \ | |
91bffbe9 | 126 | "NM=$(NM)" \ |
91bffbe9 JJ |
127 | "RANLIB=$(RANLIB)" \ |
128 | "DESTDIR=$(DESTDIR)" | |
129 | ||
2c2a780f MP |
130 | # Subdir rules rely on $(FLAGS_TO_PASS) |
131 | FLAGS_TO_PASS = $(AM_MAKEFLAGS) | |
132 | ||
91bffbe9 JJ |
133 | MAKEOVERRIDES= |
134 | ||
63e5e3e0 | 135 | toolexeclib_LTLIBRARIES = libffi.la |
ce3b24a7 | 136 | noinst_LTLIBRARIES = libffi_convenience.la |
63e5e3e0 | 137 | |
b4b575ce | 138 | libffi_la_SOURCES = src/prep_cif.c src/types.c \ |
18fa3240 | 139 | src/raw_api.c src/java_raw_api.c src/closures.c |
63e5e3e0 | 140 | |
3ed8e5b6 | 141 | nodist_libffi_la_SOURCES = |
63e5e3e0 | 142 | |
b4b575ce AG |
143 | if FFI_DEBUG |
144 | nodist_libffi_la_SOURCES += src/debug.c | |
145 | endif | |
146 | ||
8d5c5e35 | 147 | if MIPS |
89d9d98a | 148 | nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S |
5be36a8f | 149 | endif |
b4b575ce AG |
150 | if BFIN |
151 | nodist_libffi_la_SOURCES += src/bfin/ffi.c src/bfin/sysv.S | |
152 | endif | |
63e5e3e0 | 153 | if X86 |
3ed8e5b6 | 154 | nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S |
63e5e3e0 | 155 | endif |
b7b857bb AH |
156 | if X86_FREEBSD |
157 | nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S | |
158 | endif | |
d6c4152a | 159 | if X86_WIN32 |
3ed8e5b6 | 160 | nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S |
d6c4152a | 161 | endif |
062b8279 AH |
162 | if X86_WIN64 |
163 | nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S | |
164 | endif | |
a3bd50cc | 165 | if X86_DARWIN |
f4f7486b | 166 | nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S |
a3bd50cc | 167 | endif |
63e5e3e0 | 168 | if SPARC |
3ed8e5b6 | 169 | nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S |
63e5e3e0 AG |
170 | endif |
171 | if ALPHA | |
3ed8e5b6 | 172 | nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S |
63e5e3e0 | 173 | endif |
dc5de370 | 174 | if IA64 |
3ed8e5b6 | 175 | nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S |
dc5de370 | 176 | endif |
a472e9d4 KI |
177 | if M32R |
178 | nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c | |
179 | endif | |
63e5e3e0 | 180 | if M68K |
3ed8e5b6 | 181 | nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S |
63e5e3e0 AG |
182 | endif |
183 | if POWERPC | |
e73d2479 | 184 | nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/ffi_sysv.c src/powerpc/ffi_linux64.c src/powerpc/sysv.S src/powerpc/ppc_closure.S src/powerpc/linux64.S src/powerpc/linux64_closure.S |
63e5e3e0 | 185 | endif |
2f4006f8 | 186 | if POWERPC_AIX |
3ed8e5b6 | 187 | nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S |
2f4006f8 | 188 | endif |
3c017635 | 189 | if POWERPC_DARWIN |
3ed8e5b6 | 190 | nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S |
3c017635 | 191 | endif |
97067642 | 192 | if POWERPC_FREEBSD |
e73d2479 | 193 | nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/ffi_sysv.c src/powerpc/sysv.S src/powerpc/ppc_closure.S |
97067642 | 194 | endif |
b4b575ce AG |
195 | if AARCH64 |
196 | nodist_libffi_la_SOURCES += src/aarch64/sysv.S src/aarch64/ffi.c | |
197 | endif | |
63e5e3e0 | 198 | if ARM |
3ed8e5b6 | 199 | nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c |
b4b575ce AG |
200 | if FFI_EXEC_TRAMPOLINE_TABLE |
201 | nodist_libffi_la_SOURCES += src/arm/trampoline.S | |
202 | endif | |
63e5e3e0 | 203 | endif |
124f60ab BS |
204 | if AVR32 |
205 | nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c | |
206 | endif | |
614348bb SP |
207 | if LIBFFI_CRIS |
208 | nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c | |
209 | endif | |
88d8c771 AG |
210 | if FRV |
211 | nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c | |
212 | endif | |
22bcf65c | 213 | if S390 |
3ed8e5b6 | 214 | nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c |
22bcf65c | 215 | endif |
c94974ca | 216 | if X86_64 |
3ed8e5b6 | 217 | nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S |
c94974ca | 218 | endif |
ddebdfeb | 219 | if SH |
3ed8e5b6 | 220 | nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c |
e860ed6d KK |
221 | endif |
222 | if SH64 | |
3ed8e5b6 | 223 | nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c |
ddebdfeb | 224 | endif |
e6c300ef | 225 | if PA_LINUX |
d65a810f MK |
226 | nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c |
227 | endif | |
e6c300ef JDA |
228 | if PA_HPUX |
229 | nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c | |
230 | endif | |
b4b575ce AG |
231 | if TILE |
232 | nodist_libffi_la_SOURCES += src/tile/tile.S src/tile/ffi.c | |
233 | endif | |
63e5e3e0 | 234 | |
3ed8e5b6 AT |
235 | libffi_convenience_la_SOURCES = $(libffi_la_SOURCES) |
236 | nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES) | |
237 | ||
bbf3057b | 238 | AM_CFLAGS = -Wall -g -fexceptions |
248c0b69 | 239 | |
7afa92c5 JB |
240 | LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) |
241 | ||
a761df3d | 242 | libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS) |
63e5e3e0 | 243 | |
076e5443 PB |
244 | AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src |
245 | AM_CCASFLAGS = $(AM_CPPFLAGS) | |
8665824c | 246 | |
0eb5e2b9 AO |
247 | # Multilib support. Automake should provide these on its own. |
248 | all-recursive: all-multi | |
249 | install-recursive: install-multi | |
250 | mostlyclean-recursive: mostlyclean-multi | |
251 | clean-recursive: clean-multi | |
252 | distclean-recursive: distclean-multi | |
253 | maintainer-clean-recursive: maintainer-clean-multi |