1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the Linux BPFILTER layer. 4# 5 6userprogs := bpfilter_umh 7bpfilter_umh-objs := main.o 8userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi 9 10# builtin bpfilter_umh should be linked with -static 11# since rootfs isn't mounted at the time of __init 12# function is called and do_execv won't find elf interpreter 13userldflags += -static 14 15$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh 16 17obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o 18bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o 19