]> gcc.gnu.org Git - gcc.git/blame - boehm-gc/Makefile.am
Merged GC 5.0alpha4 with local changes, plus:
[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
28libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c \
1530be84
TT
29config.h dbg_mlc.c dyn_load.c finalize.c gc.h gc_alloc.h gc_cpp.h \
30gc_hdrs.h gc_mark.h gc_priv.h gc_private.h gc_typed.h headers.c \
31irix_threads.c linux_threads.c malloc.c mallocx.c mark.c mark_rts.c \
32misc.c new_hblk.c obj_map.c os_dep.c pcr_interface.c ptr_chck.c \
eba0e61d
TT
33quick_threads.c real_malloc.c reclaim.c solaris_pthreads.c \
34solaris_threads.c solaris_threads.h stubborn.c typd_mlc.c version.h \
35weakpointer.h
66deb2be
TT
36libgcjgc_la_LIBADD = @addobjs@
37libgcjgc_la_DEPENDENCIES = @addobjs@
f687c79e 38libgcjgc_la_LDFLAGS = -version-info 0:0:0 -rpath $(toolexeclibdir)
1530be84 39
66deb2be 40EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s mips_sgi_mach_dep.s \
1530be84
TT
41mips_ultrix_mach_dep.s rs6000_mach_dep.s sparc_mach_dep.s \
42sparc_sunos4_mach_dep.s mach_dep.c ecos.cc
43
44AM_CXXFLAGS = @BOEHM_GC_CFLAGS@
45AM_CFLAGS = @BOEHM_GC_CFLAGS@
46
47check_PROGRAMS = gctest
48gctest_SOURCES = test.c
20bbd3cd 49gctest_LDADD = ./libgcjgc.la $(THREADLIB)
1530be84 50
20bbd3cd 51TESTS = gctest
1530be84
TT
52
53## FIXME: relies on internal code generated by automake.
66deb2be 54all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
1530be84
TT
55$(all_objs) : config.h gc_priv.h gc_hdrs.h gc.h gc_mark.h
56
57## FIXME: we shouldn't have to do this, but automake forces us to.
2fa39a0e 58.s.lo:
14eee794
AO
59## We use -Wp,-P to strip #line directives. Irix `as' chokes on
60## these.
61 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
1530be84 62
66deb2be 63## We have our own definition of LTCOMPILE because we want to use our
1530be84 64## CFLAGS, not those passed in from the top level make.
66deb2be
TT
65LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
66 $(AM_CPPFLAGS) $(CPPFLAGS) \
67 $(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS)
68LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
1530be84
TT
69
70AM_CFLAGS = @BOEHM_GC_CFLAGS@
71
72# Work around what appears to be a GNU make bug handling MAKEFLAGS
73# values defined in terms of make variables, as is the case for CC and
74# friends when we are called from the top level Makefile.
75AM_MAKEFLAGS = \
76 "AR_FLAGS=$(AR_FLAGS)" \
77 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
78 "CFLAGS=$(CFLAGS)" \
79 "CXXFLAGS=$(CXXFLAGS)" \
80 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
81 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
82 "INSTALL=$(INSTALL)" \
83 "INSTALL_DATA=$(INSTALL_DATA)" \
84 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
85 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
86 "LDFLAGS=$(LDFLAGS)" \
87 "LIBCFLAGS=$(LIBCFLAGS)" \
88 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
89 "MAKE=$(MAKE)" \
90 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
91 "PICFLAG=$(PICFLAG)" \
92 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
93 "SHELL=$(SHELL)" \
94 "EXPECT=$(EXPECT)" \
95 "RUNTEST=$(RUNTEST)" \
96 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
97 "exec_prefix=$(exec_prefix)" \
98 "infodir=$(infodir)" \
99 "libdir=$(libdir)" \
100 "prefix=$(prefix)" \
101 "tooldir=$(tooldir)" \
102 "AR=$(AR)" \
103 "AS=$(AS)" \
104 "CC=$(CC)" \
105 "CXX=$(CXX)" \
106 "LD=$(LD)" \
107 "LIBCFLAGS=$(LIBCFLAGS)" \
108 "NM=$(NM)" \
109 "PICFLAG=$(PICFLAG)" \
110 "RANLIB=$(RANLIB)" \
111 "DESTDIR=$(DESTDIR)"
112
113CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host
114
115# Multilib support.
116.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
117 maintainer-clean-multi
118
44ebe2d0
AO
119all-am: all-multi
120install-am: install-multi
121mostlyclean-am: mostlyclean-multi
122clean-am: clean-multi
123distclean-am: distclean-multi
124maintainer-clean-am: maintainer-clean-multi
1530be84
TT
125
126all-multi:
127 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
128install-multi:
129 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
130mostlyclean-multi:
131 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
132clean-multi:
133 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
134distclean-multi:
135 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
136maintainer-clean-multi:
137 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
138
139MAKEOVERRIDES=
This page took 0.072643 seconds and 5 git commands to generate.