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 toolexecdir = $(exec_prefix)/$(target_alias)
18 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
20 toolexeclib_LTLIBRARIES = $(target_all)
21 EXTRA_LTLIBRARIES = libgcjgc.la
22 libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c \
23 config.h dbg_mlc.c dyn_load.c finalize.c gc.h gc_alloc.h gc_cpp.h \
24 gc_hdrs.h gc_mark.h gc_priv.h gc_private.h gc_typed.h headers.c \
25 irix_threads.c linux_threads.c malloc.c mallocx.c mark.c mark_rts.c \
26 misc.c new_hblk.c obj_map.c os_dep.c pcr_interface.c ptr_chck.c \
27 quick_threads.c real_malloc.c reclaim.c solaris_pthreads.c \
28 solaris_threads.c solaris_threads.h stubborn.c typd_mlc.c version.h \
30 libgcjgc_la_LIBADD = @addobjs@
31 libgcjgc_la_DEPENDENCIES = @addobjs@
32 libgcjgc_la_LDFLAGS = -release $(VERSION) -rpath $(toolexeclibdir)
34 EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s mips_sgi_mach_dep.s \
35 mips_ultrix_mach_dep.s rs6000_mach_dep.s sparc_mach_dep.s \
36 sparc_sunos4_mach_dep.s mach_dep.c ecos.cc
38 AM_CXXFLAGS = @BOEHM_GC_CFLAGS@
39 AM_CFLAGS = @BOEHM_GC_CFLAGS@
41 check_PROGRAMS = gctest
42 gctest_SOURCES = test.c
43 gctest_LDADD = ./libgcjgc.la
46 ## FIXME: relies on internal code generated by automake.
47 all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
48 $(all_objs) : config.h gc_priv.h gc_hdrs.h gc.h gc_mark.h
50 ## FIXME: we shouldn't have to do this, but automake forces us to.
52 $(LTCOMPILE) -x assembler-with-cpp -c $<
54 ## We have our own definition of LTCOMPILE because we want to use our
55 ## CFLAGS, not those passed in from the top level make.
56 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
57 $(AM_CPPFLAGS) $(CPPFLAGS) \
58 $(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS)
59 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
61 AM_CFLAGS = @BOEHM_GC_CFLAGS@
63 # Work around what appears to be a GNU make bug handling MAKEFLAGS
64 # values defined in terms of make variables, as is the case for CC and
65 # friends when we are called from the top level Makefile.
67 "AR_FLAGS=$(AR_FLAGS)" \
68 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
70 "CXXFLAGS=$(CXXFLAGS)" \
71 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
72 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
73 "INSTALL=$(INSTALL)" \
74 "INSTALL_DATA=$(INSTALL_DATA)" \
75 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
76 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
77 "LDFLAGS=$(LDFLAGS)" \
78 "LIBCFLAGS=$(LIBCFLAGS)" \
79 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
81 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
82 "PICFLAG=$(PICFLAG)" \
83 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
86 "RUNTEST=$(RUNTEST)" \
87 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
88 "exec_prefix=$(exec_prefix)" \
89 "infodir=$(infodir)" \
92 "tooldir=$(tooldir)" \
98 "LIBCFLAGS=$(LIBCFLAGS)" \
100 "PICFLAG=$(PICFLAG)" \
104 CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host
107 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
108 maintainer-clean-multi
110 all-recursive: all-multi
111 install-recursive: install-multi
112 mostlyclean-recursive: mostlyclean-multi
113 clean-recursive: clean-multi
114 distclean-recursive: distclean-multi
115 maintainer-clean-recursive: maintainer-clean-multi
118 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
120 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
122 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
124 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
126 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
127 maintainer-clean-multi:
128 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean