From: Junio C Hamano Date: Wed, 13 Jun 2007 08:28:21 +0000 (-0700) Subject: Makefile: allow generating git.o for debugging purposes X-Git-Tag: v1.5.3-rc0~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=334d28ae;p=git.git Makefile: allow generating git.o for debugging purposes Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 392a5c4bf..a70277b44 100644 --- a/Makefile +++ b/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