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 | 3c731eb | 2014-09-26 00:17:07 -0700 | [diff] [blame] | 6 | |
| 7 | test_verifier-objs := test_verifier.o libbpf.o |
Alexei Starovoitov | ffb65f2 | 2014-11-13 17:36:48 -0800 | [diff] [blame^] | 8 | test_maps-objs := test_maps.o libbpf.o |
Alexei Starovoitov | 3c731eb | 2014-09-26 00:17:07 -0700 | [diff] [blame] | 9 | |
| 10 | # Tell kbuild to always build the programs |
| 11 | always := $(hostprogs-y) |
| 12 | |
| 13 | HOSTCFLAGS += -I$(objtree)/usr/include |