OSDN Git Service

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