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