source: trunk/src/gcc/libffi/Makefile.am@ 2013

Last change on this file since 2013 was 1394, checked in by bird, 21 years ago

#1040: Joined the GCC 3.3.3 with the trunk.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 7.3 KB
Line 
1## Process this with automake to create Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5SUBDIRS = include
6
7EXTRA_DIST = LICENSE ChangeLog.v1 src/mips/ffi.c src/mips/n32.S \
8 src/mips/n32.s src/mips/o32.S src/mips/o32.s \
9 src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S \
10 src/x86/ffi.c src/x86/sysv.S src/x86/win32.S \
11 src/x86/ffi64.c src/x86/unix64.S \
12 src/alpha/ffi.c src/alpha/osf.S \
13 src/m68k/ffi.c src/m68k/sysv.S \
14 src/powerpc/ffi.c src/powerpc/sysv.S \
15 src/powerpc/ppc_closure.S src/powerpc/asm.h \
16 src/powerpc/ffi_darwin.c \
17 src/powerpc/darwin.S src/powerpc/aix.S \
18 src/powerpc/darwin_closure.S src/powerpc/aix_closures.S \
19 src/arm/ffi.c src/arm/sysv.S \
20 src/s390/ffi.c src/s390/sysv.S \
21 src/sh/ffi.c src/sh/sysv.S
22
23VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
24
25## ################################################################
26
27##
28## This section is for make and multilib madness.
29##
30
31# Work around what appears to be a GNU make bug handling MAKEFLAGS
32# values defined in terms of make variables, as is the case for CC and
33# friends when we are called from the top level Makefile.
34AM_MAKEFLAGS = \
35 "AR_FLAGS=$(AR_FLAGS)" \
36 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
37 "CFLAGS=$(CFLAGS)" \
38 "CXXFLAGS=$(CXXFLAGS)" \
39 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
40 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
41 "INSTALL=$(INSTALL)" \
42 "INSTALL_DATA=$(INSTALL_DATA)" \
43 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
44 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
45 "JC1FLAGS=$(JC1FLAGS)" \
46 "LDFLAGS=$(LDFLAGS)" \
47 "LIBCFLAGS=$(LIBCFLAGS)" \
48 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
49 "MAKE=$(MAKE)" \
50 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
51 "PICFLAG=$(PICFLAG)" \
52 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
53 "SHELL=$(SHELL)" \
54 "exec_prefix=$(exec_prefix)" \
55 "infodir=$(infodir)" \
56 "libdir=$(libdir)" \
57 "prefix=$(prefix)" \
58 "AR=$(AR)" \
59 "AS=$(AS)" \
60 "CC=$(CC)" \
61 "CXX=$(CXX)" \
62 "LD=$(LD)" \
63 "LIBCFLAGS=$(LIBCFLAGS)" \
64 "NM=$(NM)" \
65 "PICFLAG=$(PICFLAG)" \
66 "RANLIB=$(RANLIB)" \
67 "DESTDIR=$(DESTDIR)"
68
69MAKEOVERRIDES=
70
71# Multilib support variables.
72MULTISRCTOP =
73MULTIBUILDTOP =
74MULTIDIRS =
75MULTISUBDIR =
76MULTIDO = true
77MULTICLEAN = true
78
79toolexeclib_LTLIBRARIES = libffi.la
80noinst_LTLIBRARIES = libffi_convenience.la
81
82noinst_PROGRAMS = ffitest
83
84ffitest_OBJECTS = ffitest.lo
85ffitest_LDADD = libffi.la
86ffitest_LDFLAGS = -shared-libgcc
87
88TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
89TARGET_SRC_MIPS_LINUX = src/mips/ffi.c src/mips/o32.S
90TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
91TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
92TARGET_SRC_X86_WIN32 = src/x86/ffi.c src/x86/win32.S
93TARGET_SRC_SPARC = src/sparc/ffi.c src/sparc/v8.S src/sparc/v9.S
94TARGET_SRC_ALPHA = src/alpha/ffi.c src/alpha/osf.S
95TARGET_SRC_IA64 = src/ia64/ffi.c src/ia64/unix.S
96TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
97TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/ppc_closure.S
98TARGET_SRC_POWERPC_AIX = src/powerpc/ffi_darwin.c src/powerpc/aix.S src/powerpc/aix_closures.S
99TARGET_SRC_POWERPC_DARWIN = src/powerpc/ffi_darwin.c src/powerpc/darwin.S src/powerpc/darwin_closure.S
100TARGET_SRC_ARM = src/arm/sysv.S src/arm/ffi.c
101TARGET_SRC_S390 = src/s390/sysv.S src/s390/ffi.c
102TARGET_SRC_X86_64 = src/x86/ffi64.c src/x86/unix64.S src/x86/ffi.c src/x86/sysv.S
103TARGET_SRC_SH = src/sh/sysv.S src/sh/ffi.c
104
105##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c $(TARGET_SRC_@TARGET@)
106## Work around automake deficiency
107libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c \
108 src/raw_api.c src/java_raw_api.c
109if MIPS_GCC
110libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC)
111libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC)
112endif
113if MIPS_LINUX
114libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_LINUX)
115libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_LINUX)
116endif
117if MIPS_SGI
118libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
119libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
120endif
121if X86
122libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
123libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
124endif
125if X86_WIN32
126libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86_WIN32)
127libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86_WIN32)
128endif
129if SPARC
130libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC)
131libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC)
132endif
133if ALPHA
134libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA)
135libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA)
136endif
137if IA64
138libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_IA64)
139libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_IA64)
140endif
141if M68K
142libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K)
143libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K)
144endif
145if POWERPC
146libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC)
147libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC)
148endif
149if POWERPC_AIX
150libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC_AIX)
151libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC_AIX)
152endif
153if POWERPC_DARWIN
154libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC_DARWIN)
155libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC_DARWIN)
156endif
157if ARM
158libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
159libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
160endif
161if S390
162libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_S390)
163libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_S390)
164endif
165if X86_64
166libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86_64)
167libffi_convenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86_64)
168endif
169if SH
170libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
171libfficonvenience_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SH)
172endif
173
174AM_CFLAGS = -fexceptions
175
176libffi_la_LDFLAGS = -release $(VERSION)
177
178INCLUDES = -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
179
180# Override these rules so that object files get put in the correct
181# subdirectories.
182.c.o:
183 $(LTCOMPILE) -c -o $@ $<
184
185.s.o:
186 $(LTCOMPILE) -c -o $@ $<
187
188.S.o:
189 $(LTCOMPILE) -c -o $@ $<
190
191.c.lo:
192 $(LTCOMPILE) -c -o $@ $<
193
194.s.lo:
195 $(LTCOMPILE) -c -o $@ $<
196
197.S.lo:
198 $(LTCOMPILE) -c -o $@ $<
199
200# Multilib support.
201.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
202 maintainer-clean-multi
203
204all-recursive: all-multi
205install-recursive: install-multi
206mostlyclean-recursive: mostlyclean-multi
207clean-recursive: clean-multi
208distclean-recursive: distclean-multi
209maintainer-clean-recursive: maintainer-clean-multi
210
211all-multi:
212 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
213install-multi:
214 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
215mostlyclean-multi:
216 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
217clean-multi:
218 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
219distclean-multi:
220 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
221maintainer-clean-multi:
222 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
223
224
225## ################################################################
226
Note: See TracBrowser for help on using the repository browser.