blob: f46d3492d032ac46e28e803c98fa671001647053 [file] [log] [blame]
Alexei Starovoitov3c731eb2014-09-26 00:17:07 -07001# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build
Alexei Starovoitovffb65f22014-11-13 17:36:48 -08005hostprogs-y := test_verifier test_maps
Alexei Starovoitov03f47232014-12-01 15:06:36 -08006hostprogs-y += sock_example
Alexei Starovoitov3c731eb2014-09-26 00:17:07 -07007
8test_verifier-objs := test_verifier.o libbpf.o
Alexei Starovoitovffb65f22014-11-13 17:36:48 -08009test_maps-objs := test_maps.o libbpf.o
Alexei Starovoitov03f47232014-12-01 15:06:36 -080010sock_example-objs := sock_example.o libbpf.o
Alexei Starovoitov3c731eb2014-09-26 00:17:07 -070011
12# Tell kbuild to always build the programs
13always := $(hostprogs-y)
14
15HOSTCFLAGS += -I$(objtree)/usr/include