Re: [RFC] Enable compilation by Makefile for the MSVC toolchain
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Aug 18, 2009, 13:09 UTC
- Message-ID
- <40aa078e0908180609h13968c56m4e0d0fd4dfa07669@mail.gmail.com>
- In-Reply-To
- <1250600335-8642-1-git-send-email-mstormo@gmail.com>
On Tue, Aug 18, 2009 at 2:58 PM, Marius Storm-Olsen<mstormo@gmail.com> wrote:
Show 11 quoted lines
> @@ -1331,14 +1396,14 @@ strip: $(PROGRAMS) git$X > git.o: git.c common-cmds.h GIT-CFLAGS > $(QUIET_CC)$(CC) -DGIT_VERSION='"$(GIT_VERSION)"' \ > '-DGIT_HTML_PATH="$(htmldir_SQ)"' \ > - $(ALL_CFLAGS) -c $(filter %.c,$^) > + $(ALL_CFLAGS) $(COMPFLAG) $(COBJFLAG)git.o $(filter %.c,$^) > > git$X: git.o $(BUILTIN_OBJS) $(GITLIBS) > - $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ git.o \ > + $(QUIET_LINK)$(LINK) $(LINKER_CFLAGS) $(LOBJFLAG)$@ git.o \ > $(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS)
<snip>
Show 5 quoted lines
> ifdef NO_EXPAT > http-walker.o: http-walker.c http.h GIT-CFLAGS > - $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DNO_EXPAT $< > + $(QUIET_CC)$(CC) $(COBJFLAG)$*.o $(COMPFLAG) $(ALL_CFLAGS) -DNO_EXPAT $< > endif
Perhaps this is the right time to change the make-system to using the somewhat standard $(COMPLIE.c), $(OUTPUT_OPTION) etc macros?
-- Erik "kusma" Faye-Lund kusmabite@gmail.com (+47) 986 59 656