1 ## Makefile for the toplevel directory of the mudflap library.
3 ## Copyright (C) 2002-2013 Free Software Foundation, Inc.
6 AUTOMAKE_OPTIONS = 1.8 foreign
7 ACLOCAL_AMFLAGS = -I .. -I ../config
11 # May be used by various substitution variables.
12 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
14 SECTION_FLAGS = @SECTION_FLAGS@
15 AM_CFLAGS = -Wall $(SECTION_FLAGS)
18 libmudflapth = libmudflapth.la
23 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
24 target_noncanonical = @target_noncanonical@
25 libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include
26 nobase_libsubinclude_HEADERS = mf-runtime.h
29 libmudflap_la_SOURCES = \
34 libmudflap_la_LIBADD =
35 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
36 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
39 libmudflapth_la_SOURCES = \
45 libmudflapth_la_CFLAGS = -DLIBMUDFLAPTH
46 libmudflapth_la_LIBADD =
47 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
48 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
52 # From libffi/Makefile.am
54 # Work around what appears to be a GNU make bug handling MAKEFLAGS
55 # values defined in terms of make variables, as is the case for CC and
56 # friends when we are called from the top level Makefile.
58 "AR_FLAGS=$(AR_FLAGS)" \
59 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
61 "CXXFLAGS=$(CXXFLAGS)" \
62 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
63 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
64 "INSTALL=$(INSTALL)" \
65 "INSTALL_DATA=$(INSTALL_DATA)" \
66 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
67 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
68 "JC1FLAGS=$(JC1FLAGS)" \
69 "LDFLAGS=$(LDFLAGS)" \
70 "LIBCFLAGS=$(LIBCFLAGS)" \
71 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
73 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
74 "PICFLAG=$(PICFLAG)" \
75 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
77 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
78 "exec_prefix=$(exec_prefix)" \
79 "infodir=$(infodir)" \
82 "includedir=$(includedir)" \
88 "LIBCFLAGS=$(LIBCFLAGS)" \
90 "PICFLAG=$(PICFLAG)" \
96 ## ################################################################