From eb1d78aa0f58fc6ef8c9325b8d339ceb3e40697c Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 22 Sep 2022 09:17:53 +0200 Subject: [PATCH] scalar: make the build rule more generic We already define via `SCALAR_OBJS` which object files are specific to Scalar. Let's use them in the Makefile rule that builds the `scalar` executable. This is needed for the next commit, where we add a JSON parser in preparation for supporting Azure Repos. Signed-off-by: Johannes Schindelin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77b9b482385e97..832d08b87f3eff 100644 --- a/Makefile +++ b/Makefile @@ -2741,7 +2741,7 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \ $(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS) -scalar$X: scalar.o GIT-LDFLAGS $(GITLIBS) +scalar$X: $(SCALAR_OBJS) GIT-LDFLAGS $(GITLIBS) $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) \ $(filter %.o,$^) $(LIBS)