xref: /linux-6.15/tools/testing/selftests/exec/Makefile (revision a8ba798b)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1c9b26b81SDavid DrysdaleCFLAGS = -Wall
2c9b26b81SDavid Drysdale
380d443e8S[email protected]TEST_GEN_PROGS := execveat
480d443e8S[email protected]TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
580d443e8S[email protected]# Makefile is a run-time dependency, since it's accessed by the execveat test
680d443e8S[email protected]TEST_FILES := Makefile
780d443e8S[email protected]
8*a8ba798bS[email protected]EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx*
980d443e8S[email protected]
1080d443e8S[email protected]include ../lib.mk
1180d443e8S[email protected]
12*a8ba798bS[email protected]$(OUTPUT)/subdir:
13c9b26b81SDavid Drysdale	mkdir -p $@
14*a8ba798bS[email protected]$(OUTPUT)/script:
15c9b26b81SDavid Drysdale	echo '#!/bin/sh' > $@
16c9b26b81SDavid Drysdale	echo 'exit $$*' >> $@
17c9b26b81SDavid Drysdale	chmod +x $@
18*a8ba798bS[email protected]$(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat
19*a8ba798bS[email protected]	cd $(OUTPUT) && ln -s -f $(shell basename $<) $(shell basename $@)
20*a8ba798bS[email protected]$(OUTPUT)/execveat.denatured: $(OUTPUT)/execveat
21c9b26b81SDavid Drysdale	cp $< $@
22c9b26b81SDavid Drysdale	chmod -x $@
23*a8ba798bS[email protected]
24

served by {OpenGrok

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