aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/config/feature-checks/Makefile')
-rw-r--r--tools/perf/config/feature-checks/Makefile110
1 files changed, 55 insertions, 55 deletions
diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile
index bc86462e80a2..7cf6fcdacebe 100644
--- a/tools/perf/config/feature-checks/Makefile
+++ b/tools/perf/config/feature-checks/Makefile
@@ -1,90 +1,90 @@
1 1
2FILES= \ 2FILES= \
3 test-all \ 3 test-all.bin \
4 test-backtrace \ 4 test-backtrace.bin \
5 test-bionic \ 5 test-bionic.bin \
6 test-dwarf \ 6 test-dwarf.bin \
7 test-fortify-source \ 7 test-fortify-source.bin \
8 test-glibc \ 8 test-glibc.bin \
9 test-gtk2 \ 9 test-gtk2.bin \
10 test-gtk2-infobar \ 10 test-gtk2-infobar.bin \
11 test-hello \ 11 test-hello.bin \
12 test-libaudit \ 12 test-libaudit.bin \
13 test-libbfd \ 13 test-libbfd.bin \
14 test-liberty \ 14 test-liberty.bin \
15 test-liberty-z \ 15 test-liberty-z.bin \
16 test-cplus-demangle \ 16 test-cplus-demangle.bin \
17 test-libelf \ 17 test-libelf.bin \
18 test-libelf-getphdrnum \ 18 test-libelf-getphdrnum.bin \
19 test-libelf-mmap \ 19 test-libelf-mmap.bin \
20 test-libnuma \ 20 test-libnuma.bin \
21 test-libperl \ 21 test-libperl.bin \
22 test-libpython \ 22 test-libpython.bin \
23 test-libpython-version \ 23 test-libpython-version.bin \
24 test-libslang \ 24 test-libslang.bin \
25 test-libunwind \ 25 test-libunwind.bin \
26 test-libunwind-debug-frame \ 26 test-libunwind-debug-frame.bin \
27 test-on-exit \ 27 test-on-exit.bin \
28 test-stackprotector-all \ 28 test-stackprotector-all.bin \
29 test-timerfd 29 test-timerfd.bin
30 30
31CC := $(CC) -MD 31CC := $(CC) -MD
32 32
33all: $(FILES) 33all: $(FILES)
34 34
35BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $@.c $(LDFLAGS) 35BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $(patsubst %.bin,%.c,$@) $(LDFLAGS)
36 36
37############################### 37###############################
38 38
39test-all: 39test-all.bin:
40 $(BUILD) -Werror -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -laudit -I/usr/include/slang -lslang $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl 40 $(BUILD) -Werror -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -laudit -I/usr/include/slang -lslang $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl
41 41
42test-hello: 42test-hello.bin:
43 $(BUILD) 43 $(BUILD)
44 44
45test-stackprotector-all: 45test-stackprotector-all.bin:
46 $(BUILD) -Werror -fstack-protector-all 46 $(BUILD) -Werror -fstack-protector-all
47 47
48test-fortify-source: 48test-fortify-source.bin:
49 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2 49 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
50 50
51test-bionic: 51test-bionic.bin:
52 $(BUILD) 52 $(BUILD)
53 53
54test-libelf: 54test-libelf.bin:
55 $(BUILD) -lelf 55 $(BUILD) -lelf
56 56
57test-glibc: 57test-glibc.bin:
58 $(BUILD) 58 $(BUILD)
59 59
60test-dwarf: 60test-dwarf.bin:
61 $(BUILD) -ldw 61 $(BUILD) -ldw
62 62
63test-libelf-mmap: 63test-libelf-mmap.bin:
64 $(BUILD) -lelf 64 $(BUILD) -lelf
65 65
66test-libelf-getphdrnum: 66test-libelf-getphdrnum.bin:
67 $(BUILD) -lelf 67 $(BUILD) -lelf
68 68
69test-libnuma: 69test-libnuma.bin:
70 $(BUILD) -lnuma 70 $(BUILD) -lnuma
71 71
72test-libunwind: 72test-libunwind.bin:
73 $(BUILD) -lelf 73 $(BUILD) -lelf
74 74
75test-libunwind-debug-frame: 75test-libunwind-debug-frame.bin:
76 $(BUILD) -lelf 76 $(BUILD) -lelf
77 77
78test-libaudit: 78test-libaudit.bin:
79 $(BUILD) -laudit 79 $(BUILD) -laudit
80 80
81test-libslang: 81test-libslang.bin:
82 $(BUILD) -I/usr/include/slang -lslang 82 $(BUILD) -I/usr/include/slang -lslang
83 83
84test-gtk2: 84test-gtk2.bin:
85 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) 85 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
86 86
87test-gtk2-infobar: 87test-gtk2-infobar.bin:
88 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) 88 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
89 89
90grep-libs = $(filter -l%,$(1)) 90grep-libs = $(filter -l%,$(1))
@@ -96,7 +96,7 @@ PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
96PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null` 96PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
97FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) 97FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
98 98
99test-libperl: 99test-libperl.bin:
100 $(BUILD) $(FLAGS_PERL_EMBED) 100 $(BUILD) $(FLAGS_PERL_EMBED)
101 101
102override PYTHON := python 102override PYTHON := python
@@ -113,31 +113,31 @@ PYTHON_EMBED_LIBADD = $(call grep-libs,$(PYTHON_EMBED_LDOPTS))
113PYTHON_EMBED_CCOPTS = $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null) 113PYTHON_EMBED_CCOPTS = $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
114FLAGS_PYTHON_EMBED = $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS) 114FLAGS_PYTHON_EMBED = $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
115 115
116test-libpython: 116test-libpython.bin:
117 $(BUILD) $(FLAGS_PYTHON_EMBED) 117 $(BUILD) $(FLAGS_PYTHON_EMBED)
118 118
119test-libpython-version: 119test-libpython-version.bin:
120 $(BUILD) $(FLAGS_PYTHON_EMBED) 120 $(BUILD) $(FLAGS_PYTHON_EMBED)
121 121
122test-libbfd: 122test-libbfd.bin:
123 $(BUILD) -DPACKAGE='"perf"' -lbfd -ldl 123 $(BUILD) -DPACKAGE='"perf"' -lbfd -ldl
124 124
125test-liberty: 125test-liberty.bin:
126 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty 126 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty
127 127
128test-liberty-z: 128test-liberty-z.bin:
129 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz 129 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz
130 130
131test-cplus-demangle: 131test-cplus-demangle.bin:
132 $(BUILD) -liberty 132 $(BUILD) -liberty
133 133
134test-on-exit: 134test-on-exit.bin:
135 $(BUILD) 135 $(BUILD)
136 136
137test-backtrace: 137test-backtrace.bin:
138 $(BUILD) 138 $(BUILD)
139 139
140test-timerfd: 140test-timerfd.bin:
141 $(BUILD) 141 $(BUILD)
142 142
143-include *.d 143-include *.d