Skip to content

Commit abc3c87

Browse files
avargitster
authored andcommitted
Makefile: split OBJECTS into OBJECTS and GIT_OBJS
Add a new GIT_OBJS variable, with the objects sufficient to get to a git.o or common-main.o. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d6da8b3 commit abc3c87

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ GENERATED_H =
582582
EXTRA_CPPFLAGS =
583583
FUZZ_OBJS =
584584
FUZZ_PROGRAMS =
585+
GIT_OBJS =
585586
LIB_OBJS =
586587
OBJECTS =
587588
PROGRAM_OBJS =
@@ -2388,10 +2389,12 @@ XDIFF_OBJS += xdiff/xutils.o
23882389

23892390
TEST_OBJS := $(patsubst %$X,%.o,$(TEST_PROGRAMS)) $(patsubst %,t/helper/%,$(TEST_BUILTINS_OBJS))
23902391

2391-
OBJECTS += $(LIB_OBJS)
2392-
OBJECTS += $(BUILTIN_OBJS)
2393-
OBJECTS += common-main.o
2394-
OBJECTS += git.o
2392+
GIT_OBJS += $(LIB_OBJS)
2393+
GIT_OBJS += $(BUILTIN_OBJS)
2394+
GIT_OBJS += common-main.o
2395+
GIT_OBJS += git.o
2396+
2397+
OBJECTS += $(GIT_OBJS)
23952398
OBJECTS += $(PROGRAM_OBJS)
23962399
OBJECTS += $(TEST_OBJS)
23972400
OBJECTS += $(XDIFF_OBJS)

0 commit comments

Comments
 (0)