2008-11-04 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / boehm-gc / Makefile.am
blob567d5979e5ee5c17947d221c5d2e51aa93d7c7bf
1 ## Process this file with automake to produce Makefile.in.
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.
7 AUTOMAKE_OPTIONS = cygnus subdir-objects
8 ACLOCAL_AMFLAGS = -I .. -I ../config
10 SUBDIRS = include
12 noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
14 if POWERPC_DARWIN
15 asm_libgcjgc_sources = powerpc_darwin_mach_dep.s
16 else
17 asm_libgcjgc_sources = 
18 endif
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)
29 libgcjgc_convenience_la_SOURCES = $(libgcjgc_la_SOURCES)
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
36 extra_ldflags_libgc = @extra_ldflags_libgc@
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)
44 libgcjgc_convenience_la_LIBADD = @addobjs@
45 libgcjgc_convenience_la_DEPENDENCIES = @addobjs@
47 AM_CXXFLAGS = @GC_CFLAGS@
48 AM_CFLAGS = @GC_CFLAGS@
50 check_PROGRAMS = gctest
51 gctest_SOURCES = tests/test.c
52 gctest_LDADD = ./libgcjgc.la $(THREADLIBS) $(UNWINDLIBS) $(EXTRA_TEST_LIBS)
53 gctest_LDFLAGS = -shared-libgcc
54 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
55 TESTS = gctest
57 ## FIXME: we shouldn't have to do this, but automake forces us to.
58 .s.lo:
59 ## We use -Wp,-P to strip #line directives.  Irix `as' chokes on
60 ## these.
61         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
62 .S.lo:
63         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
65 ## We have our own definition of LTCOMPILE because we want to use our
66 ## CFLAGS, not those passed in from the top level make.
67 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) \
68         $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS) 
69 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
71 # Work around what appears to be a GNU make bug handling MAKEFLAGS
72 # values defined in terms of make variables, as is the case for CC and
73 # friends when we are called from the top level Makefile.
74 AM_MAKEFLAGS = \
75         "AR_FLAGS=$(AR_FLAGS)" \
76         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
77         "CFLAGS=$(CFLAGS)" \
78         "CXXFLAGS=$(CXXFLAGS)" \
79         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
80         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
81         "INSTALL=$(INSTALL)" \
82         "INSTALL_DATA=$(INSTALL_DATA)" \
83         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
85         "LDFLAGS=$(LDFLAGS)" \
86         "LIBCFLAGS=$(LIBCFLAGS)" \
87         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
88         "MAKE=$(MAKE)" \
89         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
90         "PICFLAG=$(PICFLAG)" \
91         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
92         "SHELL=$(SHELL)" \
93         "EXPECT=$(EXPECT)" \
94         "RUNTEST=$(RUNTEST)" \
95         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
96         "exec_prefix=$(exec_prefix)" \
97         "infodir=$(infodir)" \
98         "libdir=$(libdir)" \
99         "prefix=$(prefix)" \
100         "tooldir=$(tooldir)" \
101         "AR=$(AR)" \
102         "AS=$(AS)" \
103         "CC=$(CC)" \
104         "CXX=$(CXX)" \
105         "LD=$(LD)" \
106         "LIBCFLAGS=$(LIBCFLAGS)" \
107         "NM=$(NM)" \
108         "PICFLAG=$(PICFLAG)" \
109         "RANLIB=$(RANLIB)" \
110         "DESTDIR=$(DESTDIR)"
112 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
114 MAKEOVERRIDES=
116 # No install-html or install-pdf support in automake yet
117 .PHONY: install-html install-pdf
118 install-html:
119 install-pdf: