2 # Lightweight Autonomic Network Architecture
4 # Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 # Swiss federal institute of technology (ETH Zurich)
10 api
/alloc
/kzalloc-simple.cocc \
11 api
/alloc
/drop_kmalloc_cast.cocc \
14 api
/resource_size.cocc \
16 api
/memdup_user.cocc \
17 locks
/call_kern.cocc \
19 iterators
/itnull.cocc \
26 locks
/double_lock.cocc \
28 locks
/mini_lock.cocc \
30 null
/deref_null.cocc \
32 iterators
/list_entry_update.cocc \
33 tests
/doubletest.cocc \
34 tests
/doublebitand.cocc \
35 misc
/doubleinit.cocc \
38 chk-objs
= $(shell find ..
/src
-name
"*.[ch]")
42 all: $(cocc-objs-p
) $(cocc-objs-r
) $(cocc-objs-n
)
45 wget http
://coccinelle.lip6.fr
/distrib
/coccinelle-1.0
.0-rc7.tgz
46 tar xvf coccinelle-1.0
.0-rc7.tgz
47 cd coccinelle-1.0
.0-rc7
/ && .
/configure
--prefix=/usr
/ && make depend
&& make
all && make
install
49 $(cocc-objs-p
): %.cocc
: %.cocci
50 @echo
"\n++++++ Applying $< ++++++\n"
51 for f in
$(chk-objs
) ; do \
52 spatch
-D patch
-local_includes
-out_place
-sp_file
$< $$f || exit
; \
55 $(cocc-objs-n
): %.cocc
: %.cocci
56 @echo
"\n++++++ Applying $< ++++++\n"
57 for f in
$(chk-objs
) ; do \
58 spatch
-local_includes
-out_place
-sp_file
$< $$f || exit
; \
61 $(cocc-objs-r
): %.cocc
: %.cocci
62 @echo
"\n++++++ Applying $< ++++++\n"
63 for f in
$(chk-objs
) ; do \
64 spatch
-D report
-local_includes
-out_place
-sp_file
$< $$f || exit
; \