| .. | .. |
|---|
| 15 | 15 | test-hello.bin \ |
|---|
| 16 | 16 | test-libaudit.bin \ |
|---|
| 17 | 17 | test-libbfd.bin \ |
|---|
| 18 | + test-libbfd-buildid.bin \ |
|---|
| 18 | 19 | test-disassembler-four-args.bin \ |
|---|
| 19 | 20 | test-reallocarray.bin \ |
|---|
| 20 | 21 | test-libbfd-liberty.bin \ |
|---|
| 21 | 22 | test-libbfd-liberty-z.bin \ |
|---|
| 22 | 23 | test-cplus-demangle.bin \ |
|---|
| 24 | + test-libcap.bin \ |
|---|
| 23 | 25 | test-libelf.bin \ |
|---|
| 24 | 26 | test-libelf-getphdrnum.bin \ |
|---|
| 25 | 27 | test-libelf-gelf_getnote.bin \ |
|---|
| 26 | 28 | test-libelf-getshdrstrndx.bin \ |
|---|
| 27 | | - test-libelf-mmap.bin \ |
|---|
| 29 | + test-libdebuginfod.bin \ |
|---|
| 28 | 30 | test-libnuma.bin \ |
|---|
| 29 | 31 | test-numa_num_possible_cpus.bin \ |
|---|
| 30 | 32 | test-libperl.bin \ |
|---|
| 31 | 33 | test-libpython.bin \ |
|---|
| 32 | 34 | test-libslang.bin \ |
|---|
| 35 | + test-libslang-include-subdir.bin \ |
|---|
| 33 | 36 | test-libcrypto.bin \ |
|---|
| 34 | 37 | test-libunwind.bin \ |
|---|
| 35 | 38 | test-libunwind-debug-frame.bin \ |
|---|
| .. | .. |
|---|
| 50 | 53 | test-zlib.bin \ |
|---|
| 51 | 54 | test-lzma.bin \ |
|---|
| 52 | 55 | test-bpf.bin \ |
|---|
| 56 | + test-libbpf.bin \ |
|---|
| 53 | 57 | test-get_cpuid.bin \ |
|---|
| 54 | 58 | test-sdt.bin \ |
|---|
| 55 | 59 | test-cxx.bin \ |
|---|
| 56 | 60 | test-gettid.bin \ |
|---|
| 57 | 61 | test-jvmti.bin \ |
|---|
| 62 | + test-jvmti-cmlr.bin \ |
|---|
| 58 | 63 | test-sched_getcpu.bin \ |
|---|
| 59 | 64 | test-setns.bin \ |
|---|
| 60 | 65 | test-libopencsd.bin \ |
|---|
| 61 | 66 | test-clang.bin \ |
|---|
| 62 | 67 | test-llvm.bin \ |
|---|
| 63 | | - test-llvm-version.bin |
|---|
| 68 | + test-llvm-version.bin \ |
|---|
| 69 | + test-libaio.bin \ |
|---|
| 70 | + test-libzstd.bin \ |
|---|
| 71 | + test-clang-bpf-co-re.bin \ |
|---|
| 72 | + test-file-handle.bin \ |
|---|
| 73 | + test-libpfm4.bin |
|---|
| 64 | 74 | |
|---|
| 65 | 75 | FILES := $(addprefix $(OUTPUT),$(FILES)) |
|---|
| 66 | 76 | |
|---|
| 67 | 77 | PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config |
|---|
| 68 | 78 | LLVM_CONFIG ?= llvm-config |
|---|
| 79 | +CLANG ?= clang |
|---|
| 69 | 80 | |
|---|
| 70 | 81 | all: $(FILES) |
|---|
| 71 | 82 | |
|---|
| .. | .. |
|---|
| 78 | 89 | ############################### |
|---|
| 79 | 90 | |
|---|
| 80 | 91 | $(OUTPUT)test-all.bin: |
|---|
| 81 | | - $(BUILD) -fstack-protector-all -O2 -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 -lz -llzma |
|---|
| 92 | + $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd -lcap |
|---|
| 82 | 93 | |
|---|
| 83 | 94 | $(OUTPUT)test-hello.bin: |
|---|
| 84 | 95 | $(BUILD) |
|---|
| .. | .. |
|---|
| 97 | 108 | |
|---|
| 98 | 109 | $(OUTPUT)test-bionic.bin: |
|---|
| 99 | 110 | $(BUILD) |
|---|
| 111 | + |
|---|
| 112 | +$(OUTPUT)test-libcap.bin: |
|---|
| 113 | + $(BUILD) -lcap |
|---|
| 100 | 114 | |
|---|
| 101 | 115 | $(OUTPUT)test-libelf.bin: |
|---|
| 102 | 116 | $(BUILD) -lelf |
|---|
| .. | .. |
|---|
| 131 | 145 | $(OUTPUT)test-dwarf_getlocations.bin: |
|---|
| 132 | 146 | $(BUILD) $(DWARFLIBS) |
|---|
| 133 | 147 | |
|---|
| 134 | | -$(OUTPUT)test-libelf-mmap.bin: |
|---|
| 135 | | - $(BUILD) -lelf |
|---|
| 136 | | - |
|---|
| 137 | 148 | $(OUTPUT)test-libelf-getphdrnum.bin: |
|---|
| 138 | 149 | $(BUILD) -lelf |
|---|
| 139 | 150 | |
|---|
| .. | .. |
|---|
| 142 | 153 | |
|---|
| 143 | 154 | $(OUTPUT)test-libelf-getshdrstrndx.bin: |
|---|
| 144 | 155 | $(BUILD) -lelf |
|---|
| 156 | + |
|---|
| 157 | +$(OUTPUT)test-libdebuginfod.bin: |
|---|
| 158 | + $(BUILD) -ldebuginfod |
|---|
| 145 | 159 | |
|---|
| 146 | 160 | $(OUTPUT)test-libnuma.bin: |
|---|
| 147 | 161 | $(BUILD) -lnuma |
|---|
| .. | .. |
|---|
| 176 | 190 | $(BUILD) -laudit |
|---|
| 177 | 191 | |
|---|
| 178 | 192 | $(OUTPUT)test-libslang.bin: |
|---|
| 179 | | - $(BUILD) -I/usr/include/slang -lslang |
|---|
| 193 | + $(BUILD) -lslang |
|---|
| 194 | + |
|---|
| 195 | +$(OUTPUT)test-libslang-include-subdir.bin: |
|---|
| 196 | + $(BUILD) -lslang |
|---|
| 180 | 197 | |
|---|
| 181 | 198 | $(OUTPUT)test-libcrypto.bin: |
|---|
| 182 | 199 | $(BUILD) -lcrypto |
|---|
| 183 | 200 | |
|---|
| 184 | 201 | $(OUTPUT)test-gtk2.bin: |
|---|
| 185 | | - $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) |
|---|
| 202 | + $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations |
|---|
| 186 | 203 | |
|---|
| 187 | 204 | $(OUTPUT)test-gtk2-infobar.bin: |
|---|
| 188 | 205 | $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) |
|---|
| .. | .. |
|---|
| 193 | 210 | PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) |
|---|
| 194 | 211 | PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS)) |
|---|
| 195 | 212 | PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS)) |
|---|
| 196 | | -PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null` |
|---|
| 213 | +PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) |
|---|
| 197 | 214 | FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) |
|---|
| 215 | + |
|---|
| 216 | +ifeq ($(CC_NO_CLANG), 0) |
|---|
| 217 | + PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS)) |
|---|
| 218 | + PERL_EMBED_CCOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(PERL_EMBED_CCOPTS)) |
|---|
| 219 | + PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS)) |
|---|
| 220 | + FLAGS_PERL_EMBED += -Wno-compound-token-split-by-macro |
|---|
| 221 | +endif |
|---|
| 198 | 222 | |
|---|
| 199 | 223 | $(OUTPUT)test-libperl.bin: |
|---|
| 200 | 224 | $(BUILD) $(FLAGS_PERL_EMBED) |
|---|
| .. | .. |
|---|
| 203 | 227 | $(BUILD) $(FLAGS_PYTHON_EMBED) |
|---|
| 204 | 228 | |
|---|
| 205 | 229 | $(OUTPUT)test-libbfd.bin: |
|---|
| 230 | + $(BUILD) -DPACKAGE='"perf"' -lbfd -ldl |
|---|
| 231 | + |
|---|
| 232 | +$(OUTPUT)test-libbfd-buildid.bin: |
|---|
| 206 | 233 | $(BUILD) -DPACKAGE='"perf"' -lbfd -ldl |
|---|
| 207 | 234 | |
|---|
| 208 | 235 | $(OUTPUT)test-disassembler-four-args.bin: |
|---|
| .. | .. |
|---|
| 253 | 280 | $(OUTPUT)test-bpf.bin: |
|---|
| 254 | 281 | $(BUILD) |
|---|
| 255 | 282 | |
|---|
| 283 | +$(OUTPUT)test-libbpf.bin: |
|---|
| 284 | + $(BUILD) -lbpf |
|---|
| 285 | + |
|---|
| 256 | 286 | $(OUTPUT)test-sdt.bin: |
|---|
| 257 | 287 | $(BUILD) |
|---|
| 258 | 288 | |
|---|
| .. | .. |
|---|
| 263 | 293 | $(BUILD) |
|---|
| 264 | 294 | |
|---|
| 265 | 295 | $(OUTPUT)test-jvmti.bin: |
|---|
| 296 | + $(BUILD) |
|---|
| 297 | + |
|---|
| 298 | +$(OUTPUT)test-jvmti-cmlr.bin: |
|---|
| 266 | 299 | $(BUILD) |
|---|
| 267 | 300 | |
|---|
| 268 | 301 | $(OUTPUT)test-llvm.bin: |
|---|
| .. | .. |
|---|
| 291 | 324 | |
|---|
| 292 | 325 | -include $(OUTPUT)*.d |
|---|
| 293 | 326 | |
|---|
| 327 | +$(OUTPUT)test-libaio.bin: |
|---|
| 328 | + $(BUILD) -lrt |
|---|
| 329 | + |
|---|
| 330 | +$(OUTPUT)test-libzstd.bin: |
|---|
| 331 | + $(BUILD) -lzstd |
|---|
| 332 | + |
|---|
| 333 | +$(OUTPUT)test-clang-bpf-co-re.bin: |
|---|
| 334 | + $(CLANG) -S -g -target bpf -o - $(patsubst %.bin,%.c,$(@F)) | \ |
|---|
| 335 | + grep BTF_KIND_VAR |
|---|
| 336 | + |
|---|
| 337 | +$(OUTPUT)test-file-handle.bin: |
|---|
| 338 | + $(BUILD) |
|---|
| 339 | + |
|---|
| 340 | +$(OUTPUT)test-libpfm4.bin: |
|---|
| 341 | + $(BUILD) -lpfm |
|---|
| 342 | + |
|---|
| 294 | 343 | ############################### |
|---|
| 295 | 344 | |
|---|
| 296 | 345 | clean: |
|---|