]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - tools/testing/selftests/exec/Makefile
Merge remote-tracking branches 'asoc/fix/mtk', 'asoc/fix/psc', 'asoc/fix/pxa', 'asoc...
[mirror_ubuntu-zesty-kernel.git] / tools / testing / selftests / exec / Makefile
1 CFLAGS = -Wall
2 BINARIES = execveat
3 DEPS = execveat.symlink execveat.denatured script subdir
4 all: $(BINARIES) $(DEPS)
5
6 subdir:
7 mkdir -p $@
8 script:
9 echo '#!/bin/sh' > $@
10 echo 'exit $$*' >> $@
11 chmod +x $@
12 execveat.symlink: execveat
13 ln -s -f $< $@
14 execveat.denatured: execveat
15 cp $< $@
16 chmod -x $@
17 %: %.c
18 $(CC) $(CFLAGS) -o $@ $^
19
20 TEST_PROGS := execveat
21 TEST_FILES := $(DEPS)
22
23 include ../lib.mk
24
25 clean:
26 rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx*