x86: have insns acting on segment selector values allow for consistent operands
[binutils-gdb.git] / gprofng / Makefile.am
blob9658efd348c22d885ccd838610f8885892a02d0d
1 ## Process this file with automake to generate Makefile.in
3 #   Copyright (C) 2021-2023 Free Software Foundation, Inc.
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3.  If not see
17 # <http://www.gnu.org/licenses/>.
19 ACLOCAL_AMFLAGS = -I . -I .. 
21 AUTOMAKE_OPTIONS = dejagnu foreign
23 if BUILD_COLLECTOR
24     COLLECTOR_SUBDIRS = libcollector
25 endif
26 if BUILD_DOC
27     DOC_SUBDIR = doc
28 endif
29 if BUILD_SRC
30     SRC_SUBDIRS = src gp-display-html $(DOC_SUBDIR)
31 endif
32 SUBDIRS = $(COLLECTOR_SUBDIRS) $(SRC_SUBDIRS)
33 DIST_SUBDIRS = libcollector src gp-display-html $(DOC_SUBDIR)
35 # Setup the testing framework, if you have one
36 EXPECT = expect
37 RUNTEST = runtest
38 RUNTESTFLAGS =
40 BASEDIR = $(srcdir)/..
41 BFDDIR = $(BASEDIR)/bfd
42 jdk_inc = @jdk_inc@
43 LD_NO_AS_NEEDED = @LD_NO_AS_NEEDED@
44 GPROFNG_CFLAGS = @GPROFNG_CFLAGS@
45 GPROFNG_CPPFLAGS = @GPROFNG_CPPFLAGS@
46 GPROFNG_BROKEN_JAVAC = @GPROFNG_BROKEN_JAVAC@
48 AM_MAKEFLAGS = \
49         jdk_inc="$(jdk_inc)" \
50         LD_NO_AS_NEEDED="$(LD_NO_AS_NEEDED)" \
51         GPROFNG_CFLAGS="$(GPROFNG_CFLAGS)" \
52         GPROFNG_CPPFLAGS="$(GPROFNG_CPPFLAGS)"
54 if TCL_TRY
55 check-DEJAGNU: site.exp development.exp
56         srcroot=`cd $(srcdir) && pwd`; export srcroot; \
57         r=`pwd`; export r; \
58         LC_ALL=C; export LC_ALL; \
59         EXPECT=$(EXPECT); export EXPECT; \
60         jdk_inc="$(jdk_inc)"; export jdk_inc; \
61         runtest=$(RUNTEST); \
62         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
63           $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
64                 JDK_INC="$(jdk_inc)" \
65                 GPROFNG_BROKEN_JAVAC="$(GPROFNG_BROKEN_JAVAC)" \
66                 MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS) $(PTHREAD_CFLAGS)" \
67                 LDFLAGS="$(LDFLAGS)" LIBS="$(PTHREAD_LIBS) $(LIBS)" \
68                 BUILDDIR="$(abs_top_builddir)" $(RUNTESTFLAGS); \
69         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
70         fi
72 development.exp: $(BFDDIR)/development.sh
73         $(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh  \
74           | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
76 # development.sh is used to determine -Werror default.
77 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
79 EXTRA_DEJAGNU_SITE_CONFIG = development.exp
81 DISTCLEANFILES = site.exp development.exp
82 endif