mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Makefile: allow generating git.o for debugging purposes
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
48dd1da8e1
commit
334d28ae60
8
Makefile
8
Makefile
|
@ -735,9 +735,13 @@ gitk-wish: gitk GIT-GUI-VARS
|
|||
chmod +x $@+ && \
|
||||
mv -f $@+ $@
|
||||
|
||||
git$X: git.c common-cmds.h $(BUILTIN_OBJS) $(GITLIBS) GIT-CFLAGS
|
||||
git.o: git.c common-cmds.h GIT-CFLAGS
|
||||
$(QUIET_CC)$(CC) -DGIT_VERSION='"$(GIT_VERSION)"' \
|
||||
$(ALL_CFLAGS) -c $(filter %.c,$^)
|
||||
|
||||
git$X: git.o $(BUILTIN_OBJS) $(GITLIBS)
|
||||
$(QUIET_LINK)$(CC) -DGIT_VERSION='"$(GIT_VERSION)"' \
|
||||
$(ALL_CFLAGS) -o $@ $(filter %.c,$^) \
|
||||
$(ALL_CFLAGS) -o $@ $(filter %.c,$^) git.o \
|
||||
$(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS)
|
||||
|
||||
help.o: common-cmds.h
|
||||
|
|
Loading…
Reference in a new issue