Alexei Starovoitov | 3c731eb | 2014-09-26 00:17:07 -0700 | [diff] [blame] | 1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. |
| 2 | obj- := dummy.o |
| 3 | |
| 4 | # List of programs to build |
Alexei Starovoitov | ffb65f2 | 2014-11-13 17:36:48 -0800 | [diff] [blame] | 5 | hostprogs-y := test_verifier test_maps |
Alexei Starovoitov | 03f4723 | 2014-12-01 15:06:36 -0800 | [diff] [blame^] | 6 | hostprogs-y += sock_example |
Alexei Starovoitov | 3c731eb | 2014-09-26 00:17:07 -0700 | [diff] [blame] | 7 | |
| 8 | test_verifier-objs := test_verifier.o libbpf.o |
Alexei Starovoitov | ffb65f2 | 2014-11-13 17:36:48 -0800 | [diff] [blame] | 9 | test_maps-objs := test_maps.o libbpf.o |
Alexei Starovoitov | 03f4723 | 2014-12-01 15:06:36 -0800 | [diff] [blame^] | 10 | sock_example-objs := sock_example.o libbpf.o |
Alexei Starovoitov | 3c731eb | 2014-09-26 00:17:07 -0700 | [diff] [blame] | 11 | |
| 12 | # Tell kbuild to always build the programs |
| 13 | always := $(hostprogs-y) |
| 14 | |
| 15 | HOSTCFLAGS += -I$(objtree)/usr/include |