This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / subsys / win32k / 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 ifeq ($(PLATFORM),ansi)
17
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
20   # work...
21   #
22   ifeq ($(OS),Windows_NT)
23     is_windows := 1
24
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'.
27     #
28     # If this is true, we are running a win32 platform (or an emulation).
29     #
30   else
31     ifdef COMSPEC
32       is_windows := $(findstring Windows,$(strip $(shell ver)))
33     endif
34   endif  # test NT
35
36   ifdef is_windows
37
38     PLATFORM := win32
39     DELETE   := del
40     COPY     := copy
41
42     CONFIG_FILE := w32-gcc.mk  # gcc Makefile by default
43     SEP         := /
44     ifeq ($(firstword $(CC)),cc)
45       CC        := gcc
46     endif
47
48     # additionally, we provide hooks for various other compilers
49     #
50     ifneq ($(findstring visualc,$(MAKECMDGOALS)),)     # Visual C/C++
51       CONFIG_FILE := w32-vcc.mk
52       SEP         := $(BACKSLASH)
53       CC          := cl
54       visualc: setup
55     endif
56
57     ifneq ($(findstring watcom,$(MAKECMDGOALS)),)      # Watcom C/C++
58       CONFIG_FILE := w32-wat.mk
59       SEP         := $(BACKSLASH)
60       CC          := wcc386
61       watcom: setup
62     endif
63
64     ifneq ($(findstring visualage,$(MAKECMDGOALS)),)   # Visual Age C++
65       CONFIG_FILE := w32-icc.mk
66       SEP         := $(BACKSLASH)
67       CC          := icc
68       visualage: setup
69     endif
70
71     ifneq ($(findstring lcc,$(MAKECMDGOALS)),)         # LCC-Win32
72       CONFIG_FILE := w32-lcc.mk
73       SEP         := $(BACKSLASH)
74       CC          := lcc
75       lcc: setup
76     endif
77
78     ifneq ($(findstring devel,$(MAKECMDGOALS)),)       # development target
79       CONFIG_FILE := w32-dev.mk
80       CC          := gcc
81       SEP         := /
82       devel: setup
83     endif
84
85     setup: dos_setup
86
87   endif # test is_windows
88 endif   # test PLATFORM
89
90 # EOF