2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
[official-gcc.git] / boehm-gc / Makefile.am
blob0949ed8a37362fbc6b539a95f9764b37f856694a
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
9 # Multilib support variables.
10 MULTISRCTOP =
11 MULTIBUILDTOP =
12 MULTIDIRS =
13 MULTISUBDIR =
14 MULTIDO = true
15 MULTICLEAN = true
17 ## Install a library built with a cross compiler in tooldir, not
18 ## libdir.
19 if USE_LIBDIR
20 toolexeclibdir = $(libdir)$(MULTISUBDIR)
21 else
22 toolexecdir = $(exec_prefix)/$(target_alias)
23 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
24 endif
26 toolexeclib_LTLIBRARIES = $(target_all)
27 EXTRA_LTLIBRARIES = libgcjgc.la
28 libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
29 dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c irix_threads.c \
30 linux_threads.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
31 obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
32 solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c
34 # Include THREADLIBS here to ensure that the correct versions of
35 # linuxthread semaphore functions get linked:
36 libgcjgc_la_LIBADD = @addobjs@ $(THREADLIBS)
37 libgcjgc_la_DEPENDENCIES = @addobjs@
38 libgcjgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
40 EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s \
41 mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_macosx_mach_dep.s \
42 rs6000_mach_dep.s sparc_mach_dep.s sparc_netbsd_mach_dep.s \
43 sparc_sunos4_mach_dep.s
45 AM_CXXFLAGS = @GC_CFLAGS@
46 AM_CFLAGS = @GC_CFLAGS@
48 check_PROGRAMS = gctest
49 # The following hack produces a warning from automake, but we need it in order 
50 # to build a file from a subdirectory. FIXME.
51 test.o: tests/test.c
52         $(COMPILE) -c $<
53 gctest_OBJECTS = test.o
54 gctest_LDADD = ./libgcjgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
55 gctest_LDFLAGS = -shared-libgcc
56 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
57 TESTS = gctest
59 ## FIXME: relies on internal code generated by automake.
60 all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
61 $(all_objs) : include/private/gcconfig.h include/private/gc_priv.h \
62 include/private/gc_hdrs.h include/gc.h include/gc_gcj.h include/gc_mark.h
64 ## FIXME: we shouldn't have to do this, but automake forces us to.
65 .s.lo:
66 ## We use -Wp,-P to strip #line directives.  Irix `as' chokes on
67 ## these.
68         $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
70 ## We have our own definition of LTCOMPILE because we want to use our
71 ## CFLAGS, not those passed in from the top level make.
72 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
73         $(AM_CPPFLAGS) $(CPPFLAGS) \
74         $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS) 
75 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
77 AM_CFLAGS = @GC_CFLAGS@
79 # Work around what appears to be a GNU make bug handling MAKEFLAGS
80 # values defined in terms of make variables, as is the case for CC and
81 # friends when we are called from the top level Makefile.
82 AM_MAKEFLAGS = \
83         "AR_FLAGS=$(AR_FLAGS)" \
84         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
85         "CFLAGS=$(CFLAGS)" \
86         "CXXFLAGS=$(CXXFLAGS)" \
87         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
88         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
89         "INSTALL=$(INSTALL)" \
90         "INSTALL_DATA=$(INSTALL_DATA)" \
91         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
92         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
93         "LDFLAGS=$(LDFLAGS)" \
94         "LIBCFLAGS=$(LIBCFLAGS)" \
95         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
96         "MAKE=$(MAKE)" \
97         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
98         "PICFLAG=$(PICFLAG)" \
99         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
100         "SHELL=$(SHELL)" \
101         "EXPECT=$(EXPECT)" \
102         "RUNTEST=$(RUNTEST)" \
103         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
104         "exec_prefix=$(exec_prefix)" \
105         "infodir=$(infodir)" \
106         "libdir=$(libdir)" \
107         "prefix=$(prefix)" \
108         "tooldir=$(tooldir)" \
109         "AR=$(AR)" \
110         "AS=$(AS)" \
111         "CC=$(CC)" \
112         "CXX=$(CXX)" \
113         "LD=$(LD)" \
114         "LIBCFLAGS=$(LIBCFLAGS)" \
115         "NM=$(NM)" \
116         "PICFLAG=$(PICFLAG)" \
117         "RANLIB=$(RANLIB)" \
118         "DESTDIR=$(DESTDIR)"
120 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
122 # Multilib support.
123 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
124         maintainer-clean-multi
126 all-am: all-multi
127 install-am: install-multi
128 mostlyclean-am: mostlyclean-multi
129 clean-am: clean-multi
130 distclean-am: distclean-multi
131 maintainer-clean-am: maintainer-clean-multi
133 all-multi:
134         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
135 install-multi:
136         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
137 mostlyclean-multi:
138         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
139 clean-multi:
140         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
141 distclean-multi:
142         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
143 maintainer-clean-multi:
144         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
146 MAKEOVERRIDES=