* config/mn10300/mn10300-protos.h (legitimate_address_p): Declare.
[official-gcc.git] / libmudflap / Makefile.am
blob639db4218d40a193163fbc35aa00fef6e0431d9b
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
5 ##
7 AUTOMAKE_OPTIONS = 1.8 foreign
8 MAINT_CHARSET = latin1
9 SUBDIRS = testsuite
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
14 if LIBMUDFLAPTH
15 libmudflapth = libmudflapth.la
16 else
17 libmudflapth =
18 endif
20 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
21 include_HEADERS = mf-runtime.h
23 # Copy this out of libiberty's source tree, so it can be built here via libtool
24 splay-tree.c:
25         rm -f $@
26         $(LN_S) $(srcdir)/../libiberty/splay-tree.c $@
27 # Copy this so that top-level include/ does not have to be put into -I path
28 splay-tree.h:
29         rm -f $@
30         $(LN_S) $(srcdir)/../include/splay-tree.h $@
32 libmudflap_la_SOURCES = \
33         mf-runtime.c \
34         mf-heuristics.c \
35         mf-hooks1.c \
36         mf-hooks2.c
37 mf-runtime.lo: mf-runtime.c splay-tree.c splay-tree.h
38 libmudflap_la_LIBADD = 
39 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
41 clean-local:
42         rm -f pth/*.o pth/*.lo
43         rm -f splay-tree.c splay-tree.h
45 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h splay-tree.c splay-tree.h
46         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
47 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
48         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
49 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
50         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
51 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
52         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
53 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
54         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
57 libmudflapth_la_SOURCES =
58 libmudflapth_la_LIBADD = \
59         pth/mf-runtime.lo \
60         pth/mf-heuristics.lo \
61         pth/mf-hooks1.lo \
62         pth/mf-hooks2.lo \
63         pth/mf-hooks3.lo
64 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
68 # XXX hack alert
69 # From libffi/Makefile.am
71 # Work around what appears to be a GNU make bug handling MAKEFLAGS
72 # values defined in terms of make variables, as is the case for CC and
73 # friends when we are called from the top level Makefile.
74 AM_MAKEFLAGS = \
75         "AR_FLAGS=$(AR_FLAGS)" \
76         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
77         "CFLAGS=$(CFLAGS)" \
78         "CXXFLAGS=$(CXXFLAGS)" \
79         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
80         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
81         "INSTALL=$(INSTALL)" \
82         "INSTALL_DATA=$(INSTALL_DATA)" \
83         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
85         "JC1FLAGS=$(JC1FLAGS)" \
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         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
95         "exec_prefix=$(exec_prefix)" \
96         "infodir=$(infodir)" \
97         "libdir=$(libdir)" \
98         "prefix=$(prefix)" \
99         "AR=$(AR)" \
100         "AS=$(AS)" \
101         "CC=$(CC)" \
102         "CXX=$(CXX)" \
103         "LD=$(LD)" \
104         "LIBCFLAGS=$(LIBCFLAGS)" \
105         "NM=$(NM)" \
106         "PICFLAG=$(PICFLAG)" \
107         "RANLIB=$(RANLIB)" \
108         "DESTDIR=$(DESTDIR)"
110 MAKEOVERRIDES=
112 ## ################################################################