Debian Codegraph @

tools/testing/selftests/openat2/Makefile

raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined
4 TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test
5
6 # gcc requires -static-libasan in order to ensure that Address Sanitizer's
7 # library is the first one loaded. However, clang already statically links the
8 # Address Sanitizer if -fsanitize is specified. Therefore, simply omit
9 # -static-libasan for clang builds.
10 ifeq ($(LLVM),)
11 CFLAGS += -static-libasan
12 endif
13
14 LOCAL_HDRS += helpers.h
15
16 include ../lib.mk
17
18 $(TEST_GEN_PROGS): helpers.c