[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [UNIKRAFT PATCH 7/7] build: Support generating C/C++ headers with pre-processing
Supports generating C/C++ header files by the pre-processing rules of the build system. Example: LIBMYLIB_SRCS += $(LIBMYLIB_BASE)/header.m4>.h Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> --- support/build/Makefile.rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules index 1aca3391..48c3f4ff 100644 --- a/support/build/Makefile.rules +++ b/support/build/Makefile.rules @@ -602,6 +602,16 @@ endef # Aliases for pre-processed files (e.g., *.in) buildrule_in = $(call buildrule_noop_,$(1),$(2)) +# Aliases for C headers +buildrule_h = $(call buildrule_noop_,$(1),$(2)) + +# Aliases for C++ headers +buildrule_hp = $(call buildrule_noop_,$(1),$(2)) +buildrule_hh = $(call buildrule_noop_,$(1),$(2)) +buildrule_hpp = $(call buildrule_noop_,$(1),$(2)) +buildrule_HPP = $(call buildrule_noop_,$(1),$(2)) +buildrule_H = $(call buildrule_noop_,$(1),$(2)) + # wrapper for buildrule_*, # selects appropriate buildrule depending on file extension, # if there is no such buildrule available, we throw an error. -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |