tracing: Make ftrace_print_array_seq compute buf_len
[linux-2.6-block.git] / tools / net / Makefile
CommitLineData
e306e2c1
DB
1prefix = /usr
2
3CC = gcc
3f356385
DB
4LEX = flex
5YACC = bison
e306e2c1 6
3f356385
DB
7%.yacc.c: %.y
8 $(YACC) -o $@ -d $<
9
10%.lex.c: %.l
11 $(LEX) -o $@ $<
12
13all : bpf_jit_disasm bpf_dbg bpf_asm
e306e2c1 14
40676462 15bpf_jit_disasm : CFLAGS = -Wall -O2 -DPACKAGE='bpf_jit_disasm'
e306e2c1
DB
16bpf_jit_disasm : LDLIBS = -lopcodes -lbfd -ldl
17bpf_jit_disasm : bpf_jit_disasm.o
18
fd981e3c
DB
19bpf_dbg : CFLAGS = -Wall -O2
20bpf_dbg : LDLIBS = -lreadline
21bpf_dbg : bpf_dbg.o
22
3f356385
DB
23bpf_asm : CFLAGS = -Wall -O2 -I.
24bpf_asm : LDLIBS =
25bpf_asm : bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
26bpf_exp.lex.o : bpf_exp.yacc.c
27
e306e2c1 28clean :
3f356385 29 rm -rf *.o bpf_jit_disasm bpf_dbg bpf_asm bpf_exp.yacc.* bpf_exp.lex.*
e306e2c1
DB
30
31install :
32 install bpf_jit_disasm $(prefix)/bin/bpf_jit_disasm
fd981e3c 33 install bpf_dbg $(prefix)/bin/bpf_dbg
3f356385 34 install bpf_asm $(prefix)/bin/bpf_asm