1 ## Makefile for the toplevel directory of the mudflap library.
3 ## Copyright (C) 2002, 2003, 2004, 2007
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 libmudflapth_la_SOURCES = \
46 libmudflapth_la_CFLAGS = -DLIBMUDFLAPTH
47 libmudflapth_la_LIBADD =
48 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
49 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
53 # From libffi/Makefile.am
55 # Work around what appears to be a GNU make bug handling MAKEFLAGS
56 # values defined in terms of make variables, as is the case for CC and
57 # friends when we are called from the top level Makefile.
59 "AR_FLAGS=$(AR_FLAGS)" \
60 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
62 "CXXFLAGS=$(CXXFLAGS)" \
63 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
64 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
65 "INSTALL=$(INSTALL)" \
66 "INSTALL_DATA=$(INSTALL_DATA)" \
67 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
68 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
69 "JC1FLAGS=$(JC1FLAGS)" \
70 "LDFLAGS=$(LDFLAGS)" \
71 "LIBCFLAGS=$(LIBCFLAGS)" \
72 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
74 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
75 "PICFLAG=$(PICFLAG)" \
76 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
78 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
79 "exec_prefix=$(exec_prefix)" \
80 "infodir=$(infodir)" \
83 "includedir=$(includedir)" \
89 "LIBCFLAGS=$(LIBCFLAGS)" \
91 "PICFLAG=$(PICFLAG)" \
97 ## ################################################################