Makefile: keep MSVC and Cygwin configuration separate
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
035b76b03f
commit
d691d84eed
11
Makefile
11
Makefile
@ -212,6 +212,12 @@ uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
|
|||||||
uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
|
uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
|
||||||
uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
|
uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
|
||||||
|
|
||||||
|
ifdef MSVC
|
||||||
|
# avoid the MingW and Cygwin configuration sections
|
||||||
|
uname_S := Windows
|
||||||
|
uname_O := Windows
|
||||||
|
endif
|
||||||
|
|
||||||
# CFLAGS and LDFLAGS are for the users to override from the command line.
|
# CFLAGS and LDFLAGS are for the users to override from the command line.
|
||||||
|
|
||||||
CFLAGS = -g -O2 -Wall
|
CFLAGS = -g -O2 -Wall
|
||||||
@ -893,7 +899,7 @@ ifeq ($(uname_S),HP-UX)
|
|||||||
NO_SYS_SELECT_H = YesPlease
|
NO_SYS_SELECT_H = YesPlease
|
||||||
SNPRINTF_RETURNS_BOGUS = YesPlease
|
SNPRINTF_RETURNS_BOGUS = YesPlease
|
||||||
endif
|
endif
|
||||||
ifdef MSVC
|
ifeq ($(uname_S),Windows)
|
||||||
GIT_VERSION := $(GIT_VERSION).MSVC
|
GIT_VERSION := $(GIT_VERSION).MSVC
|
||||||
pathsep = ;
|
pathsep = ;
|
||||||
NO_PREAD = YesPlease
|
NO_PREAD = YesPlease
|
||||||
@ -945,7 +951,7 @@ else
|
|||||||
BASIC_CFLAGS += -Zi -MTd
|
BASIC_CFLAGS += -Zi -MTd
|
||||||
endif
|
endif
|
||||||
X = .exe
|
X = .exe
|
||||||
else
|
endif
|
||||||
ifneq (,$(findstring MINGW,$(uname_S)))
|
ifneq (,$(findstring MINGW,$(uname_S)))
|
||||||
pathsep = ;
|
pathsep = ;
|
||||||
NO_PREAD = YesPlease
|
NO_PREAD = YesPlease
|
||||||
@ -994,7 +1000,6 @@ else
|
|||||||
NO_PTHREADS = YesPlease
|
NO_PTHREADS = YesPlease
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
-include config.mak.autogen
|
-include config.mak.autogen
|
||||||
-include config.mak
|
-include config.mak
|
||||||
|
Loading…
Reference in New Issue
Block a user