lib.mk (a108772d03d8bdb43258218b00bfe43bbe1e8800) lib.mk (a52540522c9541bfa3e499d2edba7bc0ca73a4ca)
1# This mimics the top-level Makefile. We do it explicitly here so that this
2# Makefile can operate with or without the kbuild infrastructure.
3ifneq ($(LLVM),)
4ifneq ($(filter %/,$(LLVM)),)
5LLVM_PREFIX := $(LLVM)
6else ifneq ($(filter -%,$(LLVM)),)
7LLVM_SUFFIX := $(LLVM)
8endif

--- 26 unchanged lines hidden (view full) ---

35
36ifeq (0,$(MAKELEVEL))
37 ifeq ($(OUTPUT),)
38 OUTPUT := $(shell pwd)
39 DEFAULT_INSTALL_HDR_PATH := 1
40 endif
41endif
42selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST))))
1# This mimics the top-level Makefile. We do it explicitly here so that this
2# Makefile can operate with or without the kbuild infrastructure.
3ifneq ($(LLVM),)
4ifneq ($(filter %/,$(LLVM)),)
5LLVM_PREFIX := $(LLVM)
6else ifneq ($(filter -%,$(LLVM)),)
7LLVM_SUFFIX := $(LLVM)
8endif

--- 26 unchanged lines hidden (view full) ---

35
36ifeq (0,$(MAKELEVEL))
37 ifeq ($(OUTPUT),)
38 OUTPUT := $(shell pwd)
39 DEFAULT_INSTALL_HDR_PATH := 1
40 endif
41endif
42selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST))))
43top_srcdir = $(selfdir)/../../..
43
44
45ifeq ($(KHDR_INCLUDES),)
46KHDR_INCLUDES := -isystem $(top_srcdir)/usr/include
47endif
48
44# The following are built by lib.mk common compile rules.
45# TEST_CUSTOM_PROGS should be used by tests that require
46# custom build rule and prevent common build rule use.
47# TEST_PROGS are for test shell scripts.
48# TEST_CUSTOM_PROGS and TEST_PROGS will be run by common run_tests
49# and install targets. Common clean doesn't touch them.
50TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS))
51TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED))

--- 93 unchanged lines hidden ---
49# The following are built by lib.mk common compile rules.
50# TEST_CUSTOM_PROGS should be used by tests that require
51# custom build rule and prevent common build rule use.
52# TEST_PROGS are for test shell scripts.
53# TEST_CUSTOM_PROGS and TEST_PROGS will be run by common run_tests
54# and install targets. Common clean doesn't touch them.
55TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS))
56TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED))

--- 93 unchanged lines hidden ---