1CFLAGS = -Wall 2BINARIES = execveat 3DEPS = execveat.symlink execveat.denatured script subdir 4all: $(BINARIES) $(DEPS) 5 6subdir: 7 mkdir -p $@ 8script: 9 echo '#!/bin/sh' > $@ 10 echo 'exit $$*' >> $@ 11 chmod +x $@ 12execveat.symlink: execveat 13 ln -s -f $< $@ 14execveat.denatured: execveat 15 cp $< $@ 16 chmod -x $@ 17%: %.c 18 $(CC) $(CFLAGS) -o $@ $^ 19 20TEST_PROGS := execveat 21TEST_FILES := $(DEPS) 22 23include ../lib.mk 24 25clean: 26 rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx* 27