Daily bump.
[official-gcc.git] / libffi / Makefile.am
blobaf98000cc549aee0ef6d5c0bdc38ff9bc25ff3af
1 ## Process this with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = foreign subdir-objects
5 ACLOCAL_AMFLAGS = -I .. -I ../config
7 SUBDIRS = include testsuite man
9 EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj                      \
10         ChangeLog.libffi ChangeLog.libffi-3.1                           \
11         m4/libtool.m4 m4/lt~obsolete.m4                                 \
12          m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4                  \
13          m4/ltversion.m4 src/debug.c msvcc.sh                           \
14         generate-darwin-source-and-headers.py                           \
15         libffi.xcodeproj/project.pbxproj                                \
16         libtool-ldflags
18 # Automake Documentation:
19 # If your package has Texinfo files in many directories, you can use the
20 # variable TEXINFO_TEX to tell Automake where to find the canonical
21 # `texinfo.tex' for your package. The value of this variable should be
22 # the relative path from the current `Makefile.am' to `texinfo.tex'.
23 TEXINFO_TEX   = ../gcc/doc/include/texinfo.tex
25 # Defines info, dvi, pdf and html targets
26 MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
27 info_TEXINFOS = doc/libffi.texi
29 # AM_CONDITIONAL on configure option --generated-files-in-srcdir
30 if GENINSRC
31 STAMP_GENINSRC = stamp-geninsrc
32 else
33 STAMP_GENINSRC =
34 endif
36 # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
37 if BUILD_INFO
38 STAMP_BUILD_INFO = stamp-build-info
39 else
40 STAMP_BUILD_INFO =
41 endif
43 all-local: $(STAMP_GENINSRC)
45 stamp-geninsrc: doc/libffi.info
46         cp -p $(top_builddir)/doc/libffi.info $(srcdir)/doc/libffi.info
47         @touch $@
49 doc/libffi.info: $(STAMP_BUILD_INFO)
51 stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp)
52         $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi
53         @touch $@
55 CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) doc/libffi.info
56 MAINTAINERCLEANFILES = $(srcdir)/doc/libffi.info
58 ## ################################################################
61 ## This section is for make and multilib madness.
64 # Work around what appears to be a GNU make bug handling MAKEFLAGS
65 # values defined in terms of make variables, as is the case for CC and
66 # friends when we are called from the top level Makefile.
67 AM_MAKEFLAGS = \
68         "AR_FLAGS=$(AR_FLAGS)" \
69         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
70         "CFLAGS=$(CFLAGS)" \
71         "CXXFLAGS=$(CXXFLAGS)" \
72         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
73         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
74         "INSTALL=$(INSTALL)" \
75         "INSTALL_DATA=$(INSTALL_DATA)" \
76         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
77         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
78         "JC1FLAGS=$(JC1FLAGS)" \
79         "LDFLAGS=$(LDFLAGS)" \
80         "LIBCFLAGS=$(LIBCFLAGS)" \
81         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
82         "MAKE=$(MAKE)" \
83         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
84         "PICFLAG=$(PICFLAG)" \
85         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
86         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
87         "SHELL=$(SHELL)" \
88         "exec_prefix=$(exec_prefix)" \
89         "infodir=$(infodir)" \
90         "libdir=$(libdir)" \
91         "mandir=$(mandir)" \
92         "prefix=$(prefix)" \
93         "AR=$(AR)" \
94         "AS=$(AS)" \
95         "CC=$(CC)" \
96         "CXX=$(CXX)" \
97         "LD=$(LD)" \
98         "NM=$(NM)" \
99         "RANLIB=$(RANLIB)" \
100         "DESTDIR=$(DESTDIR)"
102 # Subdir rules rely on $(FLAGS_TO_PASS)
103 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
105 MAKEOVERRIDES=
107 pkgconfigdir = $(libdir)/pkgconfig
108 pkgconfig_DATA = libffi.pc
110 toolexeclib_LTLIBRARIES = libffi.la
111 noinst_LTLIBRARIES = libffi_convenience.la
113 libffi_la_SOURCES = src/prep_cif.c src/types.c \
114                 src/raw_api.c src/java_raw_api.c src/closures.c
116 if FFI_DEBUG
117 libffi_la_SOURCES += src/debug.c
118 endif
120 noinst_HEADERS = \
121         src/aarch64/ffitarget.h src/aarch64/internal.h                  \
122         src/alpha/ffitarget.h src/alpha/internal.h                      \
123         src/arc/ffitarget.h                                             \
124         src/arm/ffitarget.h src/arm/internal.h                          \
125         src/avr32/ffitarget.h                                           \
126         src/bfin/ffitarget.h                                            \
127         src/cris/ffitarget.h                                            \
128         src/frv/ffitarget.h                                             \
129         src/ia64/ffitarget.h src/ia64/ia64_flags.h                      \
130         src/m32r/ffitarget.h                                            \
131         src/m68k/ffitarget.h                                            \
132         src/m88k/ffitarget.h                                            \
133         src/metag/ffitarget.h                                           \
134         src/microblaze/ffitarget.h                                      \
135         src/mips/ffitarget.h                                            \
136         src/moxie/ffitarget.h                                           \
137         src/nios2/ffitarget.h                                           \
138         src/or1k/ffitarget.h                                            \
139         src/pa/ffitarget.h                                              \
140         src/powerpc/ffitarget.h src/powerpc/asm.h src/powerpc/ffi_powerpc.h \
141         src/s390/ffitarget.h                                            \
142         src/sh/ffitarget.h                                              \
143         src/sh64/ffitarget.h                                            \
144         src/sparc/ffitarget.h src/sparc/internal.h                      \
145         src/tile/ffitarget.h                                            \
146         src/vax/ffitarget.h                                             \
147         src/x86/ffitarget.h src/x86/internal.h src/x86/internal64.h     \
148         src/xtensa/ffitarget.h                                          \
149         src/dlmalloc.c
151 EXTRA_libffi_la_SOURCES = \
152         src/aarch64/ffi.c src/aarch64/sysv.S                            \
153         src/alpha/ffi.c src/alpha/osf.S                                 \
154         src/arc/ffi.c src/arc/arcompact.S                               \
155         src/arm/ffi.c src/arm/sysv.S                                    \
156         src/avr32/ffi.c src/avr32/sysv.S                                \
157         src/bfin/ffi.c src/bfin/sysv.S                                  \
158         src/cris/ffi.c src/cris/sysv.S                                  \
159         src/frv/ffi.c src/frv/eabi.S                                    \
160         src/ia64/ffi.c src/ia64/unix.S                                  \
161         src/m32r/ffi.c src/m32r/sysv.S                                  \
162         src/m68k/ffi.c src/m68k/sysv.S                                  \
163         src/m88k/ffi.c src/m88k/obsd.S                                  \
164         src/metag/ffi.c src/metag/sysv.S                                \
165         src/microblaze/ffi.c src/microblaze/sysv.S                      \
166         src/mips/ffi.c src/mips/o32.S src/mips/n32.S                    \
167         src/moxie/ffi.c src/moxie/eabi.S                                \
168         src/nios2/ffi.c src/nios2/sysv.S                                \
169         src/or1k/ffi.c src/or1k/sysv.S                                  \
170         src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S                     \
171         src/powerpc/ffi.c src/powerpc/ffi_sysv.c src/powerpc/ffi_linux64.c \
172          src/powerpc/sysv.S src/powerpc/linux64.S                       \
173          src/powerpc/linux64_closure.S src/powerpc/ppc_closure.S        \
174          src/powerpc/aix.S src/powerpc/darwin.S src/powerpc/aix_closure.S \
175          src/powerpc/darwin_closure.S src/powerpc/ffi_darwin.c          \
176         src/s390/ffi.c src/s390/sysv.S                                  \
177         src/sh/ffi.c src/sh/sysv.S                                      \
178         src/sh64/ffi.c src/sh64/sysv.S                                  \
179         src/sparc/ffi.c src/sparc/ffi64.c src/sparc/v8.S src/sparc/v9.S \
180         src/tile/ffi.c src/tile/tile.S                                  \
181         src/vax/ffi.c src/vax/elfbsd.S                                  \
182         src/x86/ffi.c src/x86/sysv.S                                    \
183          src/x86/ffiw64.c src/x86/win64.S                               \
184          src/x86/ffi64.c src/x86/unix64.S                               \
185          src/x86/darwin64.S src/x86/darwin.S                            \
186          src/x86/darwin64_c.c src/x86/darwin_c.c                        \
187         src/xtensa/ffi.c src/xtensa/sysv.S
189 TARGET_OBJ = @TARGET_OBJ@
190 libffi_la_LIBADD = $(TARGET_OBJ)
191 libffi_la_DEPENDENCIES = $(TARGET_OBJ)
193 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
194 EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
195 libffi_convenience_la_LIBADD = $(libffi_la_LIBADD)
196 libffi_convenience_la_DEPENDENCIES = $(libffi_la_DEPENDENCIES)
197 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
199 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
201 AM_CFLAGS = -Wall -g -fexceptions
202 if FFI_DEBUG
203 # Build debug. Define FFI_DEBUG on the commandline so that, when building with
204 # MSVC, it can link against the debug CRT.
205 AM_CFLAGS += -DFFI_DEBUG
206 endif
208 libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
210 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
211 AM_CCASFLAGS = $(AM_CPPFLAGS)
213 # Multilib support.  Automake should provide these on its own.
214 all-recursive: all-multi
215 install-recursive: install-multi
216 mostlyclean-recursive: mostlyclean-multi
217 clean-recursive: clean-multi
218 distclean-recursive: distclean-multi
219 maintainer-clean-recursive: maintainer-clean-multi