Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 9ffecb10283508260936b96022d4ee43a7798b4c authored by Linus Torvalds on 27 September 2015, 11:50:08 UTC
Linux 4.3-rc3
Tip revision: 9ffecb1
Makefile
CFLAGS = -Wall
BINARIES = execveat
DEPS = execveat.symlink execveat.denatured script subdir
all: $(BINARIES) $(DEPS)

subdir:
	mkdir -p $@
script:
	echo '#!/bin/sh' > $@
	echo 'exit $$*' >> $@
	chmod +x $@
execveat.symlink: execveat
	ln -s -f $< $@
execveat.denatured: execveat
	cp $< $@
	chmod -x $@
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

TEST_PROGS := execveat
TEST_FILES := $(DEPS)

include ../lib.mk

clean:
	rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx*
back to top