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
8 ACLOCAL_AMFLAGS = -I .. -I ../config
12 # May be used by various substitution variables.
13 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
15 SECTION_FLAGS = @SECTION_FLAGS@
16 AM_CFLAGS = -Wall $(SECTION_FLAGS)
19 libmudflapth = libmudflapth.la
24 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
25 include_HEADERS = mf-runtime.h
28 libmudflap_la_SOURCES = \
33 libmudflap_la_LIBADD =
34 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
35 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
38 rm -f pth/*.o pth/*.lo
40 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
41 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
42 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
43 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
44 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
45 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
46 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
47 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
48 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
49 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
52 libmudflapth_la_SOURCES =
53 libmudflapth_la_LIBADD = \
55 pth/mf-heuristics.lo \
59 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
60 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
64 # From libffi/Makefile.am
66 # Work around what appears to be a GNU make bug handling MAKEFLAGS
67 # values defined in terms of make variables, as is the case for CC and
68 # friends when we are called from the top level Makefile.
70 "AR_FLAGS=$(AR_FLAGS)" \
71 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
73 "CXXFLAGS=$(CXXFLAGS)" \
74 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
75 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
76 "INSTALL=$(INSTALL)" \
77 "INSTALL_DATA=$(INSTALL_DATA)" \
78 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
79 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
80 "JC1FLAGS=$(JC1FLAGS)" \
81 "LDFLAGS=$(LDFLAGS)" \
82 "LIBCFLAGS=$(LIBCFLAGS)" \
83 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
85 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
86 "PICFLAG=$(PICFLAG)" \
87 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
89 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
90 "exec_prefix=$(exec_prefix)" \
91 "infodir=$(infodir)" \
94 "includedir=$(includedir)" \
100 "LIBCFLAGS=$(LIBCFLAGS)" \
102 "PICFLAG=$(PICFLAG)" \
108 ## ################################################################