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
7 AUTOMAKE_OPTIONS = cygnus
11 # Multilib support variables.
19 ## Install a library built with a cross compiler in tooldir, not
22 toolexeclibdir = $(libdir)$(MULTISUBDIR)
24 toolexecdir = $(exec_prefix)/$(target_alias)
25 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
28 noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
30 GC_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 win32_threads.c
37 EXTRA_GC_SOURCES = alpha_mach_dep.s \
38 mips_sgi_mach_dep.S mips_ultrix_mach_dep.s powerpc_macosx_mach_dep.s \
39 rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
40 sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
42 libgcjgc_la_SOURCES = $(GC_SOURCES)
43 libgcjgc_convenience_la_SOURCES = $(GC_SOURCES)
44 EXTRA_libgcjgc_la_SOURCES = $(EXTRA_GC_SOURCES)
45 EXTRA_libgcjgc_convenience_la_SOURCES = $(EXTRA_GC_SOURCES)
47 # Include THREADLIBS here to ensure that the correct versions of
48 # linuxthread semaphore functions get linked:
49 libgcjgc_la_LIBADD = @addobjs@ $(THREADLIBS)
50 libgcjgc_la_DEPENDENCIES = @addobjs@
51 libgcjgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
53 libgcjgc_convenience_la_LIBADD = @addobjs@
54 libgcjgc_convenience_la_DEPENDENCIES = @addobjs@
56 AM_CXXFLAGS = @GC_CFLAGS@
57 AM_CFLAGS = @GC_CFLAGS@
59 check_PROGRAMS = gctest
60 # The following hack produces a warning from automake, but we need it in order
61 # to build a file from a subdirectory. FIXME.
63 $(COMPILE) -c $(srcdir)/tests/test.c
64 # Using $< in the above seems to fail with the HP/UX on Itanium make.
66 gctest_OBJECTS = test.o
67 gctest_LDADD = ./libgcjgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
68 gctest_LDFLAGS = -shared-libgcc
69 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
72 ## FIXME: relies on internal code generated by automake.
73 all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
74 $(all_objs) : include/private/gcconfig.h include/private/gc_priv.h \
75 include/private/gc_hdrs.h include/gc.h include/gc_gcj.h include/gc_mark.h
77 ## FIXME: we shouldn't have to do this, but automake forces us to.
79 ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
81 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
83 ## We have our own definition of LTCOMPILE because we want to use our
84 ## CFLAGS, not those passed in from the top level make.
85 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
86 $(AM_CPPFLAGS) $(CPPFLAGS) \
87 $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS)
88 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
90 AM_CFLAGS = @GC_CFLAGS@
92 # Work around what appears to be a GNU make bug handling MAKEFLAGS
93 # values defined in terms of make variables, as is the case for CC and
94 # friends when we are called from the top level Makefile.
96 "AR_FLAGS=$(AR_FLAGS)" \
97 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
99 "CXXFLAGS=$(CXXFLAGS)" \
100 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
101 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
102 "INSTALL=$(INSTALL)" \
103 "INSTALL_DATA=$(INSTALL_DATA)" \
104 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
105 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
106 "LDFLAGS=$(LDFLAGS)" \
107 "LIBCFLAGS=$(LIBCFLAGS)" \
108 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
110 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
111 "PICFLAG=$(PICFLAG)" \
112 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
115 "RUNTEST=$(RUNTEST)" \
116 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
117 "exec_prefix=$(exec_prefix)" \
118 "infodir=$(infodir)" \
121 "tooldir=$(tooldir)" \
127 "LIBCFLAGS=$(LIBCFLAGS)" \
129 "PICFLAG=$(PICFLAG)" \
133 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
136 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
137 maintainer-clean-multi
140 install-am: install-multi
141 mostlyclean-am: mostlyclean-multi
142 clean-am: clean-multi
143 distclean-am: distclean-multi
144 maintainer-clean-am: maintainer-clean-multi
147 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
149 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
151 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
153 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
155 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
156 maintainer-clean-multi:
157 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean