|
@@ -1,90 +1,90 @@
|
|
|
|
|
|
|
|
FILES= \
|
|
FILES= \
|
|
|
- test-all \
|
|
|
|
|
- test-backtrace \
|
|
|
|
|
- test-bionic \
|
|
|
|
|
- test-dwarf \
|
|
|
|
|
- test-fortify-source \
|
|
|
|
|
- test-glibc \
|
|
|
|
|
- test-gtk2 \
|
|
|
|
|
- test-gtk2-infobar \
|
|
|
|
|
- test-hello \
|
|
|
|
|
- test-libaudit \
|
|
|
|
|
- test-libbfd \
|
|
|
|
|
- test-liberty \
|
|
|
|
|
- test-liberty-z \
|
|
|
|
|
- test-cplus-demangle \
|
|
|
|
|
- test-libelf \
|
|
|
|
|
- test-libelf-getphdrnum \
|
|
|
|
|
- test-libelf-mmap \
|
|
|
|
|
- test-libnuma \
|
|
|
|
|
- test-libperl \
|
|
|
|
|
- test-libpython \
|
|
|
|
|
- test-libpython-version \
|
|
|
|
|
- test-libslang \
|
|
|
|
|
- test-libunwind \
|
|
|
|
|
- test-libunwind-debug-frame \
|
|
|
|
|
- test-on-exit \
|
|
|
|
|
- test-stackprotector-all \
|
|
|
|
|
- test-timerfd
|
|
|
|
|
|
|
+ test-all.bin \
|
|
|
|
|
+ test-backtrace.bin \
|
|
|
|
|
+ test-bionic.bin \
|
|
|
|
|
+ test-dwarf.bin \
|
|
|
|
|
+ test-fortify-source.bin \
|
|
|
|
|
+ test-glibc.bin \
|
|
|
|
|
+ test-gtk2.bin \
|
|
|
|
|
+ test-gtk2-infobar.bin \
|
|
|
|
|
+ test-hello.bin \
|
|
|
|
|
+ test-libaudit.bin \
|
|
|
|
|
+ test-libbfd.bin \
|
|
|
|
|
+ test-liberty.bin \
|
|
|
|
|
+ test-liberty-z.bin \
|
|
|
|
|
+ test-cplus-demangle.bin \
|
|
|
|
|
+ test-libelf.bin \
|
|
|
|
|
+ test-libelf-getphdrnum.bin \
|
|
|
|
|
+ test-libelf-mmap.bin \
|
|
|
|
|
+ test-libnuma.bin \
|
|
|
|
|
+ test-libperl.bin \
|
|
|
|
|
+ test-libpython.bin \
|
|
|
|
|
+ test-libpython-version.bin \
|
|
|
|
|
+ test-libslang.bin \
|
|
|
|
|
+ test-libunwind.bin \
|
|
|
|
|
+ test-libunwind-debug-frame.bin \
|
|
|
|
|
+ test-on-exit.bin \
|
|
|
|
|
+ test-stackprotector-all.bin \
|
|
|
|
|
+ test-timerfd.bin
|
|
|
|
|
|
|
|
CC := $(CC) -MD
|
|
CC := $(CC) -MD
|
|
|
|
|
|
|
|
all: $(FILES)
|
|
all: $(FILES)
|
|
|
|
|
|
|
|
-BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $@.c $(LDFLAGS)
|
|
|
|
|
|
|
+BUILD = $(CC) $(CFLAGS) -o $(OUTPUT)$@ $(patsubst %.bin,%.c,$@) $(LDFLAGS)
|
|
|
|
|
|
|
|
###############################
|
|
###############################
|
|
|
|
|
|
|
|
-test-all:
|
|
|
|
|
|
|
+test-all.bin:
|
|
|
$(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
|
|
$(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
|
|
|
|
|
|
|
|
-test-hello:
|
|
|
|
|
|
|
+test-hello.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-test-stackprotector-all:
|
|
|
|
|
|
|
+test-stackprotector-all.bin:
|
|
|
$(BUILD) -Werror -fstack-protector-all
|
|
$(BUILD) -Werror -fstack-protector-all
|
|
|
|
|
|
|
|
-test-fortify-source:
|
|
|
|
|
|
|
+test-fortify-source.bin:
|
|
|
$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
|
|
$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
|
|
|
|
|
|
|
|
-test-bionic:
|
|
|
|
|
|
|
+test-bionic.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-test-libelf:
|
|
|
|
|
|
|
+test-libelf.bin:
|
|
|
$(BUILD) -lelf
|
|
$(BUILD) -lelf
|
|
|
|
|
|
|
|
-test-glibc:
|
|
|
|
|
|
|
+test-glibc.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-test-dwarf:
|
|
|
|
|
|
|
+test-dwarf.bin:
|
|
|
$(BUILD) -ldw
|
|
$(BUILD) -ldw
|
|
|
|
|
|
|
|
-test-libelf-mmap:
|
|
|
|
|
|
|
+test-libelf-mmap.bin:
|
|
|
$(BUILD) -lelf
|
|
$(BUILD) -lelf
|
|
|
|
|
|
|
|
-test-libelf-getphdrnum:
|
|
|
|
|
|
|
+test-libelf-getphdrnum.bin:
|
|
|
$(BUILD) -lelf
|
|
$(BUILD) -lelf
|
|
|
|
|
|
|
|
-test-libnuma:
|
|
|
|
|
|
|
+test-libnuma.bin:
|
|
|
$(BUILD) -lnuma
|
|
$(BUILD) -lnuma
|
|
|
|
|
|
|
|
-test-libunwind:
|
|
|
|
|
|
|
+test-libunwind.bin:
|
|
|
$(BUILD) -lelf
|
|
$(BUILD) -lelf
|
|
|
|
|
|
|
|
-test-libunwind-debug-frame:
|
|
|
|
|
|
|
+test-libunwind-debug-frame.bin:
|
|
|
$(BUILD) -lelf
|
|
$(BUILD) -lelf
|
|
|
|
|
|
|
|
-test-libaudit:
|
|
|
|
|
|
|
+test-libaudit.bin:
|
|
|
$(BUILD) -laudit
|
|
$(BUILD) -laudit
|
|
|
|
|
|
|
|
-test-libslang:
|
|
|
|
|
|
|
+test-libslang.bin:
|
|
|
$(BUILD) -I/usr/include/slang -lslang
|
|
$(BUILD) -I/usr/include/slang -lslang
|
|
|
|
|
|
|
|
-test-gtk2:
|
|
|
|
|
|
|
+test-gtk2.bin:
|
|
|
$(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
|
|
$(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
|
|
|
|
|
|
|
|
-test-gtk2-infobar:
|
|
|
|
|
|
|
+test-gtk2-infobar.bin:
|
|
|
$(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
|
|
$(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
|
|
|
|
|
|
|
|
grep-libs = $(filter -l%,$(1))
|
|
grep-libs = $(filter -l%,$(1))
|
|
@@ -96,7 +96,7 @@ PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
|
|
|
PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
|
|
PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
|
|
|
FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
|
|
FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
|
|
|
|
|
|
|
|
-test-libperl:
|
|
|
|
|
|
|
+test-libperl.bin:
|
|
|
$(BUILD) $(FLAGS_PERL_EMBED)
|
|
$(BUILD) $(FLAGS_PERL_EMBED)
|
|
|
|
|
|
|
|
override PYTHON := python
|
|
override PYTHON := python
|
|
@@ -113,31 +113,31 @@ PYTHON_EMBED_LIBADD = $(call grep-libs,$(PYTHON_EMBED_LDOPTS))
|
|
|
PYTHON_EMBED_CCOPTS = $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
|
|
PYTHON_EMBED_CCOPTS = $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
|
|
|
FLAGS_PYTHON_EMBED = $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
|
|
FLAGS_PYTHON_EMBED = $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
|
|
|
|
|
|
|
|
-test-libpython:
|
|
|
|
|
|
|
+test-libpython.bin:
|
|
|
$(BUILD) $(FLAGS_PYTHON_EMBED)
|
|
$(BUILD) $(FLAGS_PYTHON_EMBED)
|
|
|
|
|
|
|
|
-test-libpython-version:
|
|
|
|
|
|
|
+test-libpython-version.bin:
|
|
|
$(BUILD) $(FLAGS_PYTHON_EMBED)
|
|
$(BUILD) $(FLAGS_PYTHON_EMBED)
|
|
|
|
|
|
|
|
-test-libbfd:
|
|
|
|
|
|
|
+test-libbfd.bin:
|
|
|
$(BUILD) -DPACKAGE='"perf"' -lbfd -ldl
|
|
$(BUILD) -DPACKAGE='"perf"' -lbfd -ldl
|
|
|
|
|
|
|
|
-test-liberty:
|
|
|
|
|
|
|
+test-liberty.bin:
|
|
|
$(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty
|
|
$(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty
|
|
|
|
|
|
|
|
-test-liberty-z:
|
|
|
|
|
|
|
+test-liberty-z.bin:
|
|
|
$(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz
|
|
$(CC) -o $(OUTPUT)$@ test-libbfd.c -DPACKAGE='"perf"' -lbfd -ldl -liberty -lz
|
|
|
|
|
|
|
|
-test-cplus-demangle:
|
|
|
|
|
|
|
+test-cplus-demangle.bin:
|
|
|
$(BUILD) -liberty
|
|
$(BUILD) -liberty
|
|
|
|
|
|
|
|
-test-on-exit:
|
|
|
|
|
|
|
+test-on-exit.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-test-backtrace:
|
|
|
|
|
|
|
+test-backtrace.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-test-timerfd:
|
|
|
|
|
|
|
+test-timerfd.bin:
|
|
|
$(BUILD)
|
|
$(BUILD)
|
|
|
|
|
|
|
|
-include *.d
|
|
-include *.d
|