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