Daily bump.
[official-gcc.git] / libmudflap / Makefile.am
blob29091dee9ff965fb0f64843f333ca7463450af95
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002, 2003, 2004, 2007
4 ## Free Software Foundation, Inc.
5 ##
7 AUTOMAKE_OPTIONS = 1.8 foreign
8 ACLOCAL_AMFLAGS = -I .. -I ../config
9 MAINT_CHARSET = latin1
10 SUBDIRS = testsuite
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)
18 if LIBMUDFLAPTH
19 libmudflapth = libmudflapth.la
20 else
21 libmudflapth =
22 endif
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 = \
31         mf-runtime.c \
32         mf-heuristics.c \
33         mf-hooks1.c \
34         mf-hooks2.c
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 = \
41         mf-runtime.c \
42         mf-heuristics.c \
43         mf-hooks1.c \
44         mf-hooks2.c \
45         mf-hooks3.c
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`
52 # XXX hack alert
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.
58 AM_MAKEFLAGS = \
59         "AR_FLAGS=$(AR_FLAGS)" \
60         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
61         "CFLAGS=$(CFLAGS)" \
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)" \
73         "MAKE=$(MAKE)" \
74         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
75         "PICFLAG=$(PICFLAG)" \
76         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
77         "SHELL=$(SHELL)" \
78         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
79         "exec_prefix=$(exec_prefix)" \
80         "infodir=$(infodir)" \
81         "libdir=$(libdir)" \
82         "prefix=$(prefix)" \
83         "includedir=$(includedir)" \
84         "AR=$(AR)" \
85         "AS=$(AS)" \
86         "CC=$(CC)" \
87         "CXX=$(CXX)" \
88         "LD=$(LD)" \
89         "LIBCFLAGS=$(LIBCFLAGS)" \
90         "NM=$(NM)" \
91         "PICFLAG=$(PICFLAG)" \
92         "RANLIB=$(RANLIB)" \
93         "DESTDIR=$(DESTDIR)"
95 MAKEOVERRIDES=
97 ## ################################################################