Re: [RFC] Enable compilation by Makefile for the MSVC toolchain
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 18, 2009, 16:51 UTC
- Message-ID
- <7vtz05dq0p.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1250600335-8642-1-git-send-email-mstormo@gmail.com>
Marius Storm-Olsen <mstormo@gmail.com> writes:
Marius Storm-Olsen <mstormo@gmail.com> writes:
Show 14 quoted lines
> +ARFLAGS = rcs\ # whitespace intentional > +COMPFLAG = -c > +COBJFLAG = -o\ # whitespace intended > +LOBJFLAG = -o\ # whitespace intended > ... > +ifneq (,$(findstring Microsoft Visual Studio, $(INCLUDE))) > + CC = cl > + COBJFLAG = -Fo > + LOBJFLAG = -OUT: > + CFLAGS = > git.o: git.c common-cmds.h GIT-CFLAGS > ... > - $(ALL_CFLAGS) -c $(filter %.c,$^) > + $(ALL_CFLAGS) $(COMPFLAG) $(COBJFLAG)git.o $(filter %.c,$^)
Since use of make implies use of shell, this makes me wonder if it would make sense to go one step further by giving msvc users a thin shell wrapper mcvc-cc that turns bog-standard cc command line into whatever cl uses.