update for HEAD-2003050101
[reactos.git] / lib / 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 .PHONY: setup
17
18
19 ifeq ($(PLATFORM),ansi)
20
21   ifdef OS2_SHELL
22
23     PLATFORM := os2
24
25   endif # test OS2_SHELL
26 endif
27
28 ifeq ($(PLATFORM),os2)
29
30   COPY     := copy
31   DELETE   := del
32
33   # gcc-emx by default
34   CONFIG_FILE := os2-gcc.mk
35   SEP         := /
36
37   # additionally, we provide hooks for various other compilers
38   #
39   ifneq ($(findstring visualage,$(MAKECMDGOALS)),)     # Visual Age C++
40     CONFIG_FILE := os2-icc.mk
41     SEP         := $(BACKSLASH)
42     CC          := icc
43     visualage: setup
44     .PHONY: visualage
45   endif
46
47   ifneq ($(findstring watcom,$(MAKECMDGOALS)),)        # Watcom C/C++
48     CONFIG_FILE := os2-wat.mk
49     SEP         := $(BACKSLASH)
50     CC          := wcc386
51     watcom: setup
52     .PHONY: watcom
53   endif
54
55   ifneq ($(findstring borlandc,$(MAKECMDGOALS)),)      # Borland C++ 32-bit
56     CONFIG_FILE := os2-bcc.mk
57     SEP         := $(BACKSLASH)
58     CC          := bcc32
59     borlandc: setup
60     .PHONY: borlandc
61   endif
62
63   ifneq ($(findstring devel,$(MAKECMDGOALS)),)         # development target
64     CONFIG_FILE := os2-dev.mk
65     CC          := gcc
66     SEP         := /
67     devel: setup
68     .PHONY: devel
69   endif
70
71   setup: dos_setup
72
73 endif   # test PLATFORM os2
74
75 # EOF