1# Platform specific Makefile tweaks based on uname detection
2
3uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
4uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
5uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
6uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
7uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
8uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
9
10ifdef MSVC
11 # avoid the MingW and Cygwin configuration sections
12 uname_S := Windows
13 uname_O := Windows
14endif
15
16# We choose to avoid "if .. else if .. else .. endif endif"
17# because maintaining the nesting to match is a pain. If
18# we had "elif" things would have been much nicer...
19
20ifeq ($(uname_M),x86_64)
21 XDL_FAST_HASH = YesPlease
22endif
23ifeq ($(uname_S),OSF1)
24 # Need this for u_short definitions et al
25 BASIC_CFLAGS += -D_OSF_SOURCE
26 SOCKLEN_T = int
27 NO_STRTOULL = YesPlease
28 NO_NSEC = YesPlease
29endif
30ifeq ($(uname_S),Linux)
31 NO_STRLCPY = YesPlease
32 NO_MKSTEMPS = YesPlease
33 HAVE_PATHS_H = YesPlease
34 LIBC_CONTAINS_LIBINTL = YesPlease
35 HAVE_DEV_TTY = YesPlease
36endif
37ifeq ($(uname_S),GNU/kFreeBSD)
38 NO_STRLCPY = YesPlease
39 NO_MKSTEMPS = YesPlease
40 HAVE_PATHS_H = YesPlease
41 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
42 LIBC_CONTAINS_LIBINTL = YesPlease
43endif
44ifeq ($(uname_S),UnixWare)
45 CC = cc
46 NEEDS_SOCKET = YesPlease
47 NEEDS_NSL = YesPlease
48 NEEDS_SSL_WITH_CRYPTO = YesPlease
49 NEEDS_LIBICONV = YesPlease
50 SHELL_PATH = /usr/local/bin/bash
51 NO_IPV6 = YesPlease
52 NO_HSTRERROR = YesPlease
53 NO_MKSTEMPS = YesPlease
54 BASIC_CFLAGS += -Kthread
55 BASIC_CFLAGS += -I/usr/local/include
56 BASIC_LDFLAGS += -L/usr/local/lib
57 INSTALL = ginstall
58 TAR = gtar
59 NO_STRCASESTR = YesPlease
60 NO_MEMMEM = YesPlease
61endif
62ifeq ($(uname_S),SCO_SV)
63 ifeq ($(uname_R),3.2)
64 CFLAGS = -O2
65 endif
66 ifeq ($(uname_R),5)
67 CC = cc
68 BASIC_CFLAGS += -Kthread
69 endif
70 NEEDS_SOCKET = YesPlease
71 NEEDS_NSL = YesPlease
72 NEEDS_SSL_WITH_CRYPTO = YesPlease
73 NEEDS_LIBICONV = YesPlease
74 SHELL_PATH = /usr/bin/bash
75 NO_IPV6 = YesPlease
76 NO_HSTRERROR = YesPlease
77 NO_MKSTEMPS = YesPlease
78 BASIC_CFLAGS += -I/usr/local/include
79 BASIC_LDFLAGS += -L/usr/local/lib
80 NO_STRCASESTR = YesPlease
81 NO_MEMMEM = YesPlease
82 INSTALL = ginstall
83 TAR = gtar
84endif
85ifeq ($(uname_S),Darwin)
86 NEEDS_CRYPTO_WITH_SSL = YesPlease
87 NEEDS_SSL_WITH_CRYPTO = YesPlease
88 NEEDS_LIBICONV = YesPlease
89 ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
90 OLD_ICONV = UnfortunatelyYes
91 endif
92 ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
93 NO_STRLCPY = YesPlease
94 endif
95 NO_MEMMEM = YesPlease
96 USE_ST_TIMESPEC = YesPlease
97 HAVE_DEV_TTY = YesPlease
98 COMPAT_OBJS += compat/precompose_utf8.o
99 BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
100 BASIC_CFLAGS += -DPROTECT_HFS_DEFAULT=1
101endif
102ifeq ($(uname_S),SunOS)
103 NEEDS_SOCKET = YesPlease
104 NEEDS_NSL = YesPlease
105 SHELL_PATH = /bin/bash
106 SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
107 NO_STRCASESTR = YesPlease
108 NO_MEMMEM = YesPlease
109 NO_MKDTEMP = YesPlease
110 NO_MKSTEMPS = YesPlease
111 NO_REGEX = YesPlease
112 NO_FNMATCH_CASEFOLD = YesPlease
113 NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
114 HAVE_DEV_TTY = YesPlease
115 ifeq ($(uname_R),5.6)
116 SOCKLEN_T = int
117 NO_HSTRERROR = YesPlease
118 NO_IPV6 = YesPlease
119 NO_SOCKADDR_STORAGE = YesPlease
120 NO_UNSETENV = YesPlease
121 NO_SETENV = YesPlease
122 NO_STRLCPY = YesPlease
123 NO_STRTOUMAX = YesPlease
124 GIT_TEST_CMP = cmp
125 endif
126 ifeq ($(uname_R),5.7)
127 NEEDS_RESOLV = YesPlease
128 NO_IPV6 = YesPlease
129 NO_SOCKADDR_STORAGE = YesPlease
130 NO_UNSETENV = YesPlease
131 NO_SETENV = YesPlease
132 NO_STRLCPY = YesPlease
133 NO_STRTOUMAX = YesPlease
134 GIT_TEST_CMP = cmp
135 endif
136 ifeq ($(uname_R),5.8)
137 NO_UNSETENV = YesPlease
138 NO_SETENV = YesPlease
139 NO_STRTOUMAX = YesPlease
140 GIT_TEST_CMP = cmp
141 endif
142 ifeq ($(uname_R),5.9)
143 NO_UNSETENV = YesPlease
144 NO_SETENV = YesPlease
145 NO_STRTOUMAX = YesPlease
146 GIT_TEST_CMP = cmp
147 endif
148 INSTALL = /usr/ucb/install
149 TAR = gtar
150 BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
151endif
152ifeq ($(uname_O),Cygwin)
153 ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
154 NO_D_TYPE_IN_DIRENT = YesPlease
155 NO_D_INO_IN_DIRENT = YesPlease
156 NO_STRCASESTR = YesPlease
157 NO_MEMMEM = YesPlease
158 NO_MKSTEMPS = YesPlease
159 NO_SYMLINK_HEAD = YesPlease
160 NO_IPV6 = YesPlease
161 OLD_ICONV = UnfortunatelyYes
162 NO_THREAD_SAFE_PREAD = YesPlease
163 # There are conflicting reports about this.
164 # On some boxes NO_MMAP is needed, and not so elsewhere.
165 # Try commenting this out if you suspect MMAP is more efficient
166 NO_MMAP = YesPlease
167 else
168 NO_REGEX = UnfortunatelyYes
169 endif
170 NEEDS_LIBICONV = YesPlease
171 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
172 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
173 X = .exe
174 UNRELIABLE_FSTAT = UnfortunatelyYes
175 SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
176endif
177ifeq ($(uname_S),FreeBSD)
178 NEEDS_LIBICONV = YesPlease
179 OLD_ICONV = YesPlease
180 NO_MEMMEM = YesPlease
181 BASIC_CFLAGS += -I/usr/local/include
182 BASIC_LDFLAGS += -L/usr/local/lib
183 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
184 USE_ST_TIMESPEC = YesPlease
185 ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
186 PTHREAD_LIBS = -pthread
187 NO_UINTMAX_T = YesPlease
188 NO_STRTOUMAX = YesPlease
189 endif
190 PYTHON_PATH = /usr/local/bin/python
191 HAVE_PATHS_H = YesPlease
192 GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
193endif
194ifeq ($(uname_S),OpenBSD)
195 NO_STRCASESTR = YesPlease
196 NO_MEMMEM = YesPlease
197 USE_ST_TIMESPEC = YesPlease
198 NEEDS_LIBICONV = YesPlease
199 BASIC_CFLAGS += -I/usr/local/include
200 BASIC_LDFLAGS += -L/usr/local/lib
201 HAVE_PATHS_H = YesPlease
202endif
203ifeq ($(uname_S),MirBSD)
204 NO_STRCASESTR = YesPlease
205 NO_MEMMEM = YesPlease
206 USE_ST_TIMESPEC = YesPlease
207 NEEDS_LIBICONV = YesPlease
208 HAVE_PATHS_H = YesPlease
209endif
210ifeq ($(uname_S),NetBSD)
211 ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
212 NEEDS_LIBICONV = YesPlease
213 endif
214 BASIC_CFLAGS += -I/usr/pkg/include
215 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
216 USE_ST_TIMESPEC = YesPlease
217 NO_MKSTEMPS = YesPlease
218 HAVE_PATHS_H = YesPlease
219endif
220ifeq ($(uname_S),AIX)
221 DEFAULT_PAGER = more
222 NO_STRCASESTR = YesPlease
223 NO_MEMMEM = YesPlease
224 NO_MKDTEMP = YesPlease
225 NO_MKSTEMPS = YesPlease
226 NO_STRLCPY = YesPlease
227 NO_NSEC = YesPlease
228 FREAD_READS_DIRECTORIES = UnfortunatelyYes
229 INTERNAL_QSORT = UnfortunatelyYes
230 NEEDS_LIBICONV = YesPlease
231 BASIC_CFLAGS += -D_LARGE_FILES
232 ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
233 NO_PTHREADS = YesPlease
234 else
235 PTHREAD_LIBS = -lpthread
236 endif
237 ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
238 INLINE = ''
239 endif
240 GIT_TEST_CMP = cmp
241endif
242ifeq ($(uname_S),GNU)
243 # GNU/Hurd
244 NO_STRLCPY = YesPlease
245 NO_MKSTEMPS = YesPlease
246 HAVE_PATHS_H = YesPlease
247 LIBC_CONTAINS_LIBINTL = YesPlease
248endif
249ifeq ($(uname_S),IRIX)
250 NO_SETENV = YesPlease
251 NO_UNSETENV = YesPlease
252 NO_STRCASESTR = YesPlease
253 NO_MEMMEM = YesPlease
254 NO_MKSTEMPS = YesPlease
255 NO_MKDTEMP = YesPlease
256 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
257 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
258 # git dies with a segmentation fault when trying to access the first
259 # entry of a reflog. The conservative choice is made to always set
260 # NO_MMAP. If you suspect that your compiler is not affected by this
261 # issue, comment out the NO_MMAP statement.
262 NO_MMAP = YesPlease
263 NO_REGEX = YesPlease
264 NO_FNMATCH_CASEFOLD = YesPlease
265 SNPRINTF_RETURNS_BOGUS = YesPlease
266 SHELL_PATH = /usr/gnu/bin/bash
267 NEEDS_LIBGEN = YesPlease
268endif
269ifeq ($(uname_S),IRIX64)
270 NO_SETENV = YesPlease
271 NO_UNSETENV = YesPlease
272 NO_STRCASESTR = YesPlease
273 NO_MEMMEM = YesPlease
274 NO_MKSTEMPS = YesPlease
275 NO_MKDTEMP = YesPlease
276 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
277 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
278 # git dies with a segmentation fault when trying to access the first
279 # entry of a reflog. The conservative choice is made to always set
280 # NO_MMAP. If you suspect that your compiler is not affected by this
281 # issue, comment out the NO_MMAP statement.
282 NO_MMAP = YesPlease
283 NO_REGEX = YesPlease
284 NO_FNMATCH_CASEFOLD = YesPlease
285 SNPRINTF_RETURNS_BOGUS = YesPlease
286 SHELL_PATH = /usr/gnu/bin/bash
287 NEEDS_LIBGEN = YesPlease
288endif
289ifeq ($(uname_S),HP-UX)
290 INLINE = __inline
291 NO_IPV6 = YesPlease
292 NO_SETENV = YesPlease
293 NO_STRCASESTR = YesPlease
294 NO_MEMMEM = YesPlease
295 NO_MKSTEMPS = YesPlease
296 NO_STRLCPY = YesPlease
297 NO_MKDTEMP = YesPlease
298 NO_UNSETENV = YesPlease
299 NO_HSTRERROR = YesPlease
300 NO_SYS_SELECT_H = YesPlease
301 NO_FNMATCH_CASEFOLD = YesPlease
302 SNPRINTF_RETURNS_BOGUS = YesPlease
303 NO_NSEC = YesPlease
304 ifeq ($(uname_R),B.11.00)
305 NO_INET_NTOP = YesPlease
306 NO_INET_PTON = YesPlease
307 endif
308 ifeq ($(uname_R),B.10.20)
309 # Override HP-UX 11.x setting:
310 INLINE =
311 SOCKLEN_T = size_t
312 NO_PREAD = YesPlease
313 NO_INET_NTOP = YesPlease
314 NO_INET_PTON = YesPlease
315 endif
316 GIT_TEST_CMP = cmp
317endif
318ifeq ($(uname_S),Windows)
319 GIT_VERSION := $(GIT_VERSION).MSVC
320 pathsep = ;
321 NO_PREAD = YesPlease
322 NEEDS_CRYPTO_WITH_SSL = YesPlease
323 NO_LIBGEN_H = YesPlease
324 NO_POLL = YesPlease
325 NO_SYMLINK_HEAD = YesPlease
326 NO_IPV6 = YesPlease
327 NO_UNIX_SOCKETS = YesPlease
328 NO_SETENV = YesPlease
329 NO_UNSETENV = YesPlease
330 NO_STRCASESTR = YesPlease
331 NO_STRLCPY = YesPlease
332 NO_FNMATCH = YesPlease
333 NO_MEMMEM = YesPlease
334 # NEEDS_LIBICONV = YesPlease
335 NO_ICONV = YesPlease
336 NO_STRTOUMAX = YesPlease
337 NO_MKDTEMP = YesPlease
338 NO_MKSTEMPS = YesPlease
339 SNPRINTF_RETURNS_BOGUS = YesPlease
340 NO_SVN_TESTS = YesPlease
341 NO_PERL_MAKEMAKER = YesPlease
342 RUNTIME_PREFIX = YesPlease
343 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
344 NO_NSEC = YesPlease
345 USE_WIN32_MMAP = YesPlease
346 # USE_NED_ALLOCATOR = YesPlease
347 UNRELIABLE_FSTAT = UnfortunatelyYes
348 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
349 NO_REGEX = YesPlease
350 NO_CURL = YesPlease
351 NO_GETTEXT = YesPlease
352 NO_PYTHON = YesPlease
353 BLK_SHA1 = YesPlease
354 ETAGS_TARGET = ETAGS
355 NO_INET_PTON = YesPlease
356 NO_INET_NTOP = YesPlease
357 NO_POSIX_GOODIES = UnfortunatelyYes
358 NATIVE_CRLF = YesPlease
359 DEFAULT_HELP_FORMAT = html
360
361 CC = compat/vcbuild/scripts/clink.pl
362 AR = compat/vcbuild/scripts/lib.pl
363 CFLAGS =
364 BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
365 COMPAT_OBJS = compat/msvc.o compat/winansi.o \
366 compat/win32/pthread.o compat/win32/syslog.o \
367 compat/win32/dirent.o
368 COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -DHAVE_ALLOCA_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
369 BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE -NODEFAULTLIB:MSVCRT.lib
370 EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib
371 PTHREAD_LIBS =
372 lib =
373 BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
374ifndef DEBUG
375 BASIC_CFLAGS += -GL -Os -MT
376 BASIC_LDFLAGS += -LTCG
377 AR += -LTCG
378else
379 BASIC_CFLAGS += -Zi -MTd
380endif
381 X = .exe
382endif
383ifeq ($(uname_S),Interix)
384 NO_INITGROUPS = YesPlease
385 NO_IPV6 = YesPlease
386 NO_MEMMEM = YesPlease
387 NO_MKDTEMP = YesPlease
388 NO_STRTOUMAX = YesPlease
389 NO_NSEC = YesPlease
390 NO_MKSTEMPS = YesPlease
391 ifeq ($(uname_R),3.5)
392 NO_INET_NTOP = YesPlease
393 NO_INET_PTON = YesPlease
394 NO_SOCKADDR_STORAGE = YesPlease
395 NO_FNMATCH_CASEFOLD = YesPlease
396 endif
397 ifeq ($(uname_R),5.2)
398 NO_INET_NTOP = YesPlease
399 NO_INET_PTON = YesPlease
400 NO_SOCKADDR_STORAGE = YesPlease
401 NO_FNMATCH_CASEFOLD = YesPlease
402 endif
403endif
404ifeq ($(uname_S),Minix)
405 NO_IPV6 = YesPlease
406 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
407 NO_NSEC = YesPlease
408 NEEDS_LIBGEN =
409 NEEDS_CRYPTO_WITH_SSL = YesPlease
410 NEEDS_IDN_WITH_CURL = YesPlease
411 NEEDS_SSL_WITH_CURL = YesPlease
412 NEEDS_RESOLV =
413 NO_HSTRERROR = YesPlease
414 NO_MMAP = YesPlease
415 NO_CURL =
416 NO_EXPAT =
417endif
418ifeq ($(uname_S),NONSTOP_KERNEL)
419 # Needs some C99 features, "inline" is just one of them.
420 # INLINE='' would just replace one set of warnings with another and
421 # still not compile in c89 mode, due to non-const array initializations.
422 CC = cc -c99
423 # Disable all optimization, seems to result in bad code, with -O or -O2
424 # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
425 # abends on "git push". Needs more investigation.
426 CFLAGS = -g -O0
427 # We'd want it to be here.
428 prefix = /usr/local
429 # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
430 PERL_PATH = ${prefix}/bin/perl
431 PYTHON_PATH = ${prefix}/bin/python
432
433 # As detected by './configure'.
434 # Missdetected, hence commented out, see below.
435 #NO_CURL = YesPlease
436 # Added manually, see above.
437 NEEDS_SSL_WITH_CURL = YesPlease
438 HAVE_LIBCHARSET_H = YesPlease
439 HAVE_STRINGS_H = YesPlease
440 NEEDS_LIBICONV = YesPlease
441 NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
442 NO_SYS_SELECT_H = UnfortunatelyYes
443 NO_D_TYPE_IN_DIRENT = YesPlease
444 NO_HSTRERROR = YesPlease
445 NO_STRCASESTR = YesPlease
446 NO_FNMATCH_CASEFOLD = YesPlease
447 NO_MEMMEM = YesPlease
448 NO_STRLCPY = YesPlease
449 NO_SETENV = YesPlease
450 NO_UNSETENV = YesPlease
451 NO_MKDTEMP = YesPlease
452 NO_MKSTEMPS = YesPlease
453 # Currently libiconv-1.9.1.
454 OLD_ICONV = UnfortunatelyYes
455 NO_REGEX = YesPlease
456 NO_PTHREADS = UnfortunatelyYes
457
458 # Not detected (nor checked for) by './configure'.
459 # We don't have SA_RESTART on NonStop, unfortunalety.
460 COMPAT_CFLAGS += -DSA_RESTART=0
461 # Apparently needed in compat/fnmatch/fnmatch.c.
462 COMPAT_CFLAGS += -DHAVE_STRING_H=1
463 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
464 NO_NSEC = YesPlease
465 NO_PREAD = YesPlease
466 NO_MMAP = YesPlease
467 NO_POLL = YesPlease
468 NO_INTPTR_T = UnfortunatelyYes
469 # Bug report 10-120822-4477 submitted to HP NonStop development.
470 MKDIR_WO_TRAILING_SLASH = YesPlease
471 # RFE 10-120912-4693 submitted to HP NonStop development.
472 NO_SETITIMER = UnfortunatelyYes
473 SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
474 SHELL_PATH = /usr/local/bin/bash
475 # as of H06.25/J06.14, we might better use this
476 #SHELL_PATH = /usr/coreutils/bin/bash
477endif
478ifneq (,$(findstring MINGW,$(uname_S)))
479 pathsep = ;
480 NO_PREAD = YesPlease
481 NEEDS_CRYPTO_WITH_SSL = YesPlease
482 NO_LIBGEN_H = YesPlease
483 NO_POLL = YesPlease
484 NO_SYMLINK_HEAD = YesPlease
485 NO_UNIX_SOCKETS = YesPlease
486 NO_SETENV = YesPlease
487 NO_UNSETENV = YesPlease
488 NO_STRCASESTR = YesPlease
489 NO_STRLCPY = YesPlease
490 NO_FNMATCH = YesPlease
491 NO_MEMMEM = YesPlease
492 NEEDS_LIBICONV = YesPlease
493 NO_STRTOUMAX = YesPlease
494 NO_MKDTEMP = YesPlease
495 NO_MKSTEMPS = YesPlease
496 NO_SVN_TESTS = YesPlease
497 NO_PERL_MAKEMAKER = YesPlease
498 RUNTIME_PREFIX = YesPlease
499 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
500 NO_NSEC = YesPlease
501 USE_WIN32_MMAP = YesPlease
502 USE_NED_ALLOCATOR = YesPlease
503 UNRELIABLE_FSTAT = UnfortunatelyYes
504 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
505 NO_REGEX = YesPlease
506 NO_PYTHON = YesPlease
507 BLK_SHA1 = YesPlease
508 ETAGS_TARGET = ETAGS
509 NO_INET_PTON = YesPlease
510 NO_INET_NTOP = YesPlease
511 NO_POSIX_GOODIES = UnfortunatelyYes
512 DEFAULT_HELP_FORMAT = html
513 COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -D_USE_32BIT_TIME_T -DNOGDI -Icompat -Icompat/win32
514 COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
515 COMPAT_OBJS += compat/mingw.o compat/winansi.o \
516 compat/win32/pthread.o compat/win32/syslog.o \
517 compat/win32/dirent.o
518 BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
519 BASIC_LDFLAGS += -Wl,--large-address-aware
520 EXTLIBS += -lws2_32
521 GITLIBS += git.res
522 PTHREAD_LIBS =
523 RC = windres -O coff
524 NATIVE_CRLF = YesPlease
525 X = .exe
526 SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
527ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
528 htmldir = doc/git/html/
529 prefix =
530 INSTALL = /bin/install
531 EXTLIBS += /mingw/lib/libz.a
532 NO_R_TO_GCC_LINKER = YesPlease
533 INTERNAL_QSORT = YesPlease
534 HAVE_LIBCHARSET_H = YesPlease
535 NO_GETTEXT = YesPlease
536else
537 NO_CURL = YesPlease
538endif
539endif
540ifeq ($(uname_S),QNX)
541 COMPAT_CFLAGS += -DSA_RESTART=0
542 EXPAT_NEEDS_XMLPARSE_H = YesPlease
543 HAVE_STRINGS_H = YesPlease
544 NEEDS_SOCKET = YesPlease
545 NO_FNMATCH_CASEFOLD = YesPlease
546 NO_GETPAGESIZE = YesPlease
547 NO_ICONV = YesPlease
548 NO_MEMMEM = YesPlease
549 NO_MKDTEMP = YesPlease
550 NO_MKSTEMPS = YesPlease
551 NO_NSEC = YesPlease
552 NO_PTHREADS = YesPlease
553 NO_R_TO_GCC_LINKER = YesPlease
554 NO_STRCASESTR = YesPlease
555 NO_STRLCPY = YesPlease
556endif