re PR tree-optimization/33614 (ICE on semi-constant vector CONSTRUCTORs)
[official-gcc.git] / libffi / Makefile.am
bloba9962686bcf7bc02d034b83168a66c33a41cba6d
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
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/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 \
29         src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
30         src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
31         src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
32         src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h
34 ## ################################################################
37 ## This section is for make and multilib madness.
40 # Work around what appears to be a GNU make bug handling MAKEFLAGS
41 # values defined in terms of make variables, as is the case for CC and
42 # friends when we are called from the top level Makefile.
43 AM_MAKEFLAGS = \
44         "AR_FLAGS=$(AR_FLAGS)" \
45         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
46         "CFLAGS=$(CFLAGS)" \
47         "CXXFLAGS=$(CXXFLAGS)" \
48         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
49         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
50         "INSTALL=$(INSTALL)" \
51         "INSTALL_DATA=$(INSTALL_DATA)" \
52         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
53         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
54         "JC1FLAGS=$(JC1FLAGS)" \
55         "LDFLAGS=$(LDFLAGS)" \
56         "LIBCFLAGS=$(LIBCFLAGS)" \
57         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
58         "MAKE=$(MAKE)" \
59         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
60         "PICFLAG=$(PICFLAG)" \
61         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
62         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
63         "SHELL=$(SHELL)" \
64         "exec_prefix=$(exec_prefix)" \
65         "infodir=$(infodir)" \
66         "libdir=$(libdir)" \
67         "prefix=$(prefix)" \
68         "AR=$(AR)" \
69         "AS=$(AS)" \
70         "CC=$(CC)" \
71         "CXX=$(CXX)" \
72         "LD=$(LD)" \
73         "NM=$(NM)" \
74         "RANLIB=$(RANLIB)" \
75         "DESTDIR=$(DESTDIR)"
77 MAKEOVERRIDES=
79 toolexeclib_LTLIBRARIES = libffi.la
80 noinst_LTLIBRARIES = libffi_convenience.la
82 libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
83                 src/raw_api.c src/java_raw_api.c src/closures.c
85 nodist_libffi_la_SOURCES =
87 if MIPS
88 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
89 endif
90 if X86
91 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
92 endif
93 if X86_WIN32
94 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
95 endif
96 if X86_DARWIN
97 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
98 endif
99 if SPARC
100 nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
101 endif
102 if ALPHA
103 nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
104 endif
105 if IA64
106 nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
107 endif
108 if M32R
109 nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
110 endif
111 if M68K
112 nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
113 endif
114 if POWERPC
115 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
116 endif
117 if POWERPC_AIX
118 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
119 endif
120 if POWERPC_DARWIN
121 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
122 endif
123 if POWERPC_FREEBSD
124 nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
125 endif
126 if ARM
127 nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
128 endif
129 if LIBFFI_CRIS
130 nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
131 endif
132 if FRV
133 nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
134 endif
135 if S390
136 nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
137 endif
138 if X86_64
139 nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
140 endif
141 if SH
142 nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
143 endif
144 if SH64
145 nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
146 endif
147 if PA_LINUX
148 nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
149 endif
150 if PA_HPUX
151 nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
152 endif
154 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
155 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
157 AM_CFLAGS = -Wall -g -fexceptions
159 libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
161 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
162 AM_CCASFLAGS = $(AM_CPPFLAGS)
164 # No install-html or install-pdf support in automake yet
165 .PHONY: install-html install-pdf
166 install-html:
167 install-pdf:
169 # Multilib support.  Automake should provide these on its own.
170 all-recursive: all-multi
171 install-recursive: install-multi
172 mostlyclean-recursive: mostlyclean-multi
173 clean-recursive: clean-multi
174 distclean-recursive: distclean-multi
175 maintainer-clean-recursive: maintainer-clean-multi