xref: /linux-6.15/tools/testing/selftests/exec/Makefile (revision 4e7301e6)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2c9b26b81SDavid DrysdaleCFLAGS = -Wall
3*4e7301e6SAlexey DobriyanCFLAGS += -Wno-nonnull
4*4e7301e6SAlexey DobriyanCFLAGS += -D_GNU_SOURCE
5c9b26b81SDavid Drysdale
680d443e8S[email protected]TEST_GEN_PROGS := execveat
780d443e8S[email protected]TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
880d443e8S[email protected]# Makefile is a run-time dependency, since it's accessed by the execveat test
980d443e8S[email protected]TEST_FILES := Makefile
1080d443e8S[email protected]
11*4e7301e6SAlexey DobriyanTEST_GEN_PROGS += recursion-depth
12*4e7301e6SAlexey Dobriyan
13a8ba798bS[email protected]EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx*
1480d443e8S[email protected]
1580d443e8S[email protected]include ../lib.mk
1680d443e8S[email protected]
17a8ba798bS[email protected]$(OUTPUT)/subdir:
18c9b26b81SDavid Drysdale	mkdir -p $@
19a8ba798bS[email protected]$(OUTPUT)/script:
20c9b26b81SDavid Drysdale	echo '#!/bin/sh' > $@
21c9b26b81SDavid Drysdale	echo 'exit $$*' >> $@
22c9b26b81SDavid Drysdale	chmod +x $@
23a8ba798bS[email protected]$(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat
24a8ba798bS[email protected]	cd $(OUTPUT) && ln -s -f $(shell basename $<) $(shell basename $@)
25a8ba798bS[email protected]$(OUTPUT)/execveat.denatured: $(OUTPUT)/execveat
26c9b26b81SDavid Drysdale	cp $< $@
27c9b26b81SDavid Drysdale	chmod -x $@
28a8ba798bS[email protected]
29

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026