OSDN Git Service

* Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
[pf3gnuchains/gcc-fork.git] / libffi / Makefile.am
1 ## Process this with automake to create Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 EXTRA_DIST = LICENSE ChangeLog.v1 src/mips/ffi.c src/mips/n32.S \
6                 src/mips/n32.s src/mips/o32.S src/mips/o32.s \
7                 src/sparc/ffi.c src/sparc/v8.S \
8                 src/x86/ffi.c src/x86/sysv.S \
9                 src/alpha/ffi.c src/alpha/osf.S \
10                 src/m68k/ffi.c src/m68k/sysv.S \
11                 src/powerpc/ffi.c src/powerpc/sysv.S src/powerpc/asm.h \
12                 src/arm/ffi.c src/arm/sysv.S
13
14 VPATH = @srcdir@:@srcdir@/src:@srcdir@/src/@TARGETDIR@
15
16 # Multilib support variables.
17 MULTISRCTOP =
18 MULTIBUILDTOP =
19 MULTIDIRS =
20 MULTISUBDIR =
21 MULTIDO = true
22 MULTICLEAN = true
23
24 ## Install a library built with a cross compiler in tooldir, not
25 ## libdir.
26 if USE_LIBDIR
27 toolexeclibdir = $(libdir)$(MULTISUBDIR)
28 else
29 toolexecdir = $(exec_prefix)/$(target_alias)
30 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
31 endif
32
33 toolexeclib_LTLIBRARIES = libffi.la
34
35 noinst_PROGRAMS = ffitest
36
37 ffitest_SOURCES = src/ffitest.c
38 ffitest_LDADD = libffi.la
39
40 TARGET_SRC_MIPS_GCC = src/mips/ffi.c src/mips/o32.S src/mips/n32.S
41 TARGET_SRC_MIPS_SGI = src/mips/ffi.c src/mips/o32.s src/mips/n32.s
42 TARGET_SRC_X86 = src/x86/ffi.c src/x86/sysv.S
43 TARGET_SRC_SPARC = src/sparc/ffi.c src/sparc/v8.S
44 TARGET_SRC_ALPHA = src/alpha/ffi.c src/alpha/osf.S
45 TARGET_SRC_M68K = src/m68k/ffi.c src/m68k/sysv.S
46 TARGET_SRC_POWERPC = src/powerpc/ffi.c src/powerpc/sysv.S
47 TARGET_SRC_ARM =  src/arm/sysv.S src/arm/ffi.c
48
49 ##libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c $(TARGET_SRC_@TARGET@)
50 ## Work around automake deficiency
51 libffi_la_common_SOURCES = src/debug.c src/prep_cif.c src/types.c src/raw_api.c 
52 if MIPS_GCC
53 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_GCC)
54 endif
55 if MIPS_SGI
56 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_MIPS_SGI)
57 endif
58 if X86
59 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_X86)
60 endif
61 if SPARC
62 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_SPARC)
63 endif
64 if ALPHA
65 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ALPHA)
66 endif
67 if M68K
68 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_M68K)
69 endif
70 if POWERPC
71 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_POWERPC)
72 endif
73 if ARM
74 libffi_la_SOURCES = $(libffi_la_common_SOURCES) $(TARGET_SRC_ARM)
75 endif
76
77 AM_CFLAGS = -fexceptions
78
79 libffi_la_LDFLAGS = -release $(VERSION) 
80
81 INCLUDES = -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src