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)
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 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 \
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.
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.
73 "AR_FLAGS=$(AR_FLAGS)" \
74 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
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)" \
87 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
88 "PICFLAG=$(PICFLAG)" \
89 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
92 "RUNTEST=$(RUNTEST)" \
93 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
94 "exec_prefix=$(exec_prefix)" \
95 "infodir=$(infodir)" \
98 "tooldir=$(tooldir)" \
104 "LIBCFLAGS=$(LIBCFLAGS)" \
106 "PICFLAG=$(PICFLAG)" \
110 CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host
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
124 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
126 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
128 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
130 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
132 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
133 maintainer-clean-multi:
134 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean