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