Add hppa*-*-* to dg-error targets at line 5
[official-gcc.git] / libgm2 / Makefile.am
blobde060aaccbafe25e6bfdff740382aeb70f1dfc8c
1 # Makefile for libgm2.
2 #   Copyright 2013-2022  Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; see the file COPYING3.  If not see
16 # <http://www.gnu.org/licenses/>.
19 # if this file is changed then you need to run
21 # autoreconf2.64
23 # Modula-2 support.
24 AUTOMAKE_OPTIONS = 1.8 foreign
26 SUFFIXES = .c .mod .def .o .obj .lo .a
28 ACLOCAL_AMFLAGS = -I .. -I ../config
30 # Multilib support.
31 MAKEOVERRIDES=
33 AM_CFLAGS = -I $(srcdir)/../libgcc -I $(MULTIBUILDTOP)../../gcc/include
35 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
36 TOP_GCCDIR := $(shell cd $(top_srcdir) && cd .. && pwd)
38 TARGET_LONGDOUBLE_ABI := $(if $(strip $(filter powerpc64le%,$(target))),-mabi=ieeelongdouble)
40 GCC_DIR = $(TOP_GCCDIR)/gcc
41 GM2_SRC = $(GCC_DIR)/m2
43 toolexeclibdir=@toolexeclibdir@
44 toolexecdir=@toolexecdir@
45 GM2_FOR_TARGET=@GM2_FOR_TARGET@
47 SUBDIRS = libm2min libm2log libm2cor libm2iso libm2pim
48 GM2_BUILDDIR := $(shell pwd)
49 gm2_cdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
51 # Work around what appears to be a GNU make bug handling MAKEFLAGS
52 # values defined in terms of make variables, as is the case for CC and
53 # friends when we are called from the top level Makefile.
54 AM_MAKEFLAGS = \
55         "GCC_DIR=$(GCC_DIR)" \
56         "GM2_SRC=$(GM2_SRC)" \
57         "AR_FLAGS=$(AR_FLAGS)" \
58         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
59         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
60         "GM2_FOR_TARGET=$(GM2_FOR_TARGET)" \
61         "CFLAGS=$(CFLAGS)" \
62         "CXXFLAGS=$(CXXFLAGS)" \
63         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
64         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
65         "CFLAGS_LONGDOUBLE=$(CFLAGS_LONGDOUBLE)" \
66         "INSTALL=$(INSTALL)" \
67         "INSTALL_DATA=$(INSTALL_DATA)" \
68         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
69         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
70         "LDFLAGS=$(LDFLAGS)" \
71         "LIBCFLAGS=$(LIBCFLAGS)" \
72         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
73         "MAKE=$(MAKE)" \
74         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
75         "PICFLAG=$(PICFLAG)" \
76         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
77         "SHELL=$(SHELL)" \
78         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
79         "exec_prefix=$(exec_prefix)" \
80         "infodir=$(infodir)" \
81         "libdir=$(libdir)" \
82         "includedir=$(includedir)" \
83         "prefix=$(prefix)" \
84         "tooldir=$(tooldir)" \
85         "gxx_include_dir=$(gxx_include_dir)" \
86         "AR=$(AR)" \
87         "AS=$(AS)" \
88         "LD=$(LD)" \
89         "RANLIB=$(RANLIB)" \
90         "NM=$(NM)" \
91         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
92         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
93         "DESTDIR=$(DESTDIR)" \
94         "WERROR=$(WERROR)" \
95         "TARGET_LIB_PATH=$(TARGET_LIB_PATH)" \
96         "TARGET_LIB_PATH_libgm2=$(TARGET_LIB_PATH_libgm2)" \
97         "TARGET_LONGDOUBLE_ABI=$(TARGET_LONGDOUBLE_ABI)" \
98         "LIBTOOL=$(GM2_BUILDDIR)/libtool"
100 # Subdir rules rely on $(FLAGS_TO_PASS)
101 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
103 include $(top_srcdir)/../multilib.am