]> git.ipfire.org Git - thirdparty/gcc.git/blob - libmudflap/Makefile.am
Daily bump.
[thirdparty/gcc.git] / libmudflap / Makefile.am
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002-2013 Free Software Foundation, Inc.
4 ##
5
6 AUTOMAKE_OPTIONS = 1.8 foreign
7 ACLOCAL_AMFLAGS = -I .. -I ../config
8 MAINT_CHARSET = latin1
9 SUBDIRS = testsuite
10
11 # May be used by various substitution variables.
12 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
13
14 SECTION_FLAGS = @SECTION_FLAGS@
15 AM_CFLAGS = -Wall $(SECTION_FLAGS)
16
17 if LIBMUDFLAPTH
18 libmudflapth = libmudflapth.la
19 else
20 libmudflapth =
21 endif
22
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
27
28
29 libmudflap_la_SOURCES = \
30 mf-runtime.c \
31 mf-heuristics.c \
32 mf-hooks1.c \
33 mf-hooks2.c
34 libmudflap_la_LIBADD =
35 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
36 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
37
38
39 libmudflapth_la_SOURCES = \
40 mf-runtime.c \
41 mf-heuristics.c \
42 mf-hooks1.c \
43 mf-hooks2.c \
44 mf-hooks3.c
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`
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.
57 AM_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
94 MAKEOVERRIDES=
95
96 ## ################################################################
97