PR middle-end/14521
[official-gcc.git] / libmudflap / Makefile.am
blobcdb608531f7caf8b75a8ed83b18af6efc1d77e67
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
5 ##
7 AUTOMAKE_OPTIONS = 1.8 foreign
8 MAINT_CHARSET = latin1
9 SUBDIRS = testsuite
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
14 if LIBMUDFLAPTH
15 libmudflapth = libmudflapth.la
16 else
17 libmudflapth =
18 endif
20 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
21 include_HEADERS = mf-runtime.h
24 libmudflap_la_SOURCES = \
25         mf-runtime.c \
26         mf-heuristics.c \
27         mf-hooks1.c \
28         mf-hooks2.c
29 libmudflap_la_LIBADD = 
30 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
31 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
33 clean-local:
34         rm -f pth/*.o pth/*.lo
36 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
37         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
38 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
39         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
40 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
41         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
42 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
43         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
44 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
45         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
48 libmudflapth_la_SOURCES =
49 libmudflapth_la_LIBADD = \
50         pth/mf-runtime.lo \
51         pth/mf-heuristics.lo \
52         pth/mf-hooks1.lo \
53         pth/mf-hooks2.lo \
54         pth/mf-hooks3.lo
55 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
56 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
59 # XXX hack alert
60 # From libffi/Makefile.am
62 # Work around what appears to be a GNU make bug handling MAKEFLAGS
63 # values defined in terms of make variables, as is the case for CC and
64 # friends when we are called from the top level Makefile.
65 AM_MAKEFLAGS = \
66         "AR_FLAGS=$(AR_FLAGS)" \
67         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
68         "CFLAGS=$(CFLAGS)" \
69         "CXXFLAGS=$(CXXFLAGS)" \
70         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
71         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
72         "INSTALL=$(INSTALL)" \
73         "INSTALL_DATA=$(INSTALL_DATA)" \
74         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
75         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
76         "JC1FLAGS=$(JC1FLAGS)" \
77         "LDFLAGS=$(LDFLAGS)" \
78         "LIBCFLAGS=$(LIBCFLAGS)" \
79         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
80         "MAKE=$(MAKE)" \
81         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
82         "PICFLAG=$(PICFLAG)" \
83         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
84         "SHELL=$(SHELL)" \
85         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
86         "exec_prefix=$(exec_prefix)" \
87         "infodir=$(infodir)" \
88         "libdir=$(libdir)" \
89         "prefix=$(prefix)" \
90         "AR=$(AR)" \
91         "AS=$(AS)" \
92         "CC=$(CC)" \
93         "CXX=$(CXX)" \
94         "LD=$(LD)" \
95         "LIBCFLAGS=$(LIBCFLAGS)" \
96         "NM=$(NM)" \
97         "PICFLAG=$(PICFLAG)" \
98         "RANLIB=$(RANLIB)" \
99         "DESTDIR=$(DESTDIR)"
101 MAKEOVERRIDES=
103 ## ################################################################