OSDN Git Service

* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.
[pf3gnuchains/gcc-fork.git] / libmudflap / Makefile.am
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
5 ##
6
7 AUTOMAKE_OPTIONS = 1.8 foreign
8 ACLOCAL_AMFLAGS = -I .. -I ../config
9 MAINT_CHARSET = latin1
10 SUBDIRS = testsuite
11
12 # May be used by various substitution variables.
13 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
14
15 SECTION_FLAGS = @SECTION_FLAGS@
16 AM_CFLAGS = -Wall $(SECTION_FLAGS)
17
18 if LIBMUDFLAPTH
19 libmudflapth = libmudflapth.la
20 else
21 libmudflapth =
22 endif
23
24 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
25 target_noncanonical = @target_noncanonical@
26 libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include
27 nobase_libsubinclude_HEADERS = mf-runtime.h
28
29
30 libmudflap_la_SOURCES = \
31         mf-runtime.c \
32         mf-heuristics.c \
33         mf-hooks1.c \
34         mf-hooks2.c
35 libmudflap_la_LIBADD = 
36 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
37 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
38
39 clean-local:
40         rm -f pth/*.o pth/*.lo
41
42 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
43         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
44 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
45         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
46 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
47         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
48 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
49         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
50 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
51         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
52
53
54 libmudflapth_la_SOURCES =
55 libmudflapth_la_LIBADD = \
56         pth/mf-runtime.lo \
57         pth/mf-heuristics.lo \
58         pth/mf-hooks1.lo \
59         pth/mf-hooks2.lo \
60         pth/mf-hooks3.lo
61 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
62 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
63
64
65 # XXX hack alert
66 # From libffi/Makefile.am
67
68 # Work around what appears to be a GNU make bug handling MAKEFLAGS
69 # values defined in terms of make variables, as is the case for CC and
70 # friends when we are called from the top level Makefile.
71 AM_MAKEFLAGS = \
72         "AR_FLAGS=$(AR_FLAGS)" \
73         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
74         "CFLAGS=$(CFLAGS)" \
75         "CXXFLAGS=$(CXXFLAGS)" \
76         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
77         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
78         "INSTALL=$(INSTALL)" \
79         "INSTALL_DATA=$(INSTALL_DATA)" \
80         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
81         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
82         "JC1FLAGS=$(JC1FLAGS)" \
83         "LDFLAGS=$(LDFLAGS)" \
84         "LIBCFLAGS=$(LIBCFLAGS)" \
85         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
86         "MAKE=$(MAKE)" \
87         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
88         "PICFLAG=$(PICFLAG)" \
89         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
90         "SHELL=$(SHELL)" \
91         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
92         "exec_prefix=$(exec_prefix)" \
93         "infodir=$(infodir)" \
94         "libdir=$(libdir)" \
95         "prefix=$(prefix)" \
96         "includedir=$(includedir)" \
97         "AR=$(AR)" \
98         "AS=$(AS)" \
99         "CC=$(CC)" \
100         "CXX=$(CXX)" \
101         "LD=$(LD)" \
102         "LIBCFLAGS=$(LIBCFLAGS)" \
103         "NM=$(NM)" \
104         "PICFLAG=$(PICFLAG)" \
105         "RANLIB=$(RANLIB)" \
106         "DESTDIR=$(DESTDIR)"
107
108 MAKEOVERRIDES=
109
110 .PHONY: install-html
111
112 install-html:
113
114 ## ################################################################
115