2 # FreeType 2 configuration file to detect a DOS host platform.
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
9 # This file is part of the FreeType project, and may only be used, modified,
10 # and distributed under the terms of the FreeType project license,
11 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
12 # indicate that you have read the license and understand and accept it
16 # We test for the COMSPEC environment variable, then run the `ver'
17 # command-line program to see if its output contains the word `Dos'.
19 # If this is true, we are running a Dos-ish platform (or an emulation).
21 ifeq ($(PLATFORM),ansi)
25 is_dos := $(findstring Dos,$(shell ver))
27 # We try to recognize a Dos session under OS/2. The `ver' command
28 # returns `Operating System/2 ...' there, so `is_dos' should be empty.
30 # To recognize a Dos session under OS/2, we check COMSPEC for the
31 # substring `MDOS\COMMAND'
34 is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
43 # Use DJGPP (i.e. gcc) by default.
45 CONFIG_FILE := dos-gcc.mk
51 # additionally, we provide hooks for various other compilers
53 ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
54 CONFIG_FILE := dos-tcc.mk
60 ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
61 CONFIG_FILE := dos-wat.mk
67 ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16-bit
68 CONFIG_FILE := dos-bcc.mk
74 ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32-bit
75 CONFIG_FILE := dos-bcc.mk