2 # Lightweight Autonomic Network Architecture
4 # Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 # Swiss federal institute of technology (ETH Zurich)
9 cocc-objs
= api
/alloc
/drop_kmalloc_cast.cocc \
10 api
/alloc
/kzalloc-simple.cocc \
13 api
/memdup_user.cocc \
14 api
/resource_size.cocc \
16 locks
/mini_lock.cocc \
17 locks
/call_kern.cocc \
18 locks
/double_lock.cocc \
20 null
/deref_null.cocc \
24 misc
/doubleinit.cocc \
25 tests
/doubletest.cocc \
26 tests
/doublebitand.cocc \
28 iterators
/itnull.cocc \
29 iterators
/list_entry_update.cocc \
32 chk-objs
= $(shell find ..
/src
-name
"*.[ch]")
38 $(cocc-objs
): %.cocc
: %.cocci
39 @echo
"++++++ Applying $< ++++++"
40 @for f in
$(chk-objs
) ; do \
41 spatch
-outplace
-sp_file
$< $$f || true
; \