comparison gc/Makefile.am @ 51488:5de98dce4bd1

*** empty log message ***
author Dave Love <fx@gnu.org>
date Thu, 05 Jun 2003 17:49:22 +0000
parents
children
comparison
equal deleted inserted replaced
51487:01d68b199093 51488:5de98dce4bd1
1 # Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
2 #
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
5 #
6 # Permission is hereby granted to use or copy this program
7 # for any purpose, provided the above notices are retained on all copies.
8 # Permission to modify the code and to distribute modified code is granted,
9 # provided the above notices are retained, and a notice that the code was
10 # modified is included with the above copyright notice.
11 #
12 # Original author: Tom Tromey
13 # Severely truncated by Hans-J. Boehm
14 # Modified by: Grzegorz Jakacki <jakacki at acm dot org>
15
16 ## Process this file with automake to produce Makefile.in.
17
18 ## FIXME: `make distcheck' in this directory will not currently work.
19 ## This is most likely to the explicit flags passed to submakes.
20
21 AUTOMAKE_OPTIONS = foreign
22
23 SUBDIRS = doc include
24
25 EXTRA_DIST =
26 ## more items will be succesively added below
27
28 lib_LTLIBRARIES = libgc.la
29
30 include_HEADERS = include/gc.h include/gc_local_alloc.h \
31 include/gc_pthread_redirects.h include/gc_config_macros.h \
32 include/leak_detector.h include/gc_typed.h @addincludes@
33
34 EXTRA_HEADERS = include/gc_cpp.h include/gc_allocator.h
35
36 libgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
37 dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c irix_threads.c \
38 linux_threads.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
39 obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
40 solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c \
41 backgraph.c win32_threads.c
42
43 # Include THREADLIBS here to ensure that the correct versions of
44 # linuxthread semaphore functions get linked:
45 libgc_la_LIBADD = @addobjs@ $(THREADLIBS)
46 libgc_la_DEPENDENCIES = @addobjs@
47 libgc_la_LDFLAGS = -version-info 1:2:0
48
49 EXTRA_libgc_la_SOURCES = alpha_mach_dep.S \
50 mips_sgi_mach_dep.S mips_ultrix_mach_dep.s powerpc_macosx_mach_dep.s \
51 rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
52 sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s gc_cpp.cc
53
54 EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.S sparc_mach_dep.S
55
56 AM_CXXFLAGS = @GC_CFLAGS@
57 AM_CFLAGS = @GC_CFLAGS@
58
59 check_PROGRAMS = gctest @addtests@
60 EXTRA_PROGRAMS = test_cpp
61
62 test.o: $(srcdir)/tests/test.c
63 $(COMPILE) -c $(srcdir)/tests/test.c
64 # Using $< in the above seems to fail with the HP/UX on Itanium make.
65 test_cpp.o: $(srcdir)/tests/test_cpp.cc
66 $(COMPILE) -c $(srcdir)/tests/test_cpp.cc
67
68 ## FIXME: this is probably the reason why some files from BUILT_SOURCES
69 ## are included in the distribution
70 # gctest_OBJECTS = test.o
71 gctest_SOURCES = tests/test.c
72 gctest_LDADD = ./libgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
73 test_cpp_SOURCES = tests/test_cpp.cc
74 test_cpp_LDADD = ./libgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
75 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../gcc
76 TESTS = gctest @addtests@
77
78 ## FIXME: relies on internal code generated by automake.
79 all_objs = @addobjs@ $(libgc_la_OBJECTS)
80 $(all_objs) : include/private/gcconfig.h include/private/gc_priv.h \
81 include/private/gc_hdrs.h include/gc.h include/gc_gcj.h \
82 include/gc_pthread_redirects.h include/gc_config_macros.h \
83 include/gc_mark.h @addincludes@
84
85 ## FIXME: we shouldn't have to do this, but automake forces us to.
86 .s.lo:
87 ## We use -Wp,-P to strip #line directives. Irix `as' chokes on
88 ## these.
89 $(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
90
91 ## We have our own definition of LTCOMPILE because we want to use our
92 ## CFLAGS, not those passed in from the top level make.
93 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
94 $(AM_CPPFLAGS) $(CPPFLAGS) \
95 $(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS)
96 LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
97
98 ## We need to add DEFS to assembler flags
99 ## :FIXME: what if assembler does not accept -D... ?
100 ## (use Autoconf to prepare ASDEFS ???)
101
102 CCASFLAGS += $(DEFS)
103
104 dist_noinst_SCRIPTS = callprocs configure.host
105 ## callprocs --- used by Makefile.{dj,direct}
106 ## configure.host --- used by Makefile.{am,dj,direct}
107
108 # headers which are not installed
109 # (see include/Makefile.am for more)
110 #
111 dist_noinst_HEADERS = version.h
112
113 # documentation which is not installed
114 #
115 EXTRA_DIST += README.QUICK
116
117 # other makefiles
118 # :GOTCHA: deliberately we do not include 'Makefile'
119 EXTRA_DIST += BCC_MAKEFILE NT_MAKEFILE NT_THREADS_MAKEFILE \
120 OS2_MAKEFILE PCR-Makefile digimars.mak EMX_MAKEFILE \
121 Makefile.direct Makefile.dj Makefile.DLLs SMakefile.amiga \
122 WCC_MAKEFILE
123
124 # files used by makefiles other than Makefile.am
125 # (:FIXME: do we really need gcc_support.c ?)
126 #
127 EXTRA_DIST += add_gc_prefix.c gcname.c if_mach.c if_not_there.c \
128 hpux_test_and_clear.s pc_excludes gc.mak MacOS.c \
129 MacProjects.sit.hqx gcc_support.c mach_dep.c setjmp_t.c \
130 threadlibs.c AmigaOS.c \
131 Mac_files/datastart.c Mac_files/dataend.c \
132 Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h
133
134 # part of C++ interface
135 #
136 EXTRA_DIST += gc_cpp.cc gc_cpp.cpp
137
138 # tests not used by Makefile.am (:FIXME: why?)
139 #
140 EXTRA_DIST += tests/test_cpp.cc tests/trace_test.c \
141 tests/leak_test.c tests/thread_leak_test.c
142
143 # cord package
144 #
145 EXTRA_DIST += cord/cordbscs.c cord/cordtest.c cord/de.c cord/de_win.c \
146 cord/de_win.ICO cord/cordprnt.c cord/cordxtra.c cord/de_cmds.h \
147 cord/de_win.h cord/de_win.RC
148
149 # this is an auxiliary shell file used by Makefile and Makefile.direct
150 #
151 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
152
153 # :FIXME: why do we distribute this one???
154 #
155 EXTRA_DIST += libtool.m4
156
157 MAKEOVERRIDES=
158
159 #
160 # :GOTCHA: GNU make rule for making .s out of .S is flawed,
161 # it will not remove dest if building fails
162 .S.s:
163 if $(CPP) $< >$@ ; then :; else rm -f $@; fi