Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
21# Makefile is a run-time dependency, since it's accessed by the execveat test
22TEST_FILES := $(DEPS) Makefile
23
24include ../lib.mk
25
26clean:
27 rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx*