1 # Skeleton makefile for display tests
2 # Copyright (C) 2021-2023 Free Software Foundation, Inc.
4 # This file is part of the GNU Binutils.
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
23 SHAREDOPT = -fpic -shared
25 #JAVABIN = /usr/java/latest/bin
26 JAVABIN = $(shell dirname `which java`)
27 JAVA = $(JAVABIN)/java
28 JAVAC = $(JAVABIN)/javac
36 COLLECT = $(GPROFNG) collect app
37 DISPLAY = $(GPROFNG) display text
40 DISPLAY_LOG = display.log
42 export LD_LIBRARY_PATH := $(BUILDDIR)/src
44 # Set GPROFNG_SYSCONFDIR to find out gprofng.rc:
45 export GPROFNG_SYSCONFDIR := $(srcdir)/../../../src
47 .PHONY: all collect compare clobber clean
51 # We intentionally use incomplete dependencies here, because we don't want to
52 # regenerate test.er during the later display/compare phases.
53 collect: $(EXPERIMENT)
55 $(DISPLAY_LOG): $(EXPERIMENT)
56 $(DISPLAY) $(DISPLAY_FLAGS) $(EXPERIMENT) > $@
58 compare: $(DISPLAY_LOG)
59 perl -I $(srcdir)/../../lib $(srcdir)/check_results.pl $(ACCT_FILE) $(DISPLAY_LOG)
63 rm -f *.acct *.acct2 *.log core* *.class *.o $(TARGETS) *.out