Makefile (1e05a7e6ebc4a5a5c53dce32e7e6d0ff5e7e08d1) | Makefile (1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1) |
---|---|
1# SPDX-License-Identifier: GPL-2.0-only 2 3# Unlike the kernel space, exported headers are written in standard C. 4# - Forbid C++ style comments 5# - Use '__inline__', '__asm__' instead of 'inline', 'asm' 6# 7# -std=c90 (equivalent to -ansi) catches the violation of those. 8# We cannot go as far as adding -Wpedantic since it emits too many warnings. --- 101 unchanged lines hidden (view full) --- 110# asm-generic/*.h is used by asm/*.h, and should not be included directly 111header-test- += asm-generic/% 112 113# The rest are compile-tested 114header-test-y += $(filter-out $(header-test-), \ 115 $(patsubst $(obj)/%,%, $(wildcard \ 116 $(addprefix $(obj)/, *.h */*.h */*/*.h */*/*/*.h)))) 117 | 1# SPDX-License-Identifier: GPL-2.0-only 2 3# Unlike the kernel space, exported headers are written in standard C. 4# - Forbid C++ style comments 5# - Use '__inline__', '__asm__' instead of 'inline', 'asm' 6# 7# -std=c90 (equivalent to -ansi) catches the violation of those. 8# We cannot go as far as adding -Wpedantic since it emits too many warnings. --- 101 unchanged lines hidden (view full) --- 110# asm-generic/*.h is used by asm/*.h, and should not be included directly 111header-test- += asm-generic/% 112 113# The rest are compile-tested 114header-test-y += $(filter-out $(header-test-), \ 115 $(patsubst $(obj)/%,%, $(wildcard \ 116 $(addprefix $(obj)/, *.h */*.h */*/*.h */*/*/*.h)))) 117 |
118# For GNU Make <= 4.2.1, $(wildcard $(obj)/*/) matches to not only directories 119# but also regular files. Use $(filter %/, ...) just in case. 120clean-dirs += $(patsubst $(obj)/%/,%,$(filter %/, $(wildcard $(obj)/*/))) | 118clean-files += $(filter-out Makefile, $(notdir $(wildcard $(obj)/*))) |