* config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
[official-gcc.git] / libffi / Makefile.am
blob6195d89859aed98855b7d20cbd006c547077e5c8
1 ## Process this with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
5 SUBDIRS = include testsuite
7 EXTRA_DIST = LICENSE ChangeLog.v1 \
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/mips/ffi.c src/mips/n32.S src/mips/o32.S \
11         src/mips/ffitarget.h \
12         src/m68k/ffi.c src/m68k/sysv.S src/m68k/ffitarget.h \
13         src/powerpc/ffi.c src/powerpc/sysv.S \
14         src/powerpc/linux64.S src/powerpc/linux64_closure.S \
15         src/powerpc/ppc_closure.S src/powerpc/asm.h \
16         src/powerpc/aix.S src/powerpc/darwin.S \
17         src/powerpc/aix_closure.S src/powerpc/darwin_closure.S \
18         src/powerpc/ffi_darwin.c src/powerpc/ffitarget.h \
19         src/s390/ffi.c src/s390/sysv.S src/s390/ffitarget.h \
20         src/sh/ffi.c src/sh/sysv.S src/sh/ffitarget.h \
21         src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
22         src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
23         src/sparc/ffi.c \
24         src/x86/ffi.c src/x86/sysv.S src/x86/win32.S \
25         src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
26         src/pa/ffi.c src/pa/linux.S src/frv/eabi.S src/frv/ffitarget.h
28 ## ################################################################
31 ## This section is for make and multilib madness.
34 # Work around what appears to be a GNU make bug handling MAKEFLAGS
35 # values defined in terms of make variables, as is the case for CC and
36 # friends when we are called from the top level Makefile.
37 AM_MAKEFLAGS = \
38         "AR_FLAGS=$(AR_FLAGS)" \
39         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
40         "CFLAGS=$(CFLAGS)" \
41         "CXXFLAGS=$(CXXFLAGS)" \
42         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
43         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
44         "INSTALL=$(INSTALL)" \
45         "INSTALL_DATA=$(INSTALL_DATA)" \
46         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
47         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
48         "JC1FLAGS=$(JC1FLAGS)" \
49         "LDFLAGS=$(LDFLAGS)" \
50         "LIBCFLAGS=$(LIBCFLAGS)" \
51         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
52         "MAKE=$(MAKE)" \
53         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
54         "PICFLAG=$(PICFLAG)" \
55         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
56         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
57         "SHELL=$(SHELL)" \
58         "exec_prefix=$(exec_prefix)" \
59         "infodir=$(infodir)" \
60         "libdir=$(libdir)" \
61         "prefix=$(prefix)" \
62         "AR=$(AR)" \
63         "AS=$(AS)" \
64         "CC=$(CC)" \
65         "CXX=$(CXX)" \
66         "LD=$(LD)" \
67         "LIBCFLAGS=$(LIBCFLAGS)" \
68         "NM=$(NM)" \
69         "PICFLAG=$(PICFLAG)" \
70         "RANLIB=$(RANLIB)" \
71         "DESTDIR=$(DESTDIR)"
73 MAKEOVERRIDES=
75 toolexeclib_LTLIBRARIES = libffi.la
76 noinst_LTLIBRARIES = libffi_convenience.la
78 libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
79                 src/raw_api.c src/java_raw_api.c
81 nodist_libffi_la_SOURCES =
83 if MIPS_IRIX
84 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
85 endif
86 if MIPS_LINUX
87 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S
88 endif
89 if X86
90 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
91 endif
92 if X86_WIN32
93 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
94 endif
95 if SPARC
96 nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
97 endif
98 if ALPHA
99 nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
100 endif
101 if IA64
102 nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
103 endif
104 if M68K
105 nodist_libffi_la_SOURCES += src/m68k/ffi.c src/m68k/sysv.S
106 endif
107 if POWERPC
108 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
109 endif
110 if POWERPC_AIX
111 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closure.S
112 endif
113 if POWERPC_DARWIN
114 nodist_libffi_la_SOURCES += src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
115 endif
116 if ARM
117 nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
118 endif
119 if FRV
120 nodist_libffi_la_SOURCES += src/frv/eabi.S src/frv/ffi.c
121 endif
122 if S390
123 nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
124 endif
125 if X86_64
126 nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
127 endif
128 if SH
129 nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
130 endif
131 if SH64
132 nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
133 endif
134 if PA
135 nodist_libffi_la_SOURCES += src/pa/linux.S src/pa/ffi.c
136 endif
138 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
139 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
141 AM_CFLAGS = -Wall -g -fexceptions
143 libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
145 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
146 AM_CCASFLAGS = $(AM_CPPFLAGS)