]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprofng/testsuite/gprofng.display/synprog/Makefile
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gprofng / testsuite / gprofng.display / synprog / Makefile
CommitLineData
fd67aa11 1# Copyright (C) 2021-2024 Free Software Foundation, Inc.
bb368aad
VM
2#
3# This file is part of the GNU Binutils.
4#
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.
9#
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.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
18# MA 02110-1301, USA.
19
20TARGETS = synprog so_syn.so so_syx.so
21TARGET = ./synprog
22ACCT_FILE = synprog.acct
23
24srcdir = .
25include $(srcdir)/../../lib/Makefile.skel
26
27SRCS = \
28 $(srcdir)/../mttest/gethrtime.c \
29 $(srcdir)/synprog.c \
30 $(srcdir)/callso.c \
31 $(srcdir)/callsx.c \
32 $(srcdir)/endcases.c \
33 $(srcdir)/fitos.c \
34 $(srcdir)/iosyn.c \
35 $(srcdir)/pagethrash.c \
36 $(srcdir)/stopwatch.c \
37 $(NULL)
38
39HDRS= \
40 $(srcdir)/inc_body.h \
41 $(srcdir)/inc_brace.h \
42 $(srcdir)/inc_entry.h \
43 $(srcdir)/inc_exit.h \
44 $(srcdir)/inc_func.h \
45 $(srcdir)/inc_inline.h \
46 $(srcdir)/inc_macro.h \
47 $(srcdir)/stopwatch.h \
48 $(NULL)
49
50
51$(TARGET): $(SRCS) $(HDRS) so_syx.so so_syn.so
52 @echo " ---- Build: $@ -----"
ecb82830 53 $(CC) $(CFLAGS) -Wl,-E -o $@ $(SRCS) -ldl -lc -lrt
bb368aad
VM
54
55so_syx.so: $(srcdir)/so_syx.c
56 @echo " ---- Build: $@ -----"
57 $(CC) $(CFLAGS) $(SHAREDOPT) -o $@ $(srcdir)/so_syx.c -lc
58
59so_syn.so: $(srcdir)/so_syn.c
60 @echo " ---- Build: $@ -----"
61 $(CC) $(CFLAGS) $(SHAREDOPT) -o $@ $(srcdir)/so_syn.c -lc
62
63$(EXPERIMENT): $(TARGETS)
64 rm -rf $@
65 $(COLLECT) $(COLLECT_FLAGS) -o $@ $(TARGET) $(TARGET_FLAGS)
66