1# kbuild trick to avoid linker error. Can be omitted if a module is built. 2obj- := dummy.o 3 4hostprogs-$(CONFIG_SECCOMP_FILTER) := bpf-fancy dropper bpf-direct 5 6HOSTCFLAGS_bpf-fancy.o += -I$(objtree)/usr/include 7HOSTCFLAGS_bpf-fancy.o += -idirafter $(objtree)/include 8HOSTCFLAGS_bpf-helper.o += -I$(objtree)/usr/include 9HOSTCFLAGS_bpf-helper.o += -idirafter $(objtree)/include 10bpf-fancy-objs := bpf-fancy.o bpf-helper.o 11 12HOSTCFLAGS_dropper.o += -I$(objtree)/usr/include 13HOSTCFLAGS_dropper.o += -idirafter $(objtree)/include 14dropper-objs := dropper.o 15 16HOSTCFLAGS_bpf-direct.o += -I$(objtree)/usr/include 17HOSTCFLAGS_bpf-direct.o += -idirafter $(objtree)/include 18bpf-direct-objs := bpf-direct.o 19 20# Try to match the kernel target. 21ifeq ($(CONFIG_64BIT),) 22HOSTCFLAGS_bpf-direct.o += -m32 23HOSTCFLAGS_dropper.o += -m32 24HOSTCFLAGS_bpf-helper.o += -m32 25HOSTCFLAGS_bpf-fancy.o += -m32 26HOSTLOADLIBES_bpf-direct += -m32 27HOSTLOADLIBES_bpf-fancy += -m32 28HOSTLOADLIBES_dropper += -m32 29endif 30 31# Tell kbuild to always build the programs 32always := $(hostprogs-y) 33