x86/ldt: Further fix FPU emulation
[linux/fpc-iii.git] / tools / net / Makefile
blobee577ea03ba50f05a4b14379ddcd17a3f73593c0
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 -DPACKAGE='bpf_jit_disasm'
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