2022-03-11 16:58:31 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
#
|
2024-01-04 19:52:08 +08:00
|
|
|
# Copyright (C) 2021-2024 Free Software Foundation, Inc.
|
2022-03-11 16:58:31 +08:00
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I . -I ..
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = dejagnu foreign
|
|
|
|
|
|
|
|
if BUILD_COLLECTOR
|
|
|
|
COLLECTOR_SUBDIRS = libcollector
|
|
|
|
endif
|
2023-01-21 07:39:55 +08:00
|
|
|
if BUILD_DOC
|
2022-09-17 04:19:38 +08:00
|
|
|
DOC_SUBDIR = doc
|
|
|
|
endif
|
2022-03-11 16:58:31 +08:00
|
|
|
if BUILD_SRC
|
2022-09-17 04:19:38 +08:00
|
|
|
SRC_SUBDIRS = src gp-display-html $(DOC_SUBDIR)
|
2022-03-11 16:58:31 +08:00
|
|
|
endif
|
|
|
|
SUBDIRS = $(COLLECTOR_SUBDIRS) $(SRC_SUBDIRS)
|
2022-09-17 04:19:38 +08:00
|
|
|
DIST_SUBDIRS = libcollector src gp-display-html $(DOC_SUBDIR)
|
2022-03-11 16:58:31 +08:00
|
|
|
|
|
|
|
# Setup the testing framework, if you have one
|
|
|
|
EXPECT = expect
|
|
|
|
RUNTEST = runtest
|
|
|
|
RUNTESTFLAGS =
|
|
|
|
|
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
jdk_inc = @jdk_inc@
|
|
|
|
LD_NO_AS_NEEDED = @LD_NO_AS_NEEDED@
|
|
|
|
GPROFNG_CFLAGS = @GPROFNG_CFLAGS@
|
|
|
|
GPROFNG_CPPFLAGS = @GPROFNG_CPPFLAGS@
|
2022-03-15 06:38:04 +08:00
|
|
|
GPROFNG_BROKEN_JAVAC = @GPROFNG_BROKEN_JAVAC@
|
2022-03-11 16:58:31 +08:00
|
|
|
|
|
|
|
AM_MAKEFLAGS = \
|
|
|
|
jdk_inc="$(jdk_inc)" \
|
|
|
|
LD_NO_AS_NEEDED="$(LD_NO_AS_NEEDED)" \
|
|
|
|
GPROFNG_CFLAGS="$(GPROFNG_CFLAGS)" \
|
2022-03-18 00:57:28 +08:00
|
|
|
GPROFNG_CPPFLAGS="$(GPROFNG_CPPFLAGS)"
|
2022-03-11 16:58:31 +08:00
|
|
|
|
2023-05-26 08:54:53 +08:00
|
|
|
.PHONY: check-small check-extra check-install
|
|
|
|
|
|
|
|
check-DEJAGNU: check-small
|
|
|
|
|
|
|
|
check-small check-extra check-install: site.exp development.exp
|
2023-10-06 04:48:32 +08:00
|
|
|
if TCL_TRY
|
2022-03-11 16:58:31 +08:00
|
|
|
srcroot=`cd $(srcdir) && pwd`; export srcroot; \
|
|
|
|
LC_ALL=C; export LC_ALL; \
|
|
|
|
EXPECT=$(EXPECT); export EXPECT; \
|
|
|
|
jdk_inc="$(jdk_inc)"; export jdk_inc; \
|
|
|
|
runtest=$(RUNTEST); \
|
|
|
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
|
|
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
|
2022-12-19 16:36:21 +08:00
|
|
|
JDK_INC="$(jdk_inc)" \
|
2023-06-27 05:36:50 +08:00
|
|
|
CLOCK_GETTIME_LINK="$(CLOCK_GETTIME_LINK)" \
|
2023-05-26 08:54:53 +08:00
|
|
|
CHECK_TARGET=$@ \
|
|
|
|
PREFIX="$(prefix)" \
|
2024-05-03 09:29:28 +08:00
|
|
|
BASH="$(BASH)" \
|
2022-03-15 06:38:04 +08:00
|
|
|
GPROFNG_BROKEN_JAVAC="$(GPROFNG_BROKEN_JAVAC)" \
|
2022-03-11 16:58:31 +08:00
|
|
|
MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS) $(PTHREAD_CFLAGS)" \
|
|
|
|
LDFLAGS="$(LDFLAGS)" LIBS="$(PTHREAD_LIBS) $(LIBS)" \
|
|
|
|
BUILDDIR="$(abs_top_builddir)" $(RUNTESTFLAGS); \
|
|
|
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
|
|
|
fi
|
2023-10-06 04:48:32 +08:00
|
|
|
endif
|
2022-03-11 16:58:31 +08:00
|
|
|
|
|
|
|
development.exp: $(BFDDIR)/development.sh
|
|
|
|
$(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \
|
|
|
|
| $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
|
|
|
|
|
|
|
|
# development.sh is used to determine -Werror default.
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
|
|
|
|
|
|
|
|
EXTRA_DEJAGNU_SITE_CONFIG = development.exp
|
|
|
|
|
|
|
|
DISTCLEANFILES = site.exp development.exp
|
2023-10-06 04:48:32 +08:00
|
|
|
|
2022-03-11 16:58:31 +08:00
|
|
|
|