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
19 ifeq ($(PLATFORM),ansi)
21 # Detecting Windows NT is easy, as the OS variable must be defined and
22 # contains `Windows_NT'. Untested with Windows 2K, but I guess it should
25 ifeq ($(OS),Windows_NT)
29 # We test for the COMSPEC environment variable, then run the `ver'
30 # command-line program to see if its output contains the word `Windows'.
32 # If this is true, we are running a win32 platform (or an emulation).
36 is_windows := $(findstring Windows,$(strip $(shell ver)))
45 endif # test PLATFORM ansi
47 ifeq ($(PLATFORM),win32)
52 # gcc Makefile by default
53 CONFIG_FILE := w32-gcc.mk
55 ifeq ($(firstword $(CC)),cc)
59 ifneq ($(findstring list,$(MAKECMDGOALS)),) # test for the "list" target