4 test-stackprotector-all \
6 test-volatile-register-var \
13 test-libelf-getphdrnum \
26 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
28 ###############################
33 test-stackprotector-all:
34 $(BUILD) -Werror -fstack-protector-all
37 $(BUILD) -Werror -fstack-protector
39 test-volatile-register-var:
40 $(BUILD) -Werror -Wvolatile-register-var
43 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
60 test-libelf-getphdrnum:
67 $(BUILD) -lunwind -lunwind-x86_64 -lelf
73 $(BUILD) -I/usr/include/slang -lslang
76 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
79 $(BUILD) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
81 grep-libs = $(filter -l%,$(1))
82 strip-libs = $(filter-out -l%,$(1))
84 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
85 PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS))
86 PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
87 PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`
88 FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
91 $(BUILD) $(FLAGS_PERL_EMBED)
95 ###############################