1
## Process this with automake to create Makefile.in
3
AUTOMAKE_OPTIONS = cygnus
5
## ################################################################
8
## This section is for make and multilib madness.
11
# Work around what appears to be a GNU make bug handling MAKEFLAGS
12
# values defined in terms of make variables, as is the case for CC and
13
# friends when we are called from the top level Makefile.
15
"AR_FLAGS=$(AR_FLAGS)" \
16
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
18
"CXXFLAGS=$(CXXFLAGS)" \
19
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
20
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
21
"INSTALL=$(INSTALL)" \
22
"INSTALL_DATA=$(INSTALL_DATA)" \
23
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
24
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
25
"JC1FLAGS=$(JC1FLAGS)" \
26
"LDFLAGS=$(LDFLAGS)" \
27
"LIBCFLAGS=$(LIBCFLAGS)" \
28
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
30
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
31
"PICFLAG=$(PICFLAG)" \
32
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
34
"exec_prefix=$(exec_prefix)" \
35
"infodir=$(infodir)" \
43
"LIBCFLAGS=$(LIBCFLAGS)" \
45
"PICFLAG=$(PICFLAG)" \
51
# Multilib support variables.
59
toolexeclib_LTLIBRARIES = libdemangler.la
61
# We want to compile this for C.
62
AM_CPPFLAGS = -D_GLIBCXX_DEMANGLER_NOSTDCXX
63
AM_CXXFLAGS = -fno-rtti -fno-exceptions -fimplicit-templates
65
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \
66
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
67
CXXLINK = $(LIBTOOL) --mode=link $(CC) $(AM_CXXFLAGS) $(CXXFLAGS) \
68
$(AM_LDFLAGS) $(LDFLAGS) -o $@
70
libdemangler_la_LDFLAGS = -release $(VERSION)
72
# FIXME: Does it work with multilib?
73
INCLUDES = -I$(top_srcdir)/$(MULTISRCTOP)../include \
74
-I$(top_srcdir)/$(MULTISRCTOP)include
76
libdemangler_common_SOURCES = demangle.cc
77
libdemangler_la_SOURCES = $(libdemangler_common_SOURCES)
80
.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
81
maintainer-clean-multi
83
all-recursive: all-multi
84
demangler-recursive: demangler-multi
85
install-recursive: install-multi
86
mostlyclean-recursive: mostlyclean-multi
87
clean-recursive: clean-multi
88
distclean-recursive: distclean-multi
89
maintainer-clean-recursive: maintainer-clean-multi
92
: $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
94
$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
96
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
98
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
100
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
101
maintainer-clean-multi:
102
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean