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 target_noncanonical = @target_noncanonical@
26 libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include
27 nobase_libsubinclude_HEADERS = mf-runtime.h
30 libmudflap_la_SOURCES = \
35 libmudflap_la_LIBADD =
36 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
37 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
40 rm -f pth/*.o pth/*.lo
42 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
43 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
44 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
45 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
46 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
47 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
48 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
49 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
50 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
51 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
54 libmudflapth_la_SOURCES =
55 libmudflapth_la_LIBADD = \
57 pth/mf-heuristics.lo \
61 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
62 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
66 # From libffi/Makefile.am
68 # Work around what appears to be a GNU make bug handling MAKEFLAGS
69 # values defined in terms of make variables, as is the case for CC and
70 # friends when we are called from the top level Makefile.
72 "AR_FLAGS=$(AR_FLAGS)" \
73 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
75 "CXXFLAGS=$(CXXFLAGS)" \
76 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
77 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
78 "INSTALL=$(INSTALL)" \
79 "INSTALL_DATA=$(INSTALL_DATA)" \
80 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
81 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
82 "JC1FLAGS=$(JC1FLAGS)" \
83 "LDFLAGS=$(LDFLAGS)" \
84 "LIBCFLAGS=$(LIBCFLAGS)" \
85 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
87 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
88 "PICFLAG=$(PICFLAG)" \
89 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
91 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
92 "exec_prefix=$(exec_prefix)" \
93 "infodir=$(infodir)" \
96 "includedir=$(includedir)" \
102 "LIBCFLAGS=$(LIBCFLAGS)" \
104 "PICFLAG=$(PICFLAG)" \
110 # No install-html or install-pdf support in automake yet
111 .PHONY: install-html install-pdf
115 ## ################################################################