# Makefile for vm selftests

CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
BINARIES = compaction_test
BINARIES += hugepage-mmap
BINARIES += hugepage-shm
BINARIES += map_hugetlb
BINARIES += mlock2-tests
BINARIES += on-fault-limit
BINARIES += thuge-gen
BINARIES += transhuge-stress
BINARIES += userfaultfd
BINARIES += mlock-random-test

all: $(BINARIES)
%: %.c
	$(CC) $(CFLAGS) -o $@ $^ -lrt
userfaultfd: userfaultfd.c ../../../../usr/include/linux/kernel.h
	$(CC) $(CFLAGS) -O2 -o $@ $< -lpthread

mlock-random-test: mlock-random-test.c
	$(CC) $(CFLAGS) -o $@ $< -lcap

../../../../usr/include/linux/kernel.h:
	make -C ../../../.. headers_install

TEST_PROGS := run_vmtests
TEST_FILES := $(BINARIES)

include ../lib.mk

clean:
	$(RM) $(BINARIES)
 : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='3541f9e8bdebce02458882b66b638d7302c1f616'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=3541f9e8bdebce02458882b66b638d7302c1f616'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/wm8994.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/soc/codecs/wm8994.h?id=3541f9e8bdebce02458882b66b638d7302c1f616'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/codecs/wm8994.h?id=3541f9e8bdebce02458882b66b638d7302c1f616'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/soc/codecs/wm8994.h?id=3541f9e8bdebce02458882b66b638d7302c1f616'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/wm8994.h'>
<input type='hidden' name='id' value='3541f9e8bdebce02458882b66b638d7302c1f616'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=3541f9e8bdebce02458882b66b638d7302c1f616'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=3541f9e8bdebce02458882b66b638d7302c1f616'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc?id=3541f9e8bdebce02458882b66b638d7302c1f616'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs?id=3541f9e8bdebce02458882b66b638d7302c1f616'>codecs</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/wm8994.h?id=3541f9e8bdebce02458882b66b638d7302c1f616'>wm8994.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/wm8994.h?id=3541f9e8bdebce02458882b66b638d7302c1f616&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>