32 lines · 1.0 KB · Makefile
RawDownload
# kbuild trick to avoid linker error. Can be omitted if a module is built.obj- := dummy.o hostprogs-$(CONFIG_SECCOMP_FILTER) := bpf-fancy dropper bpf-direct HOSTCFLAGS_bpf-fancy.o += -I$(objtree)/usr/includeHOSTCFLAGS_bpf-fancy.o += -idirafter $(objtree)/includeHOSTCFLAGS_bpf-helper.o += -I$(objtree)/usr/includeHOSTCFLAGS_bpf-helper.o += -idirafter $(objtree)/includebpf-fancy-objs := bpf-fancy.o bpf-helper.o HOSTCFLAGS_dropper.o += -I$(objtree)/usr/includeHOSTCFLAGS_dropper.o += -idirafter $(objtree)/includedropper-objs := dropper.o HOSTCFLAGS_bpf-direct.o += -I$(objtree)/usr/includeHOSTCFLAGS_bpf-direct.o += -idirafter $(objtree)/includebpf-direct-objs := bpf-direct.o # Try to match the kernel target.ifeq ($(CONFIG_64BIT),)HOSTCFLAGS_bpf-direct.o += -m32HOSTCFLAGS_dropper.o += -m32HOSTCFLAGS_bpf-helper.o += -m32HOSTCFLAGS_bpf-fancy.o += -m32HOSTLOADLIBES_bpf-direct += -m32HOSTLOADLIBES_bpf-fancy += -m32HOSTLOADLIBES_dropper += -m32endif # Tell kbuild to always build the programsalways := $(hostprogs-y)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t