[PATCH v2 1/3] Makefile: define THIRD_PARTY_SOURCES
- From
Denton Liu <liu.denton@gmail.com>
- Date
- Sep 12, 2019, 17:28 UTC
- Message-ID
- <3878cb2598c677d139c8734b61772d0cdcfdb935.1568309119.git.liu.denton@gmail.com>
- In-Reply-To
- <cover.1568309119.git.liu.denton@gmail.com>
After looking through the source files in compat/ and investigating the files' content and/or its Git history, I've determined the list of files that were copied from a third-party source. Place the names of these files into the THIRD_PARTY_SOURCES variable in the Makefile.
In addition, add the sha1collisiondetection/ and sha1dc/ sources as well since they are also imported from a third-party source.
In a future commit, this variable will be used to determine which files are excluded when running the "coccicheck" target.
Signed-off-by: Denton Liu <liu.denton@gmail.com> --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/Makefile b/Makefile index ad71ae1219..b88b42d7ed 100644 --- a/Makefile +++ b/Makefile @@ -598,6 +598,7 @@ SCRIPT_SH = SCRIPT_LIB = TEST_BUILTINS_OBJS = TEST_PROGRAMS_NEED_X = +THIRD_PARTY_SOURCES = # Having this variable in your environment would break pipelines because # you cause "cd" to echo its destination to stdout. It can also take @@ -1146,6 +1147,15 @@ BUILTIN_OBJS += builtin/verify-tag.o BUILTIN_OBJS += builtin/worktree.o BUILTIN_OBJS += builtin/write-tree.o +THIRD_PARTY_SOURCES += compat/inet_ntop.c +THIRD_PARTY_SOURCES += compat/inet_pton.c +THIRD_PARTY_SOURCES += compat/obstack.% +THIRD_PARTY_SOURCES += compat/nedmalloc/% +THIRD_PARTY_SOURCES += compat/poll/% +THIRD_PARTY_SOURCES += compat/regex/% +THIRD_PARTY_SOURCES += sha1collisiondetection/% +THIRD_PARTY_SOURCES += sha1dc/% + GITLIBS = common-main.o $(LIB_FILE) $(XDIFF_LIB) EXTLIBS =
-- 2.23.0.37.g745f681289