]>
Commit | Line | Data |
---|---|---|
1530be84 TT |
1 | ## Process this file with automake to produce Makefile.in. |
2 | ||
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. | |
6 | ||
94ea609a | 7 | AUTOMAKE_OPTIONS = foreign subdir-objects |
97ee7627 | 8 | ACLOCAL_AMFLAGS = -I .. -I ../config |
1530be84 | 9 | |
94ea609a | 10 | SUBDIRS = include testsuite |
dd071c20 | 11 | |
e3c98562 | 12 | noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la |
ce3b24a7 | 13 | |
30c3de1f | 14 | if POWERPC_DARWIN |
c3e78ec8 | 15 | asm_libgcjgc_sources = powerpc_darwin_mach_dep.s |
30c3de1f | 16 | else |
c3e78ec8 | 17 | asm_libgcjgc_sources = |
30c3de1f JS |
18 | endif |
19 | ||
54f28c21 BM |
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 \ | |
30c3de1f | 22 | malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \ |
9110a741 | 23 | obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \ |
28e2ff77 | 24 | specific.c stubborn.c typd_mlc.c \ |
30c3de1f JS |
25 | backgraph.c win32_threads.c \ |
26 | pthread_support.c pthread_stop_world.c darwin_stop_world.c \ | |
54f28c21 BM |
27 | $(asm_libgcjgc_sources) |
28 | ||
29 | libgcjgc_convenience_la_SOURCES = $(libgcjgc_la_SOURCES) | |
e301621d | 30 | |
bf9a420e | 31 | EXTRA_DIST = alpha_mach_dep.S \ |
30c3de1f | 32 | mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_darwin_mach_dep.s \ |
ce3b24a7 BM |
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 | |
35 | ||
e301621d BM |
36 | # Include THREADLIBS here to ensure that the correct versions of |
37 | # linuxthread semaphore functions get linked: | |
94ea609a | 38 | libgcjgc_la_LIBADD = $(addobjs) $(THREADLIBS) |
2a6fa9ae | 39 | libgcjgc_la_DEPENDENCIES = $(addobjs) |
53630715 | 40 | libgcjgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:2:0 -rpath $(toolexeclibdir) |
878f62e5 | 41 | libgcjgc_la_LINK = $(LINK) $(libgcjgc_la_LDFLAGS) |
1530be84 | 42 | |
2a6fa9ae PB |
43 | libgcjgc_convenience_la_LIBADD = $(addobjs) |
44 | libgcjgc_convenience_la_DEPENDENCIES = $(addobjs) | |
1530be84 | 45 | |
94ea609a RO |
46 | AM_CXXFLAGS = $(GC_CFLAGS) $(THREADCFLAGS) |
47 | AM_CFLAGS = $(GC_CFLAGS) $(THREADCFLAGS) | |
2a6fa9ae PB |
48 | AM_LDFLAGS = $(shell $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) |
49 | override CFLAGS := $(filter-out $(O0_CFLAGS), $(CFLAGS)) $(O0_CFLAGS) | |
1530be84 | 50 | |
1530be84 | 51 | ## FIXME: we shouldn't have to do this, but automake forces us to. |
2fa39a0e | 52 | .s.lo: |
14eee794 AO |
53 | ## We use -Wp,-P to strip #line directives. Irix `as' chokes on |
54 | ## these. | |
55 | $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $< | |
500e1264 AT |
56 | .S.lo: |
57 | $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $< | |
1530be84 | 58 | |
1530be84 TT |
59 | # Work around what appears to be a GNU make bug handling MAKEFLAGS |
60 | # values defined in terms of make variables, as is the case for CC and | |
61 | # friends when we are called from the top level Makefile. | |
62 | AM_MAKEFLAGS = \ | |
63 | "AR_FLAGS=$(AR_FLAGS)" \ | |
64 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
65 | "CFLAGS=$(CFLAGS)" \ | |
66 | "CXXFLAGS=$(CXXFLAGS)" \ | |
67 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | |
68 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
69 | "INSTALL=$(INSTALL)" \ | |
70 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
71 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
72 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
73 | "LDFLAGS=$(LDFLAGS)" \ | |
74 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
75 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
76 | "MAKE=$(MAKE)" \ | |
77 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
78 | "PICFLAG=$(PICFLAG)" \ | |
79 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ | |
80 | "SHELL=$(SHELL)" \ | |
81 | "EXPECT=$(EXPECT)" \ | |
82 | "RUNTEST=$(RUNTEST)" \ | |
83 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
84 | "exec_prefix=$(exec_prefix)" \ | |
85 | "infodir=$(infodir)" \ | |
86 | "libdir=$(libdir)" \ | |
87 | "prefix=$(prefix)" \ | |
88 | "tooldir=$(tooldir)" \ | |
89 | "AR=$(AR)" \ | |
90 | "AS=$(AS)" \ | |
91 | "CC=$(CC)" \ | |
92 | "CXX=$(CXX)" \ | |
93 | "LD=$(LD)" \ | |
94 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
95 | "NM=$(NM)" \ | |
96 | "PICFLAG=$(PICFLAG)" \ | |
97 | "RANLIB=$(RANLIB)" \ | |
98 | "DESTDIR=$(DESTDIR)" | |
99 | ||
a5440f9e | 100 | CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host |
1530be84 | 101 | |
1530be84 | 102 | MAKEOVERRIDES= |