]> git.ipfire.org Git - thirdparty/git.git/blame - config.mak.uname
Merge branch 'rj/add-i-leak-fix'
[thirdparty/git.git] / config.mak.uname
CommitLineData
e1b6dbb5
JK
1# Platform specific Makefile tweaks based on uname detection
2
dce7d295
JH
3# Define NO_SAFESEH if you need MSVC/Visual Studio to ignore the lack of
4# Microsoft's Safe Exception Handling in libraries (such as zlib).
5# Typically required for VS2013+/32-bit compilation on Vista+ versions.
6
e1b6dbb5
JK
7uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
8uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
9uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
10uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
11uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
12uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
13
ebd2e4a1
CMAB
14ifneq ($(findstring MINGW,$(uname_S)),)
15 uname_S := MINGW
16endif
17
e1b6dbb5
JK
18ifdef MSVC
19 # avoid the MingW and Cygwin configuration sections
20 uname_S := Windows
21 uname_O := Windows
dce7d295
JH
22
23 # Generate and include makefile variables that point to the
24 # currently installed set of MSVC command line tools.
25compat/vcbuild/MSVC-DEFS-GEN: compat/vcbuild/find_vs_env.bat
26 @"$<" | tr '\\' / >"$@"
27include compat/vcbuild/MSVC-DEFS-GEN
28
29 # See if vcpkg and the vcpkg-build versions of the third-party
30 # libraries that we use are installed. We include the result
31 # to get $(vcpkg_*) variables defined for the Makefile.
976aaedc 32ifeq (,$(SKIP_VCPKG))
dce7d295
JH
33compat/vcbuild/VCPKG-DEFS: compat/vcbuild/vcpkg_install.bat
34 @"$<"
35include compat/vcbuild/VCPKG-DEFS
e1b6dbb5 36endif
976aaedc 37endif
e1b6dbb5
JK
38
39# We choose to avoid "if .. else if .. else .. endif endif"
40# because maintaining the nesting to match is a pain. If
41# we had "elif" things would have been much nicer...
42
e1b6dbb5
JK
43ifeq ($(uname_S),OSF1)
44 # Need this for u_short definitions et al
45 BASIC_CFLAGS += -D_OSF_SOURCE
46 SOCKLEN_T = int
47 NO_STRTOULL = YesPlease
48 NO_NSEC = YesPlease
49endif
50ifeq ($(uname_S),Linux)
61f76a36 51 HAVE_ALLOCA_H = YesPlease
e1b6dbb5 52 NO_STRLCPY = YesPlease
e1b6dbb5
JK
53 HAVE_PATHS_H = YesPlease
54 LIBC_CONTAINS_LIBINTL = YesPlease
55 HAVE_DEV_TTY = YesPlease
148d6771 56 HAVE_CLOCK_GETTIME = YesPlease
a6c3c638 57 HAVE_CLOCK_MONOTONIC = YesPlease
52fcec75
EW
58 # -lrt is needed for clock_gettime on glibc <= 2.16
59 NEEDS_LIBRT = YesPlease
abf38abe 60 HAVE_SYNC_FILE_RANGE = YesPlease
0cc30e0e 61 HAVE_GETDELIM = YesPlease
e2d90fd1 62 FREAD_READS_DIRECTORIES = UnfortunatelyYes
9806f5a7 63 BASIC_CFLAGS += -DHAVE_SYSINFO
226c0ddd 64 PROCFS_EXECUTABLE_PATH = /proc/self/exe
2f732bf1
ES
65 HAVE_PLATFORM_PROCINFO = YesPlease
66 COMPAT_OBJS += compat/linux/procinfo.o
ffb9f298 67 # centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7.
728b9ac0 68 ifneq ($(findstring .el7.,$(uname_R)),)
ffb9f298 69 BASIC_CFLAGS += -std=c99
728b9ac0 70 endif
e1b6dbb5
JK
71endif
72ifeq ($(uname_S),GNU/kFreeBSD)
61f76a36 73 HAVE_ALLOCA_H = YesPlease
e1b6dbb5 74 NO_STRLCPY = YesPlease
e1b6dbb5
JK
75 HAVE_PATHS_H = YesPlease
76 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
77 LIBC_CONTAINS_LIBINTL = YesPlease
e2d90fd1 78 FREAD_READS_DIRECTORIES = UnfortunatelyYes
e1b6dbb5
JK
79endif
80ifeq ($(uname_S),UnixWare)
81 CC = cc
82 NEEDS_SOCKET = YesPlease
83 NEEDS_NSL = YesPlease
84 NEEDS_SSL_WITH_CRYPTO = YesPlease
85 NEEDS_LIBICONV = YesPlease
86 SHELL_PATH = /usr/local/bin/bash
87 NO_IPV6 = YesPlease
88 NO_HSTRERROR = YesPlease
e1b6dbb5
JK
89 BASIC_CFLAGS += -Kthread
90 BASIC_CFLAGS += -I/usr/local/include
91 BASIC_LDFLAGS += -L/usr/local/lib
92 INSTALL = ginstall
93 TAR = gtar
94 NO_STRCASESTR = YesPlease
95 NO_MEMMEM = YesPlease
96endif
97ifeq ($(uname_S),SCO_SV)
728b9ac0 98 ifeq ($(uname_R),3.2)
e1b6dbb5 99 CFLAGS = -O2
728b9ac0
TB
100 endif
101 ifeq ($(uname_R),5)
e1b6dbb5
JK
102 CC = cc
103 BASIC_CFLAGS += -Kthread
728b9ac0 104 endif
e1b6dbb5
JK
105 NEEDS_SOCKET = YesPlease
106 NEEDS_NSL = YesPlease
107 NEEDS_SSL_WITH_CRYPTO = YesPlease
108 NEEDS_LIBICONV = YesPlease
109 SHELL_PATH = /usr/bin/bash
110 NO_IPV6 = YesPlease
111 NO_HSTRERROR = YesPlease
e1b6dbb5
JK
112 BASIC_CFLAGS += -I/usr/local/include
113 BASIC_LDFLAGS += -L/usr/local/lib
114 NO_STRCASESTR = YesPlease
115 NO_MEMMEM = YesPlease
116 INSTALL = ginstall
117 TAR = gtar
118endif
119ifeq ($(uname_S),Darwin)
120 NEEDS_CRYPTO_WITH_SSL = YesPlease
121 NEEDS_SSL_WITH_CRYPTO = YesPlease
122 NEEDS_LIBICONV = YesPlease
9eeff2f6
JH
123 # Note: $(uname_R) gives us the underlying Darwin version.
124 # - MacOS 10.0.* and MacOS 10.1.0 = Darwin 1.*
125 # - MacOS 10.x.* = Darwin (x+4).* for (1 <= x)
126 # i.e. "begins with [15678] and a dot" means "10.4.* or older".
728b9ac0 127 ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
e1b6dbb5 128 OLD_ICONV = UnfortunatelyYes
9c7a0bee 129 NO_APPLE_COMMON_CRYPTO = YesPlease
728b9ac0
TB
130 endif
131 ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
e1b6dbb5 132 NO_STRLCPY = YesPlease
728b9ac0
TB
133 endif
134 ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1)
4e368785 135 HAVE_GETDELIM = YesPlease
728b9ac0
TB
136 endif
137 ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 20 && echo 1),1)
bbabaad2 138 OPEN_RETURNS_EINTR = UnfortunatelyYes
728b9ac0 139 endif
e1b6dbb5
JK
140 NO_MEMMEM = YesPlease
141 USE_ST_TIMESPEC = YesPlease
142 HAVE_DEV_TTY = YesPlease
143 COMPAT_OBJS += compat/precompose_utf8.o
144 BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
a42643aa 145 BASIC_CFLAGS += -DPROTECT_HFS_DEFAULT=1
9529080d 146 HAVE_BSD_SYSCTL = YesPlease
8e178ec4 147 FREAD_READS_DIRECTORIES = UnfortunatelyYes
226c0ddd 148 HAVE_NS_GET_EXECUTABLE_PATH = YesPlease
05cd988d 149 CSPRNG_METHOD = arc4random
54463d32 150 USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS = YesPlease
a0b31086
JS
151
152 # Workaround for `gettext` being keg-only and not even being linked via
153 # `brew link --force gettext`, should be obsolete as of
154 # https://github.com/Homebrew/homebrew-core/pull/53489
728b9ac0 155 ifeq ($(shell test -d /usr/local/opt/gettext/ && echo y),y)
a0b31086
JS
156 BASIC_CFLAGS += -I/usr/local/include -I/usr/local/opt/gettext/include
157 BASIC_LDFLAGS += -L/usr/local/lib -L/usr/local/opt/gettext/lib
728b9ac0 158 ifeq ($(shell test -x /usr/local/opt/gettext/bin/msgfmt && echo y),y)
a0b31086 159 MSGFMT = /usr/local/opt/gettext/bin/msgfmt
728b9ac0 160 endif
d52b426a
PS
161 # On newer ARM-based machines the default installation path has changed to
162 # /opt/homebrew. Include it in our search paths so that the user does not
163 # have to configure this manually.
164 #
165 # Note that we do not employ the same workaround as above where we manually
166 # add gettext. The issue was fixed more than three years ago by now, and at
167 # that point there haven't been any ARM-based Macs yet.
728b9ac0 168 else ifeq ($(shell test -d /opt/homebrew/ && echo y),y)
d52b426a
PS
169 BASIC_CFLAGS += -I/opt/homebrew/include
170 BASIC_LDFLAGS += -L/opt/homebrew/lib
728b9ac0 171 ifeq ($(shell test -x /opt/homebrew/bin/msgfmt && echo y),y)
d52b426a 172 MSGFMT = /opt/homebrew/bin/msgfmt
728b9ac0
TB
173 endif
174 endif
f67df255
JH
175
176 # The builtin FSMonitor on MacOS builds upon Simple-IPC. Both require
177 # Unix domain sockets and PThreads.
728b9ac0
TB
178 ifndef NO_PTHREADS
179 ifndef NO_UNIX_SOCKETS
f67df255 180 FSMONITOR_DAEMON_BACKEND = darwin
a85ad67b 181 FSMONITOR_OS_SETTINGS = darwin
728b9ac0
TB
182 endif
183 endif
f67df255
JH
184
185 BASIC_LDFLAGS += -framework CoreServices
e1b6dbb5
JK
186endif
187ifeq ($(uname_S),SunOS)
188 NEEDS_SOCKET = YesPlease
189 NEEDS_NSL = YesPlease
190 SHELL_PATH = /bin/bash
191 SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
61f76a36 192 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
193 NO_STRCASESTR = YesPlease
194 NO_MEMMEM = YesPlease
195 NO_MKDTEMP = YesPlease
e1b6dbb5 196 NO_REGEX = YesPlease
e1b6dbb5
JK
197 NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
198 HAVE_DEV_TTY = YesPlease
728b9ac0 199 ifeq ($(uname_R),5.6)
e1b6dbb5
JK
200 SOCKLEN_T = int
201 NO_HSTRERROR = YesPlease
202 NO_IPV6 = YesPlease
203 NO_SOCKADDR_STORAGE = YesPlease
204 NO_UNSETENV = YesPlease
205 NO_SETENV = YesPlease
206 NO_STRLCPY = YesPlease
207 NO_STRTOUMAX = YesPlease
208 GIT_TEST_CMP = cmp
728b9ac0
TB
209 endif
210 ifeq ($(uname_R),5.7)
e1b6dbb5
JK
211 NEEDS_RESOLV = YesPlease
212 NO_IPV6 = YesPlease
213 NO_SOCKADDR_STORAGE = YesPlease
214 NO_UNSETENV = YesPlease
215 NO_SETENV = YesPlease
216 NO_STRLCPY = YesPlease
217 NO_STRTOUMAX = YesPlease
218 GIT_TEST_CMP = cmp
728b9ac0
TB
219 endif
220 ifeq ($(uname_R),5.8)
e1b6dbb5
JK
221 NO_UNSETENV = YesPlease
222 NO_SETENV = YesPlease
223 NO_STRTOUMAX = YesPlease
224 GIT_TEST_CMP = cmp
728b9ac0
TB
225 endif
226 ifeq ($(uname_R),5.9)
e1b6dbb5
JK
227 NO_UNSETENV = YesPlease
228 NO_SETENV = YesPlease
229 NO_STRTOUMAX = YesPlease
230 GIT_TEST_CMP = cmp
728b9ac0 231 endif
e1b6dbb5
JK
232 INSTALL = /usr/ucb/install
233 TAR = gtar
61f76a36 234 BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
e1b6dbb5
JK
235endif
236ifeq ($(uname_O),Cygwin)
728b9ac0 237 ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
e1b6dbb5 238 NO_D_TYPE_IN_DIRENT = YesPlease
e1b6dbb5
JK
239 NO_STRCASESTR = YesPlease
240 NO_MEMMEM = YesPlease
e1b6dbb5
JK
241 NO_SYMLINK_HEAD = YesPlease
242 NO_IPV6 = YesPlease
243 OLD_ICONV = UnfortunatelyYes
f593ef77
ML
244 # There are conflicting reports about this.
245 # On some boxes NO_MMAP is needed, and not so elsewhere.
246 # Try commenting this out if you suspect MMAP is more efficient
247 NO_MMAP = YesPlease
728b9ac0 248 else
92f63d2b 249 NO_REGEX = UnfortunatelyYes
728b9ac0 250 endif
61f76a36 251 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
252 NEEDS_LIBICONV = YesPlease
253 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
e1b6dbb5 254 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
e1b6dbb5 255 X = .exe
e1b6dbb5 256 UNRELIABLE_FSTAT = UnfortunatelyYes
e53a64b9 257 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
5b633610 258 MMAP_PREVENTS_DELETE = UnfortunatelyYes
1cadad6f 259 COMPAT_OBJS += compat/win32/path-utils.o
a5956d6a 260 FREAD_READS_DIRECTORIES = UnfortunatelyYes
e1b6dbb5
JK
261endif
262ifeq ($(uname_S),FreeBSD)
263 NEEDS_LIBICONV = YesPlease
6c6ce21b
ES
264 # Versions up to 10.1 require OLD_ICONV; 10.2 and beyond don't.
265 # A typical version string looks like "10.2-RELEASE".
728b9ac0 266 ifeq ($(shell expr "$(uname_R)" : '[1-9]\.'),2)
6c6ce21b 267 OLD_ICONV = YesPlease
728b9ac0
TB
268 endif
269 ifeq ($(firstword $(subst -, ,$(uname_R))),10.0)
6c6ce21b 270 OLD_ICONV = YesPlease
728b9ac0
TB
271 endif
272 ifeq ($(firstword $(subst -, ,$(uname_R))),10.1)
6c6ce21b 273 OLD_ICONV = YesPlease
728b9ac0 274 endif
e1b6dbb5
JK
275 NO_MEMMEM = YesPlease
276 BASIC_CFLAGS += -I/usr/local/include
277 BASIC_LDFLAGS += -L/usr/local/lib
278 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
279 USE_ST_TIMESPEC = YesPlease
728b9ac0 280 ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
e1b6dbb5
JK
281 PTHREAD_LIBS = -pthread
282 NO_UINTMAX_T = YesPlease
283 NO_STRTOUMAX = YesPlease
728b9ac0 284 endif
e1b6dbb5 285 PYTHON_PATH = /usr/local/bin/python
259f22af 286 PERL_PATH = /usr/local/bin/perl
e1b6dbb5 287 HAVE_PATHS_H = YesPlease
9529080d 288 HAVE_BSD_SYSCTL = YesPlease
226c0ddd 289 HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
05cd988d 290 CSPRNG_METHOD = arc4random
995bc22d 291 PAGER_ENV = LESS=FRX LV=-c MORE=FRX
e2d90fd1 292 FREAD_READS_DIRECTORIES = UnfortunatelyYes
18a4f6be 293 FILENO_IS_A_MACRO = UnfortunatelyYes
e1b6dbb5
JK
294endif
295ifeq ($(uname_S),OpenBSD)
296 NO_STRCASESTR = YesPlease
297 NO_MEMMEM = YesPlease
298 USE_ST_TIMESPEC = YesPlease
299 NEEDS_LIBICONV = YesPlease
300 BASIC_CFLAGS += -I/usr/local/include
301 BASIC_LDFLAGS += -L/usr/local/lib
302 HAVE_PATHS_H = YesPlease
9529080d 303 HAVE_BSD_SYSCTL = YesPlease
226c0ddd 304 HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
05cd988d 305 CSPRNG_METHOD = arc4random
226c0ddd 306 PROCFS_EXECUTABLE_PATH = /proc/curproc/file
4e3ecbd4 307 FREAD_READS_DIRECTORIES = UnfortunatelyYes
18a4f6be 308 FILENO_IS_A_MACRO = UnfortunatelyYes
92164af9
BS
309endif
310ifeq ($(uname_S),MirBSD)
311 NO_STRCASESTR = YesPlease
312 NO_MEMMEM = YesPlease
313 USE_ST_TIMESPEC = YesPlease
314 NEEDS_LIBICONV = YesPlease
315 HAVE_PATHS_H = YesPlease
9529080d 316 HAVE_BSD_SYSCTL = YesPlease
05cd988d 317 CSPRNG_METHOD = arc4random
e1b6dbb5
JK
318endif
319ifeq ($(uname_S),NetBSD)
728b9ac0 320 ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
e1b6dbb5 321 NEEDS_LIBICONV = YesPlease
728b9ac0 322 endif
e1b6dbb5
JK
323 BASIC_CFLAGS += -I/usr/pkg/include
324 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
325 USE_ST_TIMESPEC = YesPlease
e1b6dbb5 326 HAVE_PATHS_H = YesPlease
9529080d 327 HAVE_BSD_SYSCTL = YesPlease
226c0ddd 328 HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
05cd988d 329 CSPRNG_METHOD = arc4random
226c0ddd 330 PROCFS_EXECUTABLE_PATH = /proc/curproc/exe
e1b6dbb5
JK
331endif
332ifeq ($(uname_S),AIX)
333 DEFAULT_PAGER = more
334 NO_STRCASESTR = YesPlease
335 NO_MEMMEM = YesPlease
336 NO_MKDTEMP = YesPlease
e1b6dbb5
JK
337 NO_STRLCPY = YesPlease
338 NO_NSEC = YesPlease
0e6d899f 339 NO_REGEX = NeedsStartEnd
e1b6dbb5
JK
340 FREAD_READS_DIRECTORIES = UnfortunatelyYes
341 INTERNAL_QSORT = UnfortunatelyYes
342 NEEDS_LIBICONV = YesPlease
343 BASIC_CFLAGS += -D_LARGE_FILES
ee662bf5 344 FILENO_IS_A_MACRO = UnfortunatelyYes
400caafb 345 NEED_ACCESS_ROOT_HANDLER = UnfortunatelyYes
728b9ac0 346 ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
e1b6dbb5 347 NO_PTHREADS = YesPlease
728b9ac0 348 else
e1b6dbb5 349 PTHREAD_LIBS = -lpthread
728b9ac0
TB
350 endif
351 ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
e1b6dbb5 352 INLINE = ''
728b9ac0 353 endif
e1b6dbb5
JK
354 GIT_TEST_CMP = cmp
355endif
356ifeq ($(uname_S),GNU)
357 # GNU/Hurd
61f76a36 358 HAVE_ALLOCA_H = YesPlease
e1b6dbb5 359 NO_STRLCPY = YesPlease
e1b6dbb5
JK
360 HAVE_PATHS_H = YesPlease
361 LIBC_CONTAINS_LIBINTL = YesPlease
274a1328 362 FREAD_READS_DIRECTORIES = UnfortunatelyYes
e1b6dbb5
JK
363endif
364ifeq ($(uname_S),IRIX)
365 NO_SETENV = YesPlease
366 NO_UNSETENV = YesPlease
367 NO_STRCASESTR = YesPlease
368 NO_MEMMEM = YesPlease
e1b6dbb5
JK
369 NO_MKDTEMP = YesPlease
370 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
371 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
372 # git dies with a segmentation fault when trying to access the first
373 # entry of a reflog. The conservative choice is made to always set
374 # NO_MMAP. If you suspect that your compiler is not affected by this
375 # issue, comment out the NO_MMAP statement.
376 NO_MMAP = YesPlease
377 NO_REGEX = YesPlease
e1b6dbb5
JK
378 SNPRINTF_RETURNS_BOGUS = YesPlease
379 SHELL_PATH = /usr/gnu/bin/bash
380 NEEDS_LIBGEN = YesPlease
381endif
382ifeq ($(uname_S),IRIX64)
383 NO_SETENV = YesPlease
384 NO_UNSETENV = YesPlease
385 NO_STRCASESTR = YesPlease
386 NO_MEMMEM = YesPlease
e1b6dbb5
JK
387 NO_MKDTEMP = YesPlease
388 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
389 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
390 # git dies with a segmentation fault when trying to access the first
391 # entry of a reflog. The conservative choice is made to always set
392 # NO_MMAP. If you suspect that your compiler is not affected by this
393 # issue, comment out the NO_MMAP statement.
394 NO_MMAP = YesPlease
395 NO_REGEX = YesPlease
e1b6dbb5
JK
396 SNPRINTF_RETURNS_BOGUS = YesPlease
397 SHELL_PATH = /usr/gnu/bin/bash
398 NEEDS_LIBGEN = YesPlease
399endif
400ifeq ($(uname_S),HP-UX)
401 INLINE = __inline
402 NO_IPV6 = YesPlease
403 NO_SETENV = YesPlease
404 NO_STRCASESTR = YesPlease
405 NO_MEMMEM = YesPlease
e1b6dbb5
JK
406 NO_STRLCPY = YesPlease
407 NO_MKDTEMP = YesPlease
408 NO_UNSETENV = YesPlease
409 NO_HSTRERROR = YesPlease
410 NO_SYS_SELECT_H = YesPlease
e1b6dbb5
JK
411 SNPRINTF_RETURNS_BOGUS = YesPlease
412 NO_NSEC = YesPlease
728b9ac0 413 ifeq ($(uname_R),B.11.00)
e1b6dbb5
JK
414 NO_INET_NTOP = YesPlease
415 NO_INET_PTON = YesPlease
728b9ac0
TB
416 endif
417 ifeq ($(uname_R),B.10.20)
e1b6dbb5
JK
418 # Override HP-UX 11.x setting:
419 INLINE =
420 SOCKLEN_T = size_t
421 NO_PREAD = YesPlease
422 NO_INET_NTOP = YesPlease
423 NO_INET_PTON = YesPlease
728b9ac0 424 endif
e1b6dbb5
JK
425 GIT_TEST_CMP = cmp
426endif
427ifeq ($(uname_S),Windows)
428 GIT_VERSION := $(GIT_VERSION).MSVC
429 pathsep = ;
dce7d295 430 # Assume that this is built in Git for Windows' SDK
728b9ac0 431 ifeq (MINGW32,$(MSYSTEM))
dce7d295 432 prefix = /mingw32
728b9ac0 433 else
dce7d295 434 prefix = /mingw64
728b9ac0 435 endif
dce7d295
JH
436 # Prepend MSVC 64-bit tool-chain to PATH.
437 #
438 # A regular Git Bash *does not* have cl.exe in its $PATH. As there is a
439 # link.exe next to, and required by, cl.exe, we have to prepend this
440 # onto the existing $PATH.
441 #
442 SANE_TOOL_PATH ?= $(msvc_bin_dir_msys)
61f76a36 443 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
444 NO_PREAD = YesPlease
445 NEEDS_CRYPTO_WITH_SSL = YesPlease
446 NO_LIBGEN_H = YesPlease
447 NO_POLL = YesPlease
448 NO_SYMLINK_HEAD = YesPlease
449 NO_IPV6 = YesPlease
e1b6dbb5 450 NO_SETENV = YesPlease
e1b6dbb5
JK
451 NO_STRCASESTR = YesPlease
452 NO_STRLCPY = YesPlease
e1b6dbb5 453 NO_MEMMEM = YesPlease
dce7d295 454 NEEDS_LIBICONV = YesPlease
e1b6dbb5 455 NO_STRTOUMAX = YesPlease
e1b6dbb5 456 NO_MKDTEMP = YesPlease
dce7d295 457 NO_INTTYPES_H = YesPlease
05cd988d 458 CSPRNG_METHOD = rtlgenrandom
dce7d295
JH
459 # VS2015 with UCRT claims that snprintf and friends are C99 compliant,
460 # so we don't need this:
461 #
462 # SNPRINTF_RETURNS_BOGUS = YesPlease
62c73671
JH
463
464 # The builtin FSMonitor requires Named Pipes and Threads on Windows.
465 # These are always available, so we do not have to conditionally
466 # support it.
467 FSMONITOR_DAEMON_BACKEND = win32
d33c804d
JH
468 FSMONITOR_OS_SETTINGS = win32
469
e1b6dbb5 470 NO_SVN_TESTS = YesPlease
e1b6dbb5 471 RUNTIME_PREFIX = YesPlease
86e25458 472 HAVE_WPGMPTR = YesWeDo
e1b6dbb5 473 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
59c7b881 474 USE_WIN32_IPC = YesPlease
e1b6dbb5 475 USE_WIN32_MMAP = YesPlease
5b633610 476 MMAP_PREVENTS_DELETE = UnfortunatelyYes
e1b6dbb5
JK
477 # USE_NED_ALLOCATOR = YesPlease
478 UNRELIABLE_FSTAT = UnfortunatelyYes
479 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
480 NO_REGEX = YesPlease
bad866a2 481 NO_GETTEXT = YesPlease
e1b6dbb5 482 NO_PYTHON = YesPlease
e0492c5b 483 ETAGS_TARGET = ETAGS
e1b6dbb5
JK
484 NO_POSIX_GOODIES = UnfortunatelyYes
485 NATIVE_CRLF = YesPlease
486 DEFAULT_HELP_FORMAT = html
fb5e3378
JS
487ifeq (/mingw64,$(subst 32,64,$(prefix)))
488 # Move system config into top-level /etc/
489 ETC_GITCONFIG = ../etc/gitconfig
490 ETC_GITATTRIBUTES = ../etc/gitattributes
491endif
e1b6dbb5
JK
492
493 CC = compat/vcbuild/scripts/clink.pl
494 AR = compat/vcbuild/scripts/lib.pl
495 CFLAGS =
dce7d295 496 BASIC_CFLAGS = -nologo -I. -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
e1b6dbb5 497 COMPAT_OBJS = compat/msvc.o compat/winansi.o \
abf38abe 498 compat/win32/flush.o \
22c3634c 499 compat/win32/path-utils.o \
e1b6dbb5 500 compat/win32/pthread.o compat/win32/syslog.o \
353d3d77 501 compat/win32/trace2_win32_process_info.o \
e1b6dbb5 502 compat/win32/dirent.o
dce7d295 503 COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DDETECT_MSYS_TTY -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
396ff754 504 BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -ENTRY:wmainCRTStartup -SUBSYSTEM:CONSOLE
dce7d295
JH
505 # invalidcontinue.obj allows Git's source code to close the same file
506 # handle twice, or to access the osfhandle of an already-closed stdout
507 # See https://msdn.microsoft.com/en-us/library/ms235330.aspx
508 EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj kernel32.lib ntdll.lib
e1b6dbb5
JK
509 PTHREAD_LIBS =
510 lib =
dce7d295
JH
511 BASIC_CFLAGS += $(vcpkg_inc) $(sdk_includes) $(msvc_includes)
512ifndef DEBUG
513 BASIC_CFLAGS += $(vcpkg_rel_lib)
514else
515 BASIC_CFLAGS += $(vcpkg_dbg_lib)
516endif
517 BASIC_CFLAGS += $(sdk_libs) $(msvc_libs)
518
556702f8
JH
519ifneq ($(USE_MSVC_CRTDBG),)
520 # Optionally enable memory leak reporting.
521 BASIC_CFLAGS += -DUSE_MSVC_CRTDBG
522endif
dce7d295
JH
523 # Always give "-Zi" to the compiler and "-debug" to linker (even in
524 # release mode) to force a PDB to be generated (like RelWithDebInfo).
525 BASIC_CFLAGS += -Zi
526 BASIC_LDFLAGS += -debug -Zf
527
528ifdef NO_SAFESEH
529 LDFLAGS += -SAFESEH:NO
530endif
531
e1b6dbb5 532ifndef DEBUG
dce7d295
JH
533 BASIC_CFLAGS += -GL -Gy -O2 -Oy- -MD -DNDEBUG
534 BASIC_LDFLAGS += -release -LTCG /OPT:REF /OPT:ICF /INCREMENTAL:NO /DEBUGTYPE:CV,FIXUP
e1b6dbb5
JK
535 AR += -LTCG
536else
dce7d295 537 BASIC_CFLAGS += -MDd -DDEBUG -D_DEBUG
e1b6dbb5
JK
538endif
539 X = .exe
963e1543 540
4b8a2717
JS
541 EXTRA_PROGRAMS += headless-git$X
542
963e1543 543compat/msvc.o: compat/msvc.c compat/mingw.c GIT-CFLAGS
e1b6dbb5
JK
544endif
545ifeq ($(uname_S),Interix)
546 NO_INITGROUPS = YesPlease
547 NO_IPV6 = YesPlease
548 NO_MEMMEM = YesPlease
549 NO_MKDTEMP = YesPlease
550 NO_STRTOUMAX = YesPlease
551 NO_NSEC = YesPlease
728b9ac0 552 ifeq ($(uname_R),3.5)
e1b6dbb5
JK
553 NO_INET_NTOP = YesPlease
554 NO_INET_PTON = YesPlease
555 NO_SOCKADDR_STORAGE = YesPlease
728b9ac0
TB
556 endif
557 ifeq ($(uname_R),5.2)
e1b6dbb5
JK
558 NO_INET_NTOP = YesPlease
559 NO_INET_PTON = YesPlease
560 NO_SOCKADDR_STORAGE = YesPlease
728b9ac0 561 endif
e1b6dbb5
JK
562endif
563ifeq ($(uname_S),Minix)
564 NO_IPV6 = YesPlease
565 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
566 NO_NSEC = YesPlease
567 NEEDS_LIBGEN =
568 NEEDS_CRYPTO_WITH_SSL = YesPlease
e1b6dbb5
JK
569 NEEDS_RESOLV =
570 NO_HSTRERROR = YesPlease
571 NO_MMAP = YesPlease
572 NO_CURL =
573 NO_EXPAT =
574endif
575ifeq ($(uname_S),NONSTOP_KERNEL)
576 # Needs some C99 features, "inline" is just one of them.
577 # INLINE='' would just replace one set of warnings with another and
578 # still not compile in c89 mode, due to non-const array initializations.
579 CC = cc -c99
71fb089c 580 # Build down-rev compatible objects that don't use our new getopt_long.
728b9ac0 581 ifeq ($(uname_R).$(uname_V),J06.21)
71fb089c 582 CC += -WRVU=J06.20
728b9ac0
TB
583 endif
584 ifeq ($(uname_R).$(uname_V),L17.02)
71fb089c 585 CC += -WRVU=L16.05
728b9ac0 586 endif
e1b6dbb5
JK
587 # Disable all optimization, seems to result in bad code, with -O or -O2
588 # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
589 # abends on "git push". Needs more investigation.
71fb089c 590 CFLAGS = -g -O0 -Winline
e1b6dbb5
JK
591 # We'd want it to be here.
592 prefix = /usr/local
71fb089c
RB
593 # perl and python must be in /usr/bin on NonStop - supplied by HPE
594 # with operating system in that managed directory.
595 PERL_PATH = /usr/bin/perl
596 PYTHON_PATH = /usr/bin/python
597 # The current /usr/coreutils/rm at lowest support level does not work
598 # with the git test structure. Long paths as in
599 # 'trash directory...' cause rm to terminate prematurely without fully
600 # removing the directory at OS releases J06.21 and L17.02.
601 # Default to the older rm until those two releases are deprecated.
602 RM = /bin/rm -f
71fb089c
RB
603 NEEDS_CRYPTO_WITH_SSL = YesPlease
604 HAVE_DEV_TTY = YesPlease
e1b6dbb5
JK
605 HAVE_LIBCHARSET_H = YesPlease
606 HAVE_STRINGS_H = YesPlease
607 NEEDS_LIBICONV = YesPlease
608 NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
609 NO_SYS_SELECT_H = UnfortunatelyYes
610 NO_D_TYPE_IN_DIRENT = YesPlease
71fb089c 611 NO_GETTEXT = YesPlease
e1b6dbb5
JK
612 NO_HSTRERROR = YesPlease
613 NO_STRCASESTR = YesPlease
e1b6dbb5
JK
614 NO_MEMMEM = YesPlease
615 NO_STRLCPY = YesPlease
616 NO_SETENV = YesPlease
617 NO_UNSETENV = YesPlease
618 NO_MKDTEMP = YesPlease
e1b6dbb5
JK
619 # Currently libiconv-1.9.1.
620 OLD_ICONV = UnfortunatelyYes
71fb089c 621 NO_REGEX = NeedsStartEnd
e1b6dbb5 622 NO_PTHREADS = UnfortunatelyYes
243a4c7e 623 FREAD_READS_DIRECTORIES = UnfortunatelyYes
e1b6dbb5
JK
624
625 # Not detected (nor checked for) by './configure'.
626 # We don't have SA_RESTART on NonStop, unfortunalety.
627 COMPAT_CFLAGS += -DSA_RESTART=0
628 # Apparently needed in compat/fnmatch/fnmatch.c.
629 COMPAT_CFLAGS += -DHAVE_STRING_H=1
630 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
631 NO_NSEC = YesPlease
632 NO_PREAD = YesPlease
633 NO_MMAP = YesPlease
634 NO_POLL = YesPlease
635 NO_INTPTR_T = UnfortunatelyYes
05cd988d 636 CSPRNG_METHOD = openssl
e1b6dbb5 637 SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
f0ec22bb 638 SHELL_PATH = /usr/coreutils/bin/bash
e1b6dbb5 639endif
d254e650
H
640ifeq ($(uname_S),OS/390)
641 NO_SYS_POLL_H = YesPlease
642 NO_STRCASESTR = YesPlease
643 NO_REGEX = YesPlease
644 NO_MMAP = YesPlease
645 NO_NSEC = YesPlease
646 NO_STRLCPY = YesPlease
647 NO_MEMMEM = YesPlease
648 NO_GECOS_IN_PWENT = YesPlease
649 HAVE_STRINGS_H = YesPlease
650 NEEDS_MODE_TRANSLATION = YesPlease
651endif
ebd2e4a1 652ifeq ($(uname_S),MINGW)
728b9ac0 653 ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
2987407f 654 $(error "Building with MSys is no longer supported")
728b9ac0 655 endif
e1b6dbb5 656 pathsep = ;
22f4c27e 657 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
658 NO_PREAD = YesPlease
659 NEEDS_CRYPTO_WITH_SSL = YesPlease
660 NO_LIBGEN_H = YesPlease
661 NO_POLL = YesPlease
662 NO_SYMLINK_HEAD = YesPlease
e1b6dbb5 663 NO_SETENV = YesPlease
e1b6dbb5
JK
664 NO_STRCASESTR = YesPlease
665 NO_STRLCPY = YesPlease
e1b6dbb5
JK
666 NO_MEMMEM = YesPlease
667 NEEDS_LIBICONV = YesPlease
e1b6dbb5
JK
668 NO_STRTOUMAX = YesPlease
669 NO_MKDTEMP = YesPlease
e1b6dbb5 670 NO_SVN_TESTS = YesPlease
62c73671
JH
671
672 # The builtin FSMonitor requires Named Pipes and Threads on Windows.
673 # These are always available, so we do not have to conditionally
674 # support it.
675 FSMONITOR_DAEMON_BACKEND = win32
d33c804d
JH
676 FSMONITOR_OS_SETTINGS = win32
677
e1b6dbb5 678 RUNTIME_PREFIX = YesPlease
86e25458 679 HAVE_WPGMPTR = YesWeDo
e1b6dbb5 680 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
59c7b881 681 USE_WIN32_IPC = YesPlease
e1b6dbb5 682 USE_WIN32_MMAP = YesPlease
5b633610 683 MMAP_PREVENTS_DELETE = UnfortunatelyYes
e1b6dbb5
JK
684 UNRELIABLE_FSTAT = UnfortunatelyYes
685 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
686 NO_REGEX = YesPlease
e1b6dbb5 687 ETAGS_TARGET = ETAGS
e1b6dbb5 688 NO_POSIX_GOODIES = UnfortunatelyYes
65db0443 689 DEFAULT_HELP_FORMAT = html
b7e6a416 690 HAVE_PLATFORM_PROCINFO = YesPlease
05cd988d 691 CSPRNG_METHOD = rtlgenrandom
396ff754 692 BASIC_LDFLAGS += -municode
7b40ae86 693 COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
e1b6dbb5
JK
694 COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
695 COMPAT_OBJS += compat/mingw.o compat/winansi.o \
353d3d77 696 compat/win32/trace2_win32_process_info.o \
abf38abe 697 compat/win32/flush.o \
1cadad6f 698 compat/win32/path-utils.o \
e1b6dbb5
JK
699 compat/win32/pthread.o compat/win32/syslog.o \
700 compat/win32/dirent.o
7c9fbda6 701 BASIC_CFLAGS += -DWIN32
e1b6dbb5 702 EXTLIBS += -lws2_32
ce39c2e0 703 GITLIBS += git.res
e1b6dbb5 704 PTHREAD_LIBS =
ce39c2e0 705 RC = windres -O coff
95f31e9a 706 NATIVE_CRLF = YesPlease
e1b6dbb5 707 X = .exe
2987407f
HJ
708 # MSys2
709 prefix = /usr/
710 # Enable DEP
711 BASIC_LDFLAGS += -Wl,--nxcompat
712 # Enable ASLR (unless debugging)
728b9ac0 713 ifneq (,$(findstring -O,$(filter-out -O0 -Og,$(CFLAGS))))
2987407f 714 BASIC_LDFLAGS += -Wl,--dynamicbase
728b9ac0
TB
715 endif
716 ifeq (MINGW32,$(MSYSTEM))
2987407f
HJ
717 prefix = /mingw32
718 HOST_CPU = i686
719 BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup
728b9ac0
TB
720 endif
721 ifeq (MINGW64,$(MSYSTEM))
2987407f
HJ
722 prefix = /mingw64
723 HOST_CPU = x86_64
724 BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
728b9ac0 725 else
2987407f
HJ
726 COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
727 BASIC_LDFLAGS += -Wl,--large-address-aware
728b9ac0 728 endif
2987407f
HJ
729 CC = gcc
730 COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY \
731 -fstack-protector-strong
732 EXTLIBS += -lntdll
4b8a2717 733 EXTRA_PROGRAMS += headless-git$X
e1b6dbb5 734 INSTALL = /bin/install
e1b6dbb5
JK
735 INTERNAL_QSORT = YesPlease
736 HAVE_LIBCHARSET_H = YesPlease
2987407f
HJ
737 USE_GETTEXT_SCHEME = fallthrough
738 USE_LIBPCRE = YesPlease
739 USE_NED_ALLOCATOR = YesPlease
728b9ac0 740 ifeq (/mingw64,$(subst 32,64,$(prefix)))
2987407f
HJ
741 # Move system config into top-level /etc/
742 ETC_GITCONFIG = ../etc/gitconfig
743 ETC_GITATTRIBUTES = ../etc/gitattributes
728b9ac0 744 endif
e1b6dbb5 745endif
e1b6dbb5
JK
746ifeq ($(uname_S),QNX)
747 COMPAT_CFLAGS += -DSA_RESTART=0
081fd8d0 748 EXPAT_NEEDS_XMLPARSE_H = YesPlease
e1b6dbb5
JK
749 HAVE_STRINGS_H = YesPlease
750 NEEDS_SOCKET = YesPlease
e1b6dbb5
JK
751 NO_GETPAGESIZE = YesPlease
752 NO_ICONV = YesPlease
753 NO_MEMMEM = YesPlease
754 NO_MKDTEMP = YesPlease
e1b6dbb5
JK
755 NO_NSEC = YesPlease
756 NO_PTHREADS = YesPlease
e1b6dbb5
JK
757 NO_STRCASESTR = YesPlease
758 NO_STRLCPY = YesPlease
759endif
976aaedc
JS
760
761vcxproj:
762 # Require clean work tree
763 git update-index -q --refresh && \
764 git diff-files --quiet && \
765 git diff-index --cached --quiet HEAD --
766
767 # Make .vcxproj files and add them
976aaedc
JS
768 perl contrib/buildsystems/generate -g Vcxproj
769 git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
770
030a628b 771 # Generate the LinkOrCopyBuiltins.targets and LinkOrCopyRemoteHttp.targets file
b18ae14a
JS
772 (echo '<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">' && \
773 echo ' <Target Name="CopyBuiltins_AfterBuild" AfterTargets="AfterBuild">' && \
774 for name in $(BUILT_INS);\
775 do \
776 echo ' <Copy SourceFiles="$$(OutDir)\git.exe" DestinationFiles="$$(OutDir)\'"$$name"'" SkipUnchangedFiles="true" UseHardlinksIfPossible="true" />'; \
777 done && \
030a628b
JS
778 echo ' </Target>' && \
779 echo '</Project>') >git/LinkOrCopyBuiltins.targets
780 (echo '<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">' && \
781 echo ' <Target Name="CopyBuiltins_AfterBuild" AfterTargets="AfterBuild">' && \
b18ae14a
JS
782 for name in $(REMOTE_CURL_ALIASES); \
783 do \
784 echo ' <Copy SourceFiles="$$(OutDir)\'"$(REMOTE_CURL_PRIMARY)"'" DestinationFiles="$$(OutDir)\'"$$name"'" SkipUnchangedFiles="true" UseHardlinksIfPossible="true" />'; \
785 done && \
786 echo ' </Target>' && \
030a628b
JS
787 echo '</Project>') >git-remote-http/LinkOrCopyRemoteHttp.targets
788 git add -f git/LinkOrCopyBuiltins.targets git-remote-http/LinkOrCopyRemoteHttp.targets
b18ae14a 789
7c3c0a99
ÆAB
790 # Add generated headers
791 $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 $(GENERATED_H)
792 git add -f $(GENERATED_H)
976aaedc
JS
793
794 # Add scripts
795 rm -f perl/perl.mak
5d65ad17 796 $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 $(SCRIPT_LIB) $(SCRIPTS)
976aaedc
JS
797 # Strip out the sane tool path, needed only for building
798 sed -i '/^git_broken_path_fix ".*/d' git-sh-setup
5d65ad17 799 git add -f $(SCRIPT_LIB) $(SCRIPTS)
976aaedc
JS
800
801 # Add Perl module
802 $(MAKE) $(LIB_PERL_GEN)
803 git add -f perl/build
804
805 # Add bin-wrappers, for testing
806 rm -rf bin-wrappers/
807 $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 $(test_bindir_programs)
808 # Ensure that the GIT_EXEC_PATH is a Unix-y one, and that the absolute
809 # path of the repository is not hard-coded (GIT_EXEC_PATH will be set
810 # by test-lib.sh according to the current setup)
811 sed -i -e 's/^\(GIT_EXEC_PATH\)=.*/test -n "$${\1##*:*}" ||\
812 \1="$$(cygpath -u "$$\1")"/' \
813 -e "s|'$$(pwd)|\"\$$GIT_EXEC_PATH\"'|g" bin-wrappers/*
814 # Ensure that test-* helpers find the .dll files copied to top-level
815 sed -i 's|^PATH=.*|&:"$$GIT_EXEC_PATH"|' bin-wrappers/test-*
816 # We do not want to force hard-linking builtins
817 sed -i 's|\(git\)-\([-a-z]*\)\.exe"|\1.exe" \2|g' \
818 bin-wrappers/git-{receive-pack,upload-archive}
819 git add -f $(test_bindir_programs)
820 # remote-ext is a builtin, but invoked as if it were external
821 sed 's|receive-pack|remote-ext|g' \
822 <bin-wrappers/git-receive-pack >bin-wrappers/git-remote-ext
823 git add -f bin-wrappers/git-remote-ext
824
825 # Add templates
826 $(MAKE) -C templates
827 git add -f templates/boilerplates.made templates/blt/
828
5d65ad17
JS
829 # Add the translated messages
830 make MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 $(MOFILES)
831 git add -f $(MOFILES)
832
976aaedc
JS
833 # Add build options
834 $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 GIT-BUILD-OPTIONS
835 git add -f GIT-BUILD-OPTIONS
836
837 # Commit the whole shebang
838 git commit -m "Generate Visual Studio solution" \
839 -m "Auto-generated by \`$(MAKE)$(MAKEFLAGS) $@\`"