Debian Codegraph @

gprofng/testsuite/gprofng.display/synprog/Makefile

raw symbols SCIP
1 # Copyright (C) 2021-2025 Free Software Foundation, Inc.
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
20 TARGETS = synprog so_syn.so so_syx.so
21 TARGET = ./synprog
22 ACCT_FILE = synprog.acct
23
24 srcdir = .
25 include $(srcdir)/../../lib/Makefile.skel
26
27 SRCS = \
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
39 HDRS= \
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: $@ -----"
53 $(CC) $(CFLAGS) -Wl,-E -o $@ $(SRCS) -ldl -lc -lrt
54
55 so_syx.so: $(srcdir)/so_syx.c
56 @echo " ---- Build: $@ -----"
57 $(CC) $(CFLAGS) $(SHAREDOPT) -o $@ $(srcdir)/so_syx.c -lc
58
59 so_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