1 ## Makefile for the toplevel directory of the mudflap library.
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
7 AUTOMAKE_OPTIONS = 1.8 foreign
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
15 libmudflapth = libmudflapth.la
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
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
30 $(LN_S) $(srcdir)/../include/splay-tree.h $@
32 libmudflap_la_SOURCES = \
37 mf-runtime.lo: mf-runtime.c splay-tree.c splay-tree.h
38 libmudflap_la_LIBADD =
39 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
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 = \
60 pth/mf-heuristics.lo \
64 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
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.
75 "AR_FLAGS=$(AR_FLAGS)" \
76 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
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)" \
90 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
91 "PICFLAG=$(PICFLAG)" \
92 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
94 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
95 "exec_prefix=$(exec_prefix)" \
96 "infodir=$(infodir)" \
104 "LIBCFLAGS=$(LIBCFLAGS)" \
106 "PICFLAG=$(PICFLAG)" \
112 ## ################################################################