:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / subsys / win32k / freetype / builds / os2 / detect.mk
1 #
2 # FreeType 2 configuration file to detect an OS/2 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   ifdef OS2_SHELL
19
20     PLATFORM := os2
21     COPY     := copy
22     DELETE   := del
23
24     CONFIG_FILE := os2-gcc.mk   # gcc-emx by default
25     SEP         := /
26
27     # additionally, we provide hooks for various other compilers
28     #
29     ifneq ($(findstring visualage,$(MAKECMDGOALS)),)     # Visual Age C++
30       CONFIG_FILE := os2-icc.mk
31       SEP         := $(BACKSLASH)
32       CC          := icc
33       .PHONY: visualage
34     endif
35
36     ifneq ($(findstring watcom,$(MAKECMDGOALS)),)        # Watcom C/C++
37       CONFIG_FILE := os2-wat.mk
38       SEP         := $(BACKSLASH)
39       CC          := wcc386
40       .PHONY: watcom
41     endif
42
43     ifneq ($(findstring borlandc,$(MAKECMDGOALS)),)      # Borland C++ 32-bit
44       CONFIG_FILE := os2-bcc.mk
45       SEP         := $(BACKSLASH)
46       CC          := bcc32
47       .PHONY: borlandc
48     endif
49
50     ifneq ($(findstring devel,$(MAKECMDGOALS)),)         # development target
51       CONFIG_FILE := os2-dev.mk
52       CC          := gcc
53       SEP         := /
54       devel: setup
55     endif
56
57     setup: dos_setup
58
59   endif # test OS2_SHELL
60 endif   # test PLATFORM
61
62 #EOF