* ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
[official-gcc.git] / libffi / Makefile.am
blob287f28e8839382423aae1ca5ce7032e71fd47890
1 ## Process this with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = foreign subdir-objects
4 ACLOCAL_AMFLAGS = -I .. -I ../config
6 SUBDIRS = include testsuite man
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            \
18          src/m68k/ffitarget.h 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 src/sh64/ffi.c    \
26         src/sh64/sysv.S src/sh64/ffitarget.h src/sparc/v8.S             \
27         src/sparc/v9.S src/sparc/ffitarget.h src/sparc/ffi.c            \
28         src/x86/darwin64.S src/x86/ffi.c src/x86/sysv.S                 \
29         src/x86/win32.S src/x86/darwin.S src/x86/win64.S                \
30         src/x86/freebsd.S src/x86/ffi64.c src/x86/unix64.S              \
31         src/x86/ffitarget.h src/pa/ffitarget.h src/pa/ffi.c             \
32         src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c src/bfin/ffi.c     \
33         src/bfin/ffitarget.h src/bfin/sysv.S src/frv/eabi.S             \
34         src/frv/ffitarget.h src/dlmalloc.c src/tile/ffi.c               \
35         src/tile/ffitarget.h src/tile/tile.S libtool-version            \
36          ChangeLog.libffi m4/libtool.m4 m4/lt~obsolete.m4               \
37          m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4                  \
38          m4/ltversion.m4 src/arm/gentramp.sh src/debug.c msvcc.sh       \
39         generate-ios-source-and-headers.py                              \
40          generate-osx-source-and-headers.py                             \
41          libffi.xcodeproj/project.pbxproj src/arm/trampoline.S
43 # Automake Documentation:
44 # If your package has Texinfo files in many directories, you can use the
45 # variable TEXINFO_TEX to tell Automake where to find the canonical
46 # `texinfo.tex' for your package. The value of this variable should be
47 # the relative path from the current `Makefile.am' to `texinfo.tex'.
48 TEXINFO_TEX   = ../gcc/doc/include/texinfo.tex
50 # Defines info, dvi, pdf and html targets
51 MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
52 info_TEXINFOS = doc/libffi.texi
54 # AM_CONDITIONAL on configure option --generated-files-in-srcdir
55 if GENINSRC
56 STAMP_GENINSRC = stamp-geninsrc
57 else
58 STAMP_GENINSRC =
59 endif
61 # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
62 if BUILD_INFO
63 STAMP_BUILD_INFO = stamp-build-info
64 else
65 STAMP_BUILD_INFO =
66 endif
68 all-local: $(STAMP_GENINSRC)
70 stamp-geninsrc: doc/libffi.info
71         cp -p $(top_builddir)/doc/libffi.info $(srcdir)/doc/libffi.info
72         @touch $@
74 doc/libffi.info: $(STAMP_BUILD_INFO)
76 stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp)
77         $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi
78         @touch $@
81 CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) doc/libffi.info
82 MAINTAINERCLEANFILES = $(srcdir)/doc/libffi.info
84 ## ################################################################
87 ## This section is for make and multilib madness.
90 # Work around what appears to be a GNU make bug handling MAKEFLAGS
91 # values defined in terms of make variables, as is the case for CC and
92 # friends when we are called from the top level Makefile.
93 AM_MAKEFLAGS = \
94         "AR_FLAGS=$(AR_FLAGS)" \
95         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
96         "CFLAGS=$(CFLAGS)" \
97         "CXXFLAGS=$(CXXFLAGS)" \
98         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
99         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
100         "INSTALL=$(INSTALL)" \
101         "INSTALL_DATA=$(INSTALL_DATA)" \
102         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
103         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
104         "JC1FLAGS=$(JC1FLAGS)" \
105         "LDFLAGS=$(LDFLAGS)" \
106         "LIBCFLAGS=$(LIBCFLAGS)" \
107         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
108         "MAKE=$(MAKE)" \
109         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
110         "PICFLAG=$(PICFLAG)" \
111         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
112         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
113         "SHELL=$(SHELL)" \
114         "exec_prefix=$(exec_prefix)" \
115         "infodir=$(infodir)" \
116         "libdir=$(libdir)" \
117         "mandir=$(mandir)" \
118         "prefix=$(prefix)" \
119         "AR=$(AR)" \
120         "AS=$(AS)" \
121         "CC=$(CC)" \
122         "CXX=$(CXX)" \
123         "LD=$(LD)" \
124         "NM=$(NM)" \
125         "RANLIB=$(RANLIB)" \
126         "DESTDIR=$(DESTDIR)"
128 # Subdir rules rely on $(FLAGS_TO_PASS)
129 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
131 MAKEOVERRIDES=
133 toolexeclib_LTLIBRARIES = libffi.la
134 noinst_LTLIBRARIES = libffi_convenience.la
136 libffi_la_SOURCES = src/prep_cif.c src/types.c \
137                 src/raw_api.c src/java_raw_api.c src/closures.c
139 nodist_libffi_la_SOURCES =
141 if FFI_DEBUG
142 nodist_libffi_la_SOURCES += src/debug.c
143 endif
145 if MIPS
146 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
147 endif
148 if BFIN
149 nodist_libffi_la_SOURCES += src/bfin/ffi.c src/bfin/sysv.S
150 endif
151 if X86
152 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
153 endif
154 if X86_FREEBSD
155 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
156 endif
157 if X86_WIN32
158 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
159 endif
160 if X86_WIN64
161 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
162 endif
163 if X86_DARWIN
164 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
165 endif
166 if SPARC
167 nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
168 endif
169 if ALPHA
170 nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
171 endif
172 if IA64
173 nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
174 endif
175 if M32R
176 nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
177 endif
178 if M68K
179 nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
180 endif
181 if POWERPC
182 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
183 endif
184 if POWERPC_AIX
185 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
186 endif
187 if POWERPC_DARWIN
188 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
189 endif
190 if POWERPC_FREEBSD
191 nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
192 endif
193 if AARCH64
194 nodist_libffi_la_SOURCES += src/aarch64/sysv.S src/aarch64/ffi.c
195 endif
196 if ARM
197 nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
198 if FFI_EXEC_TRAMPOLINE_TABLE
199 nodist_libffi_la_SOURCES += src/arm/trampoline.S
200 endif
201 endif
202 if AVR32
203 nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c
204 endif
205 if LIBFFI_CRIS
206 nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
207 endif
208 if FRV
209 nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
210 endif
211 if S390
212 nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
213 endif
214 if X86_64
215 nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
216 endif
217 if SH
218 nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
219 endif
220 if SH64
221 nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
222 endif
223 if PA_LINUX
224 nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
225 endif
226 if PA_HPUX
227 nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
228 endif
229 if TILE
230 nodist_libffi_la_SOURCES += src/tile/tile.S src/tile/ffi.c
231 endif
233 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
234 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
236 AM_CFLAGS = -Wall -g -fexceptions
238 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
240 libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
242 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
243 AM_CCASFLAGS = $(AM_CPPFLAGS)
245 # Multilib support.  Automake should provide these on its own.
246 all-recursive: all-multi
247 install-recursive: install-multi
248 mostlyclean-recursive: mostlyclean-multi
249 clean-recursive: clean-multi
250 distclean-recursive: distclean-multi
251 maintainer-clean-recursive: maintainer-clean-multi