OSDN Git Service

2004-06-24 Frank Ch. Eigler <fche@redhat.com>
[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 # 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 $@
31
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)
40
41 clean-local:
42         rm -f pth/*.o pth/*.lo
43         rm -f splay-tree.c splay-tree.h
44
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 $@
55
56
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)
65
66
67
68 # XXX hack alert
69 # From libffi/Makefile.am
70
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)"
109
110 MAKEOVERRIDES=
111
112 ## ################################################################
113