1## Makefile for the toplevel directory of the mudflap library. 2## 3## Copyright (C) 2002-2013 Free Software Foundation, Inc. 4## 5 6AUTOMAKE_OPTIONS = 1.8 foreign 7ACLOCAL_AMFLAGS = -I .. -I ../config 8MAINT_CHARSET = latin1 9SUBDIRS = testsuite 10 11# May be used by various substitution variables. 12gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) 13 14SECTION_FLAGS = @SECTION_FLAGS@ 15AM_CFLAGS = -Wall $(SECTION_FLAGS) 16 17if LIBMUDFLAPTH 18libmudflapth = libmudflapth.la 19else 20libmudflapth = 21endif 22 23toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth) 24target_noncanonical = @target_noncanonical@ 25libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include 26nobase_libsubinclude_HEADERS = mf-runtime.h 27 28 29libmudflap_la_SOURCES = \ 30 mf-runtime.c \ 31 mf-heuristics.c \ 32 mf-hooks1.c \ 33 mf-hooks2.c 34libmudflap_la_LIBADD = 35libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD) 36libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` 37 38 39libmudflapth_la_SOURCES = \ 40 mf-runtime.c \ 41 mf-heuristics.c \ 42 mf-hooks1.c \ 43 mf-hooks2.c \ 44 mf-hooks3.c 45libmudflapth_la_CFLAGS = -DLIBMUDFLAPTH 46libmudflapth_la_LIBADD = 47libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD) 48libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` 49 50 51# XXX hack alert 52# From libffi/Makefile.am 53 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. 57AM_MAKEFLAGS = \ 58 "AR_FLAGS=$(AR_FLAGS)" \ 59 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ 60 "CFLAGS=$(CFLAGS)" \ 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)" \ 72 "MAKE=$(MAKE)" \ 73 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ 74 "PICFLAG=$(PICFLAG)" \ 75 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ 76 "SHELL=$(SHELL)" \ 77 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ 78 "exec_prefix=$(exec_prefix)" \ 79 "infodir=$(infodir)" \ 80 "libdir=$(libdir)" \ 81 "prefix=$(prefix)" \ 82 "includedir=$(includedir)" \ 83 "AR=$(AR)" \ 84 "AS=$(AS)" \ 85 "CC=$(CC)" \ 86 "CXX=$(CXX)" \ 87 "LD=$(LD)" \ 88 "LIBCFLAGS=$(LIBCFLAGS)" \ 89 "NM=$(NM)" \ 90 "PICFLAG=$(PICFLAG)" \ 91 "RANLIB=$(RANLIB)" \ 92 "DESTDIR=$(DESTDIR)" 93 94MAKEOVERRIDES= 95 96## ################################################################ 97 98