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 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 real_malloc.c reclaim.c solaris_pthreads.c solaris_threads.c \
34 solaris_threads.h stubborn.c typd_mlc.c version.h weakpointer.h
35 libgcjgc_la_LIBADD = @addobjs@
36 libgcjgc_la_DEPENDENCIES = @addobjs@
37 libgcjgc_la_LDFLAGS = -version-info 0:0:0 -rpath $(toolexeclibdir)
39 EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s mips_sgi_mach_dep.s \
40 mips_ultrix_mach_dep.s rs6000_mach_dep.s sparc_mach_dep.s \
41 sparc_sunos4_mach_dep.s mach_dep.c ecos.cc
43 AM_CXXFLAGS = @BOEHM_GC_CFLAGS@
44 AM_CFLAGS = @BOEHM_GC_CFLAGS@
46 check_PROGRAMS = gctest
47 gctest_SOURCES = test.c
48 gctest_LDADD = ./libgcjgc.la $(THREADLIB)
52 ## FIXME: relies on internal code generated by automake.
53 all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
54 $(all_objs) : gcconfig.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.
58 ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
60 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
62 ## We have our own definition of LTCOMPILE because we want to use our
63 ## CFLAGS, not those passed in from the top level make.
64 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
65 $(AM_CPPFLAGS) $(CPPFLAGS) \
66 $(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS)
67 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
69 AM_CFLAGS = @BOEHM_GC_CFLAGS@
71 # Work around what appears to be a GNU make bug handling MAKEFLAGS
72 # values defined in terms of make variables, as is the case for CC and
73 # friends when we are called from the top level Makefile.
75 "AR_FLAGS=$(AR_FLAGS)" \
76 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
78 "CXXFLAGS=$(CXXFLAGS)" \
79 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
80 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
81 "INSTALL=$(INSTALL)" \
82 "INSTALL_DATA=$(INSTALL_DATA)" \
83 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
85 "LDFLAGS=$(LDFLAGS)" \
86 "LIBCFLAGS=$(LIBCFLAGS)" \
87 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
89 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
90 "PICFLAG=$(PICFLAG)" \
91 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
94 "RUNTEST=$(RUNTEST)" \
95 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
96 "exec_prefix=$(exec_prefix)" \
97 "infodir=$(infodir)" \
100 "tooldir=$(tooldir)" \
106 "LIBCFLAGS=$(LIBCFLAGS)" \
108 "PICFLAG=$(PICFLAG)" \
112 CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host
115 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
116 maintainer-clean-multi
119 install-am: install-multi
120 mostlyclean-am: mostlyclean-multi
121 clean-am: clean-multi
122 distclean-am: distclean-multi
123 maintainer-clean-am: maintainer-clean-multi
126 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
128 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
130 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
132 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
134 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
135 maintainer-clean-multi:
136 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean