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