]>
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 | ||
7 | AUTOMAKE_OPTIONS = cygnus | |
8 | ||
9 | # Multilib support variables. | |
10 | MULTISRCTOP = | |
11 | MULTIBUILDTOP = | |
12 | MULTIDIRS = | |
13 | MULTISUBDIR = | |
14 | MULTIDO = true | |
15 | MULTICLEAN = true | |
16 | ||
b48ed568 TT |
17 | ## Install a library built with a cross compiler in tooldir, not |
18 | ## libdir. | |
19 | if USE_LIBDIR | |
61e922d2 | 20 | toolexeclibdir = $(libdir)$(MULTISUBDIR) |
b48ed568 | 21 | else |
66deb2be TT |
22 | toolexecdir = $(exec_prefix)/$(target_alias) |
23 | toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR) | |
b48ed568 | 24 | endif |
1530be84 | 25 | |
66deb2be TT |
26 | toolexeclib_LTLIBRARIES = $(target_all) |
27 | EXTRA_LTLIBRARIES = libgcjgc.la | |
28 | libgcjgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c \ | |
1530be84 TT |
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 \ | |
eba0e61d TT |
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 | |
66deb2be TT |
36 | libgcjgc_la_LIBADD = @addobjs@ |
37 | libgcjgc_la_DEPENDENCIES = @addobjs@ | |
f687c79e | 38 | libgcjgc_la_LDFLAGS = -version-info 0:0:0 -rpath $(toolexeclibdir) |
1530be84 | 39 | |
66deb2be | 40 | EXTRA_libgcjgc_la_SOURCES = alpha_mach_dep.s mips_sgi_mach_dep.s \ |
1530be84 TT |
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 | |
43 | ||
44 | AM_CXXFLAGS = @BOEHM_GC_CFLAGS@ | |
45 | AM_CFLAGS = @BOEHM_GC_CFLAGS@ | |
46 | ||
47 | check_PROGRAMS = gctest | |
48 | gctest_SOURCES = test.c | |
20bbd3cd | 49 | gctest_LDADD = ./libgcjgc.la $(THREADLIB) |
1530be84 | 50 | |
20bbd3cd | 51 | TESTS = gctest |
1530be84 TT |
52 | |
53 | ## FIXME: relies on internal code generated by automake. | |
66deb2be | 54 | all_objs = @addobjs@ $(libgcjgc_la_OBJECTS) |
1530be84 TT |
55 | $(all_objs) : config.h gc_priv.h gc_hdrs.h gc.h gc_mark.h |
56 | ||
57 | ## FIXME: we shouldn't have to do this, but automake forces us to. | |
2fa39a0e | 58 | .s.lo: |
14eee794 AO |
59 | ## We use -Wp,-P to strip #line directives. Irix `as' chokes on |
60 | ## these. | |
61 | $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $< | |
1530be84 | 62 | |
66deb2be | 63 | ## We have our own definition of LTCOMPILE because we want to use our |
1530be84 | 64 | ## CFLAGS, not those passed in from the top level make. |
66deb2be TT |
65 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \ |
66 | $(AM_CPPFLAGS) $(CPPFLAGS) \ | |
67 | $(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS) | |
68 | LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@ | |
1530be84 TT |
69 | |
70 | AM_CFLAGS = @BOEHM_GC_CFLAGS@ | |
71 | ||
72 | # Work around what appears to be a GNU make bug handling MAKEFLAGS | |
73 | # values defined in terms of make variables, as is the case for CC and | |
74 | # friends when we are called from the top level Makefile. | |
75 | AM_MAKEFLAGS = \ | |
76 | "AR_FLAGS=$(AR_FLAGS)" \ | |
77 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
78 | "CFLAGS=$(CFLAGS)" \ | |
79 | "CXXFLAGS=$(CXXFLAGS)" \ | |
80 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | |
81 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
82 | "INSTALL=$(INSTALL)" \ | |
83 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
84 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
85 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
86 | "LDFLAGS=$(LDFLAGS)" \ | |
87 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
88 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
89 | "MAKE=$(MAKE)" \ | |
90 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
91 | "PICFLAG=$(PICFLAG)" \ | |
92 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ | |
93 | "SHELL=$(SHELL)" \ | |
94 | "EXPECT=$(EXPECT)" \ | |
95 | "RUNTEST=$(RUNTEST)" \ | |
96 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
97 | "exec_prefix=$(exec_prefix)" \ | |
98 | "infodir=$(infodir)" \ | |
99 | "libdir=$(libdir)" \ | |
100 | "prefix=$(prefix)" \ | |
101 | "tooldir=$(tooldir)" \ | |
102 | "AR=$(AR)" \ | |
103 | "AS=$(AS)" \ | |
104 | "CC=$(CC)" \ | |
105 | "CXX=$(CXX)" \ | |
106 | "LD=$(LD)" \ | |
107 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
108 | "NM=$(NM)" \ | |
109 | "PICFLAG=$(PICFLAG)" \ | |
110 | "RANLIB=$(RANLIB)" \ | |
111 | "DESTDIR=$(DESTDIR)" | |
112 | ||
113 | CONFIG_STATUS_DEPENDENCIES = $(boehm_gc_basedir)/configure.host | |
114 | ||
115 | # Multilib support. | |
116 | .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \ | |
117 | maintainer-clean-multi | |
118 | ||
44ebe2d0 AO |
119 | all-am: all-multi |
120 | install-am: install-multi | |
121 | mostlyclean-am: mostlyclean-multi | |
122 | clean-am: clean-multi | |
123 | distclean-am: distclean-multi | |
124 | maintainer-clean-am: maintainer-clean-multi | |
1530be84 TT |
125 | |
126 | all-multi: | |
127 | $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do | |
128 | install-multi: | |
129 | $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do | |
130 | mostlyclean-multi: | |
131 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean | |
132 | clean-multi: | |
133 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean | |
134 | distclean-multi: | |
135 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean | |
136 | maintainer-clean-multi: | |
137 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean | |
138 | ||
139 | MAKEOVERRIDES= |