]> Git Repo - linux.git/blame - tools/net/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux.git] / tools / net / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
e306e2c1
DB
2prefix = /usr
3
4CC = gcc
3f356385
DB
5LEX = flex
6YACC = bison
e306e2c1 7
d7475de5
KM
8CFLAGS += -Wall -O2
9CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
10
3f356385
DB
11%.yacc.c: %.y
12 $(YACC) -o $@ -d $<
13
14%.lex.c: %.l
15 $(LEX) -o $@ $<
16
17all : bpf_jit_disasm bpf_dbg bpf_asm
e306e2c1 18
d7475de5 19bpf_jit_disasm : CFLAGS += -DPACKAGE='bpf_jit_disasm'
e306e2c1
DB
20bpf_jit_disasm : LDLIBS = -lopcodes -lbfd -ldl
21bpf_jit_disasm : bpf_jit_disasm.o
22
fd981e3c
DB
23bpf_dbg : LDLIBS = -lreadline
24bpf_dbg : bpf_dbg.o
25
3f356385
DB
26bpf_asm : LDLIBS =
27bpf_asm : bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
28bpf_exp.lex.o : bpf_exp.yacc.c
29
e306e2c1 30clean :
3f356385 31 rm -rf *.o bpf_jit_disasm bpf_dbg bpf_asm bpf_exp.yacc.* bpf_exp.lex.*
e306e2c1
DB
32
33install :
34 install bpf_jit_disasm $(prefix)/bin/bpf_jit_disasm
fd981e3c 35 install bpf_dbg $(prefix)/bin/bpf_dbg
3f356385 36 install bpf_asm $(prefix)/bin/bpf_asm
This page took 0.328527 seconds and 4 git commands to generate.