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