fix a kmap leak in virtio_console
[linux/fpc-iii.git] / tools / net / Makefile
blob004cd74734b62b941cf64db1634d2774f70f6e3c
1 prefix = /usr
3 CC = gcc
4 LEX = flex
5 YACC = bison
7 %.yacc.c: %.y
8 $(YACC) -o $@ -d $<
10 %.lex.c: %.l
11 $(LEX) -o $@ $<
13 all : bpf_jit_disasm bpf_dbg bpf_asm
15 bpf_jit_disasm : CFLAGS = -Wall -O2
16 bpf_jit_disasm : LDLIBS = -lopcodes -lbfd -ldl
17 bpf_jit_disasm : bpf_jit_disasm.o
19 bpf_dbg : CFLAGS = -Wall -O2
20 bpf_dbg : LDLIBS = -lreadline
21 bpf_dbg : bpf_dbg.o
23 bpf_asm : CFLAGS = -Wall -O2 -I.
24 bpf_asm : LDLIBS =
25 bpf_asm : bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
26 bpf_exp.lex.o : bpf_exp.yacc.c
28 clean :
29 rm -rf *.o bpf_jit_disasm bpf_dbg bpf_asm bpf_exp.yacc.* bpf_exp.lex.*
31 install :
32 install bpf_jit_disasm $(prefix)/bin/bpf_jit_disasm
33 install bpf_dbg $(prefix)/bin/bpf_dbg
34 install bpf_asm $(prefix)/bin/bpf_asm