33 lines · 855 B · Makefile
RawDownload
# SPDX-License-Identifier: GPL-2.0 top_srcdir = $(abspath ../../../..)APIDIR := $(top_scrdir)/include/uapiTEST_GEN_FILES = action.o KSFT_KHDR_INSTALL := 1include ../lib.mk CLANG ?= clangLLC   ?= llcPROBE := $(shell $(LLC) -march=bpf -mcpu=probe -filetype=null /dev/null 2>&1) ifeq ($(PROBE),)  CPU ?= probeelse  CPU ?= genericendif CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \	| sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }') CLANG_FLAGS = -I. -I$(APIDIR) \	      $(CLANG_SYS_INCLUDES) \	      -Wno-compare-distinct-pointer-types $(OUTPUT)/%.o: %.c	$(CLANG) $(CLANG_FLAGS) \		 -O2 -target bpf -emit-llvm -c $< -o - |      \	$(LLC) -march=bpf -mcpu=$(CPU) $(LLC_FLAGS) -filetype=obj -o $@ TEST_PROGS += ./tdc.shTEST_FILES := tdc*.py Tdc*.py plugins plugin-lib tc-tests

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