staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / exec / Makefile
blob33339e31e36526b169470f56f7bf05b891891202
1 # SPDX-License-Identifier: GPL-2.0
2 CFLAGS = -Wall
3 CFLAGS += -Wno-nonnull
4 CFLAGS += -D_GNU_SOURCE
6 TEST_GEN_PROGS := execveat
7 TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
8 # Makefile is a run-time dependency, since it's accessed by the execveat test
9 TEST_FILES := Makefile
11 TEST_GEN_PROGS += recursion-depth
13 EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx*
15 include ../lib.mk
17 $(OUTPUT)/subdir:
18 mkdir -p $@
19 $(OUTPUT)/script:
20 echo '#!/bin/sh' > $@
21 echo 'exit $$*' >> $@
22 chmod +x $@
23 $(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat
24 cd $(OUTPUT) && ln -s -f $(shell basename $<) $(shell basename $@)
25 $(OUTPUT)/execveat.denatured: $(OUTPUT)/execveat
26 cp $< $@
27 chmod -x $@