OSDN Git Service

* Fix for g++/15861
[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 MAINT_CHARSET = latin1
9 SUBDIRS = testsuite
10
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
13
14 if LIBMUDFLAPTH
15 libmudflapth = libmudflapth.la
16 else
17 libmudflapth =
18 endif
19
20 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
21 include_HEADERS = mf-runtime.h
22
23
24 libmudflap_la_SOURCES = \
25         mf-runtime.c \
26         mf-heuristics.c \
27         mf-hooks1.c \
28         mf-hooks2.c
29 mf-runtime.lo: mf-runtime.c splay-tree.c splay-tree.h
30 libmudflap_la_LIBADD = 
31 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
32 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
33
34 clean-local:
35         rm -f pth/*.o pth/*.lo
36
37 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h splay-tree.c splay-tree.h
38         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
39 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
40         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
41 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
42         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
43 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
44         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
45 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
46         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
47
48
49 libmudflapth_la_SOURCES =
50 libmudflapth_la_LIBADD = \
51         pth/mf-runtime.lo \
52         pth/mf-heuristics.lo \
53         pth/mf-hooks1.lo \
54         pth/mf-hooks2.lo \
55         pth/mf-hooks3.lo
56 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
57 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
58
59
60 # XXX hack alert
61 # From libffi/Makefile.am
62
63 # Work around what appears to be a GNU make bug handling MAKEFLAGS
64 # values defined in terms of make variables, as is the case for CC and
65 # friends when we are called from the top level Makefile.
66 AM_MAKEFLAGS = \
67         "AR_FLAGS=$(AR_FLAGS)" \
68         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
69         "CFLAGS=$(CFLAGS)" \
70         "CXXFLAGS=$(CXXFLAGS)" \
71         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
72         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
73         "INSTALL=$(INSTALL)" \
74         "INSTALL_DATA=$(INSTALL_DATA)" \
75         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
76         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
77         "JC1FLAGS=$(JC1FLAGS)" \
78         "LDFLAGS=$(LDFLAGS)" \
79         "LIBCFLAGS=$(LIBCFLAGS)" \
80         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
81         "MAKE=$(MAKE)" \
82         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
83         "PICFLAG=$(PICFLAG)" \
84         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
85         "SHELL=$(SHELL)" \
86         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
87         "exec_prefix=$(exec_prefix)" \
88         "infodir=$(infodir)" \
89         "libdir=$(libdir)" \
90         "prefix=$(prefix)" \
91         "AR=$(AR)" \
92         "AS=$(AS)" \
93         "CC=$(CC)" \
94         "CXX=$(CXX)" \
95         "LD=$(LD)" \
96         "LIBCFLAGS=$(LIBCFLAGS)" \
97         "NM=$(NM)" \
98         "PICFLAG=$(PICFLAG)" \
99         "RANLIB=$(RANLIB)" \
100         "DESTDIR=$(DESTDIR)"
101
102 MAKEOVERRIDES=
103
104 ## ################################################################
105