This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / freetype / builds / win32 / detect.mk
1 #
2 # FreeType 2 configuration file to detect a Win32 host platform.
3 #
4
5
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
8 #
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
13 # fully.
14
15
16 .PHONY: setup
17
18
19 ifeq ($(PLATFORM),ansi)
20
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
23   # work...
24   #
25   ifeq ($(OS),Windows_NT)
26
27     is_windows := 1
28
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'.
31     #
32     # If this is true, we are running a win32 platform (or an emulation).
33     #
34   else
35     ifdef COMSPEC
36       is_windows := $(findstring Windows,$(strip $(shell ver)))
37     endif
38   endif  # test NT
39
40   ifdef is_windows
41
42     PLATFORM := win32
43
44   endif
45 endif # test PLATFORM ansi
46
47 ifeq ($(PLATFORM),win32)
48
49   DELETE   := del
50   COPY     := copy
51
52   # gcc Makefile by default
53   CONFIG_FILE := w32-gcc.mk
54   SEP         := /
55   ifeq ($(firstword $(CC)),cc)
56     CC        := gcc
57   endif
58
59   ifneq ($(findstring list,$(MAKECMDGOALS)),)  # test for the "list" target
60     dump_target_list:
61             @echo