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 CC := $(CROSS_COMPILE)gcc -MD
33 PKG_CONFIG := $(CROSS_COMPILE)pkg-config
37 BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $(patsubst %.bin,%.c,$@) $(LDFLAGS)
39 ###############################
42 $(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
47 test-stackprotector-all.bin:
48 $(BUILD) -Werror -fstack-protector-all
50 test-fortify-source.bin:
51 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
68 test-libelf-getphdrnum.bin:
77 test-libunwind-debug-frame.bin:
84 $(BUILD) -I/usr/include/slang -lslang
87 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
89 test-gtk2-infobar.bin:
90 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
92 grep-libs = $(filter -l%,$(1))
93 strip-libs = $(filter-out -l%,$(1))
95 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
96 PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS))
97 PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
98 PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
99 FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
102 $(BUILD) $(FLAGS_PERL_EMBED)
107 test-libpython-version.bin:
111 $(BUILD) -DPACKAGE='"perf"' -lbfd -lz -liberty -ldl
114 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty
117 $(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz
119 test-cplus-demangle.bin:
128 test-libdw-dwarf-unwind.bin:
131 test-sync-compare-and-swap.bin:
136 ###############################