OSDN Git Service

7926109d2f80ba9af858aaa7d4779daf8f026e14
[pf3gnuchains/gcc-fork.git] / libffi / Makefile.am
1 ## Process this with automake to create Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
4
5 SUBDIRS = include testsuite
6
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
27 ## ################################################################
28
29 ##
30 ## This section is for make and multilib madness.
31 ##
32
33 # Work around what appears to be a GNU make bug handling MAKEFLAGS
34 # values defined in terms of make variables, as is the case for CC and
35 # friends when we are called from the top level Makefile.
36 AM_MAKEFLAGS = \
37         "AR_FLAGS=$(AR_FLAGS)" \
38         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
39         "CFLAGS=$(CFLAGS)" \
40         "CXXFLAGS=$(CXXFLAGS)" \
41         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
42         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
43         "INSTALL=$(INSTALL)" \
44         "INSTALL_DATA=$(INSTALL_DATA)" \
45         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
46         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
47         "JC1FLAGS=$(JC1FLAGS)" \
48         "LDFLAGS=$(LDFLAGS)" \
49         "LIBCFLAGS=$(LIBCFLAGS)" \
50         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
51         "MAKE=$(MAKE)" \
52         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
53         "PICFLAG=$(PICFLAG)" \
54         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
55         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
56         "SHELL=$(SHELL)" \
57         "exec_prefix=$(exec_prefix)" \
58         "infodir=$(infodir)" \
59         "libdir=$(libdir)" \
60         "prefix=$(prefix)" \
61         "AR=$(AR)" \
62         "AS=$(AS)" \
63         "CC=$(CC)" \
64         "CXX=$(CXX)" \
65         "LD=$(LD)" \
66         "LIBCFLAGS=$(LIBCFLAGS)" \
67         "NM=$(NM)" \
68         "PICFLAG=$(PICFLAG)" \
69         "RANLIB=$(RANLIB)" \
70         "DESTDIR=$(DESTDIR)"
71
72 MAKEOVERRIDES=
73
74 # Multilib support variables working around Automake bug.
75 MULTISRCTOP =
76 MULTIBUILDTOP =
77 MULTIDIRS =
78 MULTISUBDIR =
79 MULTIDO = true
80 MULTICLEAN = true
81
82 toolexeclib_LTLIBRARIES = libffi.la
83 noinst_LTLIBRARIES = libffi_convenience.la
84
85 libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
86                 src/raw_api.c src/java_raw_api.c
87
88 nodist_libffi_la_SOURCES =
89
90 if MIPS_IRIX
91 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S src/mips/n32.S
92 endif
93 if MIPS_LINUX
94 nodist_libffi_la_SOURCES += src/mips/ffi.c src/mips/o32.S
95 endif
96 if X86
97 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/sysv.S
98 endif
99 if X86_WIN32
100 nodist_libffi_la_SOURCES += src/x86/ffi.c src/x86/win32.S
101 endif
102 if SPARC
103 nodist_libffi_la_SOURCES += src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
104 endif
105 if ALPHA
106 nodist_libffi_la_SOURCES += src/alpha/ffi.c src/alpha/osf.S
107 endif
108 if IA64
109 nodist_libffi_la_SOURCES += src/ia64/ffi.c src/ia64/unix.S
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 ARM
124 nodist_libffi_la_SOURCES += src/arm/sysv.S src/arm/ffi.c
125 endif
126 if S390
127 nodist_libffi_la_SOURCES += src/s390/sysv.S src/s390/ffi.c
128 endif
129 if X86_64
130 nodist_libffi_la_SOURCES += src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
131 endif
132 if SH
133 nodist_libffi_la_SOURCES += src/sh/sysv.S src/sh/ffi.c
134 endif
135 if SH64
136 nodist_libffi_la_SOURCES += src/sh64/sysv.S src/sh64/ffi.c
137 endif
138
139 libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
140 nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
141
142 AM_CFLAGS = -Wall -g -fexceptions
143
144 libffi_la_LDFLAGS = -release $(VERSION)
145
146 INCLUDES = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
147
148 AM_CCASFLAGS = $(INCLUDES)