Skip to content

Commit eb1d78a

Browse files
committed
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 <johannes.schindelin@gmx.de>
1 parent cd9e584 commit eb1d78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS
27412741
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
27422742
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
27432743

2744-
scalar$X: scalar.o GIT-LDFLAGS $(GITLIBS)
2744+
scalar$X: $(SCALAR_OBJS) GIT-LDFLAGS $(GITLIBS)
27452745
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) \
27462746
$(filter %.o,$^) $(LIBS)
27472747

0 commit comments

Comments
 (0)