Refresh config.guess and config.sub
[libffi.git] / .pc / update-disty / Makefile.am
1 ## Process this with automake to create Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign subdir-objects
4
5 SUBDIRS = include testsuite man
6
7 EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
8         src/alpha/ffi.c src/alpha/osf.S src/alpha/ffitarget.h \
9         src/arm/ffi.c src/arm/sysv.S src/arm/ffitarget.h \
10         src/avr32/ffi.c src/avr32/sysv.S src/avr32/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 src/mips/ffi.c src/mips/n32.S src/mips/o32.S \
14         src/mips/ffitarget.h src/m32r/ffi.c src/m32r/sysv.S \
15         src/m32r/ffitarget.h src/m68k/ffi.c src/m68k/sysv.S \
16         src/m68k/ffitarget.h 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 src/powerpc/aix.S \
19         src/powerpc/darwin.S src/powerpc/aix_closure.S \
20         src/powerpc/darwin_closure.S src/powerpc/ffi_darwin.c \
21         src/powerpc/ffitarget.h src/s390/ffi.c src/s390/sysv.S \
22         src/s390/ffitarget.h src/sh/ffi.c src/sh/sysv.S \
23         src/sh/ffitarget.h src/sh64/ffi.c src/sh64/sysv.S \
24         src/sh64/ffitarget.h src/sparc/v8.S src/sparc/v9.S \
25         src/sparc/ffitarget.h src/sparc/ffi.c src/x86/darwin64.S \
26         src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
27         src/x86/win64.S src/x86/freebsd.S src/x86/ffi64.c \
28         src/x86/unix64.S src/x86/ffitarget.h src/pa/ffitarget.h \
29         src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S src/frv/ffi.c \
30         src/frv/eabi.S src/frv/ffitarget.h src/dlmalloc.c \
31         src/moxie/ffi.c src/moxie/eabi.S libtool-version \
32         ChangeLog.libffi m4/libtool.m4 m4/lt~obsolete.m4 \
33         m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
34         m4/ltversion.m4 src/arm/gentramp.sh src/debug.c \
35         msvcc.sh generate-ios-source-and-headers.py \
36         libffi.xcodeproj/project.pbxproj \
37         src/arm/trampoline.S
38
39 info_TEXINFOS = doc/libffi.texi
40
41 ## ################################################################
42
43 ##
44 ## This section is for make and multilib madness.
45 ##
46
47 # Work around what appears to be a GNU make bug handling MAKEFLAGS
48 # values defined in terms of make variables, as is the case for CC and
49 # friends when we are called from the top level Makefile.
50 AM_MAKEFLAGS = \
51         "AR_FLAGS=$(AR_FLAGS)" \
52         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
53         "CFLAGS=$(CFLAGS)" \
54         "CXXFLAGS=$(CXXFLAGS)" \
55         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
56         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
57         "INSTALL=$(INSTALL)" \
58         "INSTALL_DATA=$(INSTALL_DATA)" \
59         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
60         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
61         "JC1FLAGS=$(JC1FLAGS)" \
62         "LDFLAGS=$(LDFLAGS)" \
63         "LIBCFLAGS=$(LIBCFLAGS)" \
64         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
65         "MAKE=$(MAKE)" \
66         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
67         "PICFLAG=$(PICFLAG)" \
68         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
69         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
70         "SHELL=$(SHELL)" \
71         "exec_prefix=$(exec_prefix)" \
72         "infodir=$(infodir)" \
73         "libdir=$(libdir)" \
74         "mandir=$(mandir)" \
75         "prefix=$(prefix)" \
76         "AR=$(AR)" \
77         "AS=$(AS)" \
78         "CC=$(CC)" \
79         "CXX=$(CXX)" \
80         "LD=$(LD)" \
81         "NM=$(NM)" \
82         "RANLIB=$(RANLIB)" \
83         "DESTDIR=$(DESTDIR)"
84
85 MAKEOVERRIDES=
86
87 ACLOCAL_AMFLAGS=$(ACLOCAL_AMFLAGS) -I m4
88
89 lib_LTLIBRARIES = libffi.la
90 noinst_LTLIBRARIES = libffi_convenience.la
91
92 libffi_la_SOURCES = src/prep_cif.c src/types.c \
93                 src/raw_api.c src/java_raw_api.c src/closures.c
94
95 pkgconfigdir = $(libdir)/pkgconfig
96 pkgconfig_DATA = libffi.pc
97
98 nodist_libffi_la_SOURCES =
99
100 if FFI_DEBUG
101 nodist_libffi_la_SOURCES += src/debug.c
102 endif
103
104 if MIPS
105 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
106 endif
107 if X86
108 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
109 endif
110 if X86_FREEBSD
111 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/freebsd.S
112 endif
113 if X86_WIN32
114 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
115 endif
116 if X86_WIN64
117 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win64.S
118 endif
119 if X86_DARWIN
120 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/darwin.S src/x86/ffi64.c src/x86/darwin64.S
121 endif
122 if SPARC
123 nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
124 endif
125 if ALPHA
126 nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
127 endif
128 if IA64
129 nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
130 endif
131 if M32R
132 nodist_libffi_la_SOURCES += src/m32r/sysv.S src/m32r/ffi.c
133 endif
134 if M68K
135 nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
136 endif
137 if POWERPC
138 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
139 endif
140 if POWERPC_AIX
141 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
142 endif
143 if POWERPC_DARWIN
144 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
145 endif
146 if POWERPC_FREEBSD
147 nodist_libffi_la_SOURCES += src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
148 endif
149 if ARM
150 nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
151 if FFI_EXEC_TRAMPOLINE_TABLE
152 nodist_libffi_la_SOURCES += src/arm/trampoline.S
153 endif
154 endif
155 if AVR32
156 nodist_libffi_la_SOURCES += src/avr32/sysv.S src/avr32/ffi.c
157 endif
158 if LIBFFI_CRIS
159 nodist_libffi_la_SOURCES += src/cris/sysv.S src/cris/ffi.c
160 endif
161 if FRV
162 nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
163 endif
164 if MOXIE
165 nodist_libffi_la_SOURCES += src/moxie/eabi.S src/moxie/ffi.c
166 endif
167 if S390
168 nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
169 endif
170 if X86_64
171 nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
172 endif
173 if SH
174 nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
175 endif
176 if SH64
177 nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
178 endif
179 if PA_LINUX
180 nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
181 endif
182 if PA_HPUX
183 nodist_libffi_la_SOURCES += src/pa/hpux32.S src/pa/ffi.c
184 endif
185
186 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
187 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
188
189 AM_CFLAGS = -g
190 if FFI_DEBUG
191 # Build debug. Define FFI_DEBUG on the commandline so that, when building with
192 # MSVC, it can link against the debug CRT.
193 AM_CFLAGS += -DFFI_DEBUG
194 endif
195
196 libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
197
198 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src -DFFI_BUILDING
199 AM_CCASFLAGS = $(AM_CPPFLAGS) -g
200
201 # No install-html or install-pdf support in automake yet
202 .PHONY: install-html install-pdf
203 install-html:
204 install-pdf: