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
9 # Multilib support variables.
17 ## Install a library built with a cross compiler in tooldir, not
20 toolexeclibdir = $(libdir)$(MULTISUBDIR)
22 toolexecdir = $(exec_prefix)/$(target_alias)
23 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
26 toolexeclib_LTLIBRARIES = $(target_all)
27 EXTRA_LTLIBRARIES = libgcjgc.la
28 libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c \
29 gcconfig.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 gcj_mlc.c headers.c \
31 hpux_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 real_malloc.c reclaim.c solaris_pthreads.c solaris_threads.c \
34 solaris_threads.h stubborn.c typd_mlc.c version.h weakpointer.h
36 # Include THREADLIBS here to ensure that the correct versions of
37 # linuxthread semaphore functions get linked:
38 libgcjgc_la_LIBADD = @addobjs@ $(THREADLIBS)
39 libgcjgc_la_DEPENDENCIES = @addobjs@
40 libgcjgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
42 EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s mips_sgi_mach_dep.s \
43 mips_ultrix_mach_dep.s rs6000_mach_dep.s sparc_mach_dep.s \
44 sparc_sunos4_mach_dep.s mach_dep.c ecos.cc
46 AM_CXXFLAGS = @BOEHM_GC_CFLAGS@
47 AM_CFLAGS = @BOEHM_GC_CFLAGS@
49 check_PROGRAMS = gctest
50 gctest_SOURCES = test.c
51 gctest_LDADD = ./libgcjgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
52 gctest_LDFLAGS = -shared-libgcc
53 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
56 ## FIXME: relies on internal code generated by automake.
57 all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
58 $(all_objs) : gcconfig.h gc_priv.h gc_hdrs.h gc.h gc_mark.h
60 ## FIXME: we shouldn't have to do this, but automake forces us to.
62 ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
64 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
66 ## We have our own definition of LTCOMPILE because we want to use our
67 ## CFLAGS, not those passed in from the top level make.
68 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) \
70 $(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS)
71 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
73 AM_CFLAGS = @BOEHM_GC_CFLAGS@
75 # Work around what appears to be a GNU make bug handling MAKEFLAGS
76 # values defined in terms of make variables, as is the case for CC and
77 # friends when we are called from the top level Makefile.
79 "AR_FLAGS=$(AR_FLAGS)" \
80 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
82 "CXXFLAGS=$(CXXFLAGS)" \
83 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
84 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
85 "INSTALL=$(INSTALL)" \
86 "INSTALL_DATA=$(INSTALL_DATA)" \
87 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
88 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
89 "LDFLAGS=$(LDFLAGS)" \
90 "LIBCFLAGS=$(LIBCFLAGS)" \
91 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
93 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
94 "PICFLAG=$(PICFLAG)" \
95 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
98 "RUNTEST=$(RUNTEST)" \
99 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
100 "exec_prefix=$(exec_prefix)" \
101 "infodir=$(infodir)" \
104 "tooldir=$(tooldir)" \
110 "LIBCFLAGS=$(LIBCFLAGS)" \
112 "PICFLAG=$(PICFLAG)" \
116 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
119 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
120 maintainer-clean-multi
123 install-am: install-multi
124 mostlyclean-am: mostlyclean-multi
125 clean-am: clean-multi
126 distclean-am: distclean-multi
127 maintainer-clean-am: maintainer-clean-multi
130 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
132 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
134 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
136 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
138 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
139 maintainer-clean-multi:
140 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean