7 test-fortify-source.bin \
8 test-sync-compare-and-swap.bin \
11 test-gtk2-infobar.bin \
17 test-cplus-demangle.bin \
19 test-libelf-getphdrnum.bin \
20 test-libelf-mmap.bin \
24 test-libpython-version.bin \
27 test-libunwind-debug-frame.bin \
28 test-stackprotector-all.bin \
30 test-libdw-dwarf-unwind.bin \
32 test-compile-x32.bin \
35 CC := $(CROSS_COMPILE)gcc -MD
36 PKG_CONFIG := $(CROSS_COMPILE)pkg-config
40 BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $(patsubst %.bin,%.c,$@) $(LDFLAGS)
42 ###############################
45 $(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 -lz
50 test-stackprotector-all.bin:
51 $(BUILD) -Werror -fstack-protector-all
53 test-fortify-source.bin:
54 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
71 test-libelf-getphdrnum.bin:
80 test-libunwind-debug-frame.bin:
87 $(BUILD) -I/usr/include/slang -lslang
90 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
92 test-gtk2-infobar.bin:
93 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
95 grep-libs = $(filter -l%,$(1))
96 strip-libs = $(filter-out -l%,$(1))
98 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
99 PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS))
100 PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
101 PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
102 FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
105 $(BUILD) $(FLAGS_PERL_EMBED)
110 test-libpython-version.bin:
114 $(BUILD) -DPACKAGE='"perf"' -lbfd -lz -liberty -ldl
117 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty
120 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz
122 test-cplus-demangle.bin:
131 test-libdw-dwarf-unwind.bin:
134 test-sync-compare-and-swap.bin:
138 $(CC) -m32 -o $(OUTPUT)$@ test-compile.c
140 test-compile-x32.bin:
141 $(CC) -mx32 -o $(OUTPUT)$@ test-compile.c
148 ###############################