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 subdir-objects
8 ACLOCAL_AMFLAGS = -I .. -I ../config
12 noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
15 asm_libgcjgc_sources = powerpc_darwin_mach_dep.s
17 asm_libgcjgc_sources =
20 libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
21 dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c \
22 malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
23 obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
24 specific.c stubborn.c typd_mlc.c \
25 backgraph.c win32_threads.c \
26 pthread_support.c pthread_stop_world.c darwin_stop_world.c \
27 $(asm_libgcjgc_sources)
29 libgcjgc_convenience_la_SOURCES = $(libgcjgc_la_SOURCES)
31 EXTRA_DIST = alpha_mach_dep.S \
32 mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_darwin_mach_dep.s \
33 rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
34 sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
36 # Include THREADLIBS here to ensure that the correct versions of
37 # linuxthread semaphore functions get linked:
38 libgcjgc_la_LIBADD = $(addobjs) $(THREADLIBS) $(UNWINDLIBS)
39 libgcjgc_la_DEPENDENCIES = $(addobjs)
40 libgcjgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:2:0 -rpath $(toolexeclibdir)
41 libgcjgc_la_LINK = $(LINK) $(libgcjgc_la_LDFLAGS)
43 libgcjgc_convenience_la_LIBADD = $(addobjs)
44 libgcjgc_convenience_la_DEPENDENCIES = $(addobjs)
46 AM_CXXFLAGS = $(GC_CFLAGS)
47 AM_CFLAGS = $(GC_CFLAGS)
48 AM_LDFLAGS = $(shell $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
49 override CFLAGS := $(filter-out $(O0_CFLAGS), $(CFLAGS)) $(O0_CFLAGS)
51 test_ldadd = libgcjgc.la $(THREADLIBS) $(UNWINDLIBS) $(EXTRA_TEST_LIBS)
53 check_PROGRAMS = gctest
54 gctest_SOURCES = tests/test.c
55 gctest_LDADD = $(test_ldadd)
56 gctest_LDFLAGS = -shared-libgcc
57 gctest_LINK = $(LINK) $(gctest_LDFLAGS)
58 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
61 TESTS += leaktest$(EXEEXT)
62 check_PROGRAMS += leaktest
63 leaktest_SOURCES = tests/leak_test.c
64 leaktest_LDADD = $(test_ldadd)
65 leaktest_LDFLAGS = -shared-libgcc
66 leaktest_LINK = $(LINK) $(leaktest_LDFLAGS)
68 TESTS += middletest$(EXEEXT)
69 check_PROGRAMS += middletest
70 middletest_SOURCES = tests/middle.c
71 middletest_LDADD = $(test_ldadd)
72 middletest_LDFLAGS = -shared-libgcc
73 middletest_LINK = $(LINK) $(middletest_LDFLAGS)
75 TESTS += staticrootstest$(EXEEXT)
76 check_PROGRAMS += staticrootstest
77 staticrootstest_SOURCES = tests/staticrootstest.c
78 staticrootstest_LDADD = $(test_ldadd) libstaticrootslib.la
79 staticrootstest_LDFLAGS = -shared-libgcc
80 staticrootstest_LINK = $(LINK) $(staticrootstest_LDFLAGS)
81 check_LTLIBRARIES = libstaticrootslib.la
82 libstaticrootslib_la_SOURCES = tests/staticrootslib.c
83 libstaticrootslib_la_LIBADD = libgcjgc_convenience.la
84 libstaticrootslib_la_LDFLAGS = -version-info 1:2:0 -no-undefined \
85 -rpath /nowhere -shared-libgcc
86 libstaticrootslib_la_DEPENDENCIES = libgcjgc_convenience.la
88 ## FIXME: we shouldn't have to do this, but automake forces us to.
90 ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
92 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
94 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
96 # Work around what appears to be a GNU make bug handling MAKEFLAGS
97 # values defined in terms of make variables, as is the case for CC and
98 # friends when we are called from the top level Makefile.
100 "AR_FLAGS=$(AR_FLAGS)" \
101 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
103 "CXXFLAGS=$(CXXFLAGS)" \
104 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
105 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
106 "INSTALL=$(INSTALL)" \
107 "INSTALL_DATA=$(INSTALL_DATA)" \
108 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
109 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
110 "LDFLAGS=$(LDFLAGS)" \
111 "LIBCFLAGS=$(LIBCFLAGS)" \
112 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
114 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
115 "PICFLAG=$(PICFLAG)" \
116 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
119 "RUNTEST=$(RUNTEST)" \
120 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
121 "exec_prefix=$(exec_prefix)" \
122 "infodir=$(infodir)" \
125 "tooldir=$(tooldir)" \
131 "LIBCFLAGS=$(LIBCFLAGS)" \
133 "PICFLAG=$(PICFLAG)" \
137 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host