2014-12-13 08:57:36 +08:00
|
|
|
CFLAGS = -Wall
|
|
|
|
|
|
|
|
subdir:
|
|
|
|
mkdir -p $@
|
|
|
|
script:
|
|
|
|
echo '#!/bin/sh' > $@
|
|
|
|
echo 'exit $$*' >> $@
|
|
|
|
chmod +x $@
|
|
|
|
execveat.symlink: execveat
|
|
|
|
ln -s -f $< $@
|
|
|
|
execveat.denatured: execveat
|
|
|
|
cp $< $@
|
|
|
|
chmod -x $@
|
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_GEN_PROGS := execveat
|
|
|
|
TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
|
2016-06-16 02:36:12 +08:00
|
|
|
# Makefile is a run-time dependency, since it's accessed by the execveat test
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_FILES := Makefile
|
2015-03-11 12:05:59 +08:00
|
|
|
|
|
|
|
include ../lib.mk
|
2014-12-13 08:57:36 +08:00
|
|
|
|
|
|
|
clean:
|
2016-11-29 19:55:47 +08:00
|
|
|
rm -rf $(TEST_GEN_PROGS) $(TEST_GEN_FILES) subdir.moved execveat.moved xxxxx*
|