1 ## Makefile for the toplevel directory of the libgcc-math library.
4 ## Free Software Foundation, Inc.
7 AUTOMAKE_OPTIONS = 1.9.5 foreign
8 ACLOCAL_AMFLAGS = -I .. -I ../config
11 SUBDIRS = @arch_subdirs@
13 # May be used by various substitution variables.
14 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
17 version_arg = -Wl,--version-script=gccm.map
18 version_dep = gccm.map
22 for map in @arch_maps@; do \
23 cat $(srcdir)/$$map >> gccm.map; \
32 toolexeclib_LTLIBRARIES = libgcc-math.la
34 libgcc_math_la_SOURCES =
35 libgcc_math_la_LIBADD = @arch_libraries@
36 libgcc_math_la_DEPENDENCIES = $(libgcc_math_la_LIBADD) $(version_dep)
37 libgcc_math_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
43 # From libffi/Makefile.am
45 # Work around what appears to be a GNU make bug handling MAKEFLAGS
46 # values defined in terms of make variables, as is the case for CC and
47 # friends when we are called from the top level Makefile.
49 "AR_FLAGS=$(AR_FLAGS)" \
50 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
52 "CXXFLAGS=$(CXXFLAGS)" \
53 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
54 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
55 "INSTALL=$(INSTALL)" \
56 "INSTALL_DATA=$(INSTALL_DATA)" \
57 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
58 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
59 "JC1FLAGS=$(JC1FLAGS)" \
60 "LDFLAGS=$(LDFLAGS)" \
61 "LIBCFLAGS=$(LIBCFLAGS)" \
62 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
64 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
65 "PICFLAG=$(PICFLAG)" \
66 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
68 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
69 "exec_prefix=$(exec_prefix)" \
70 "infodir=$(infodir)" \
73 "includedir=$(includedir)" \
79 "LIBCFLAGS=$(LIBCFLAGS)" \
81 "PICFLAG=$(PICFLAG)" \
87 ## ################################################################