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