* Makefile.in (PREPROCESSOR_DEFINES): New macro.
[official-gcc.git] / boehm-gc / Makefile.am
blob9cf838b3a712ddac81f7b218b51a66a48fa9c9da
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
5 ## Makefile.am.
7 AUTOMAKE_OPTIONS = cygnus
9 # Multilib support variables.
10 MULTISRCTOP =
11 MULTIBUILDTOP =
12 MULTIDIRS =
13 MULTISUBDIR =
14 MULTIDO = true
15 MULTICLEAN = true
17 ## Install a library built with a cross compiler in tooldir, not
18 ## libdir.
19 if USE_LIBDIR
20 toolexeclibdir = $(libdir)$(MULTISUBDIR)
21 else
22 toolexecdir = $(exec_prefix)/$(target_alias)
23 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
24 endif
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 \
35 weakpointer.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.
57 .s.lo:
58 ## We use -Wp,-P to strip #line directives.  Irix `as' chokes on
59 ## these.
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.
74 AM_MAKEFLAGS = \
75         "AR_FLAGS=$(AR_FLAGS)" \
76         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
77         "CFLAGS=$(CFLAGS)" \
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)" \
88         "MAKE=$(MAKE)" \
89         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
90         "PICFLAG=$(PICFLAG)" \
91         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
92         "SHELL=$(SHELL)" \
93         "EXPECT=$(EXPECT)" \
94         "RUNTEST=$(RUNTEST)" \
95         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
96         "exec_prefix=$(exec_prefix)" \
97         "infodir=$(infodir)" \
98         "libdir=$(libdir)" \
99         "prefix=$(prefix)" \
100         "tooldir=$(tooldir)" \
101         "AR=$(AR)" \
102         "AS=$(AS)" \
103         "CC=$(CC)" \
104         "CXX=$(CXX)" \
105         "LD=$(LD)" \
106         "LIBCFLAGS=$(LIBCFLAGS)" \
107         "NM=$(NM)" \
108         "PICFLAG=$(PICFLAG)" \
109         "RANLIB=$(RANLIB)" \
110         "DESTDIR=$(DESTDIR)"
112 CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host
114 # Multilib support.
115 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
116         maintainer-clean-multi
118 all-am: all-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
125 all-multi:
126         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
127 install-multi:
128         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
129 mostlyclean-multi:
130         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
131 clean-multi:
132         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
133 distclean-multi:
134         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
135 maintainer-clean-multi:
136         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
138 MAKEOVERRIDES=