OSDN Git Service

* cp-demangle.c (cplus_demangle_type): Check for invalid type
[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_libgcjgc_sources = powerpc_darwin_mach_dep.s
16 else
17 asm_libgcjgc_sources = 
18 endif
19
20 libgcjgc_la_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 \
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 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_libgcjgc_sources)
28
29 libgcjgc_convenience_la_SOURCES = $(libgcjgc_la_SOURCES)
30
31 EXTRA_DIST = alpha_mach_dep.S \
32 mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_darwin_mach_dep.s \
33 rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
34 sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
35
36 extra_ldflags_libgc = @extra_ldflags_libgc@
37
38 # Include THREADLIBS here to ensure that the correct versions of
39 # linuxthread semaphore functions get linked:
40 libgcjgc_la_LIBADD = @addobjs@ $(THREADLIBS) $(UNWINDLIBS)
41 libgcjgc_la_DEPENDENCIES = @addobjs@
42 libgcjgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:2:0 -rpath $(toolexeclibdir)
43 libgcjgc_la_LINK = $(LINK) $(libgcjgc_la_LDFLAGS)
44
45 libgcjgc_convenience_la_LIBADD = @addobjs@
46 libgcjgc_convenience_la_DEPENDENCIES = @addobjs@
47
48 AM_CXXFLAGS = @GC_CFLAGS@
49 AM_CFLAGS = @GC_CFLAGS@
50
51 check_PROGRAMS = gctest
52 gctest_SOURCES = tests/test.c
53 gctest_LDADD = libgcjgc.la $(THREADLIBS) $(UNWINDLIBS) $(EXTRA_TEST_LIBS)
54 gctest_LDFLAGS = -shared-libgcc
55 gctest_LINK = $(LINK) $(gctest_LDFLAGS)
56 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
57 TESTS = gctest
58
59 ## FIXME: we shouldn't have to do this, but automake forces us to.
60 .s.lo:
61 ## We use -Wp,-P to strip #line directives.  Irix `as' chokes on
62 ## these.
63         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
64 .S.lo:
65         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
66
67 ## We have our own definition of LTCOMPILE because we want to use our
68 ## CFLAGS, not those passed in from the top level make.
69 LTCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
70         $(CC) $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) \
71         $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS) 
72 LTLDFLAGS = $(shell $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
73 LINK = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
74         $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LTLDFLAGS) -o $@
75
76 # Work around what appears to be a GNU make bug handling MAKEFLAGS
77 # values defined in terms of make variables, as is the case for CC and
78 # friends when we are called from the top level Makefile.
79 AM_MAKEFLAGS = \
80         "AR_FLAGS=$(AR_FLAGS)" \
81         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
82         "CFLAGS=$(CFLAGS)" \
83         "CXXFLAGS=$(CXXFLAGS)" \
84         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
85         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
86         "INSTALL=$(INSTALL)" \
87         "INSTALL_DATA=$(INSTALL_DATA)" \
88         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
89         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
90         "LDFLAGS=$(LDFLAGS)" \
91         "LIBCFLAGS=$(LIBCFLAGS)" \
92         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
93         "MAKE=$(MAKE)" \
94         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
95         "PICFLAG=$(PICFLAG)" \
96         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
97         "SHELL=$(SHELL)" \
98         "EXPECT=$(EXPECT)" \
99         "RUNTEST=$(RUNTEST)" \
100         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
101         "exec_prefix=$(exec_prefix)" \
102         "infodir=$(infodir)" \
103         "libdir=$(libdir)" \
104         "prefix=$(prefix)" \
105         "tooldir=$(tooldir)" \
106         "AR=$(AR)" \
107         "AS=$(AS)" \
108         "CC=$(CC)" \
109         "CXX=$(CXX)" \
110         "LD=$(LD)" \
111         "LIBCFLAGS=$(LIBCFLAGS)" \
112         "NM=$(NM)" \
113         "PICFLAG=$(PICFLAG)" \
114         "RANLIB=$(RANLIB)" \
115         "DESTDIR=$(DESTDIR)"
116
117 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
118
119 MAKEOVERRIDES=