| 1 |
|
| 2 |
## This is used in all Makefile.am's. Set defaults here. |
| 3 |
|
| 4 |
# May be used by various substitution variables. |
| 5 |
gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER) |
| 6 |
|
| 7 |
MAINT_CHARSET = latin1 |
| 8 |
|
| 9 |
mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs |
| 10 |
PWD_COMMAND = $${PWDCMD-pwd} |
| 11 |
STAMP = echo timestamp > |
| 12 |
|
| 13 |
toolexecdir = $(glibcxx_toolexecdir) |
| 14 |
toolexeclibdir = $(glibcxx_toolexeclibdir) |
| 15 |
|
| 16 |
if ENABLE_WERROR |
| 17 |
WERROR_FLAG = -Werror |
| 18 |
else |
| 19 |
WERROR_FLAG = |
| 20 |
endif |
| 21 |
|
| 22 |
if ENABLE_EXTERN_TEMPLATE |
| 23 |
XTEMPLATE_FLAGS = -fno-implicit-templates |
| 24 |
else |
| 25 |
XTEMPLATE_FLAGS = |
| 26 |
endif |
| 27 |
|
| 28 |
if GLIBCXX_LDBL_ALT128_COMPAT |
| 29 |
LDBL_128_FLAGS = $(LONG_DOUBLE_128_FLAGS) |
| 30 |
else |
| 31 |
LDBL_128_FLAGS = |
| 32 |
endif |
| 33 |
|
| 34 |
# These bits are all figured out from configure. Look in acinclude.m4 |
| 35 |
# or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. |
| 36 |
CONFIG_CXXFLAGS = \ |
| 37 |
$(SECTION_FLAGS) $(HWCAP_CFLAGS) -frandom-seed=$@ $(LDBL_128_FLAGS) |
| 38 |
|
| 39 |
WARN_CXXFLAGS = \ |
| 40 |
$(WARN_FLAGS) $(WERROR_FLAG) -fdiagnostics-show-location=once |
| 41 |
|
| 42 |
# -I/-D flags to pass when compiling. |
| 43 |
AM_CPPFLAGS = $(GLIBCXX_INCLUDES) $(CPPFLAGS) |
| 44 |
|