2 # FreeType 2 configuration file to detect a Win32 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 ifeq ($(PLATFORM),ansi)
18 # Detecting Windows NT is easy, as the OS variable must be defined and
19 # contains `Windows_NT'. Untested with Windows 2K, but I guess it should
22 ifeq ($(OS),Windows_NT)
25 # We test for the COMSPEC environment variable, then run the `ver'
26 # command-line program to see if its output contains the word `Windows'.
28 # If this is true, we are running a win32 platform (or an emulation).
32 is_windows := $(findstring Windows,$(strip $(shell ver)))
42 CONFIG_FILE := w32-gcc.mk # gcc Makefile by default
44 ifeq ($(firstword $(CC)),cc)
48 # additionally, we provide hooks for various other compilers
50 ifneq ($(findstring visualc,$(MAKECMDGOALS)),) # Visual C/C++
51 CONFIG_FILE := w32-vcc.mk
57 ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
58 CONFIG_FILE := w32-wat.mk
64 ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
65 CONFIG_FILE := w32-icc.mk
71 ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
72 CONFIG_FILE := w32-lcc.mk
78 ifneq ($(findstring devel,$(MAKECMDGOALS)),) # development target
79 CONFIG_FILE := w32-dev.mk
87 endif # test is_windows