OSDN Git Service

2005-12-08 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / boehm-gc / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 ## FIXME: `make dist' in this directory will not currently work.  Many
4 ## files that should be in the distribution are not mentioned in this
5 ## Makefile.am.
6
7 AUTOMAKE_OPTIONS = cygnus subdir-objects
8 ACLOCAL_AMFLAGS = -I .. -I ../config
9
10 SUBDIRS = include
11
12 noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
13
14 if POWERPC_DARWIN
15 asm_libgc_sources = powerpc_darwin_mach_dep.s
16 else
17 asm_libgc_sources = 
18 endif
19
20 GC_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
21 dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c aix_irix_threads.c \
22 malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
23 obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
24 solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c \
25 backgraph.c win32_threads.c \
26 pthread_support.c pthread_stop_world.c darwin_stop_world.c \
27 $(asm_libgc_sources)
28
29 EXTRA_DIST = alpha_mach_dep.S \
30 mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_darwin_mach_dep.s \
31 rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
32 sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
33
34 libgcjgc_la_SOURCES = $(GC_SOURCES)
35 libgcjgc_convenience_la_SOURCES = $(GC_SOURCES)
36
37 # Include THREADLIBS here to ensure that the correct versions of
38 # linuxthread semaphore functions get linked:
39 libgcjgc_la_LIBADD = @addobjs@ $(THREADLIBS)
40 libgcjgc_la_DEPENDENCIES = @addobjs@
41 libgcjgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
42
43 libgcjgc_convenience_la_LIBADD = @addobjs@
44 libgcjgc_convenience_la_DEPENDENCIES = @addobjs@
45
46 AM_CXXFLAGS = @GC_CFLAGS@
47 AM_CFLAGS = @GC_CFLAGS@
48
49 check_PROGRAMS = gctest
50 gctest_SOURCES = tests/test.c
51 gctest_LDADD = ./libgcjgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
52 gctest_LDFLAGS = -shared-libgcc
53 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
54 TESTS = gctest
55
56 ## FIXME: we shouldn't have to do this, but automake forces us to.
57 .s.lo:
58 ## We use -Wp,-P to strip #line directives.  Irix `as' chokes on
59 ## these.
60         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
61 .S.lo:
62         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
63
64 ## We have our own definition of LTCOMPILE because we want to use our
65 ## CFLAGS, not those passed in from the top level make.
66 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) \
67         $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS) 
68 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
69
70 # Work around what appears to be a GNU make bug handling MAKEFLAGS
71 # values defined in terms of make variables, as is the case for CC and
72 # friends when we are called from the top level Makefile.
73 AM_MAKEFLAGS = \
74         "AR_FLAGS=$(AR_FLAGS)" \
75         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
76         "CFLAGS=$(CFLAGS)" \
77         "CXXFLAGS=$(CXXFLAGS)" \
78         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
79         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
80         "INSTALL=$(INSTALL)" \
81         "INSTALL_DATA=$(INSTALL_DATA)" \
82         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
83         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
84         "LDFLAGS=$(LDFLAGS)" \
85         "LIBCFLAGS=$(LIBCFLAGS)" \
86         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
87         "MAKE=$(MAKE)" \
88         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
89         "PICFLAG=$(PICFLAG)" \
90         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
91         "SHELL=$(SHELL)" \
92         "EXPECT=$(EXPECT)" \
93         "RUNTEST=$(RUNTEST)" \
94         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
95         "exec_prefix=$(exec_prefix)" \
96         "infodir=$(infodir)" \
97         "libdir=$(libdir)" \
98         "prefix=$(prefix)" \
99         "tooldir=$(tooldir)" \
100         "AR=$(AR)" \
101         "AS=$(AS)" \
102         "CC=$(CC)" \
103         "CXX=$(CXX)" \
104         "LD=$(LD)" \
105         "LIBCFLAGS=$(LIBCFLAGS)" \
106         "NM=$(NM)" \
107         "PICFLAG=$(PICFLAG)" \
108         "RANLIB=$(RANLIB)" \
109         "DESTDIR=$(DESTDIR)"
110
111 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
112
113 MAKEOVERRIDES=