Home | History | Annotate | Download | only in os2
      1 #
      2 # FreeType 2 configuration file to detect an OS/2 host platform.
      3 #
      4 
      5 
      6 # Copyright 1996-2015 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   CAT    := type
     33   SEP    := $(BACKSLASH)
     34 
     35   # gcc-emx by default
     36   CONFIG_FILE := os2-gcc.mk
     37 
     38   # additionally, we provide hooks for various other compilers
     39   #
     40   ifneq ($(findstring visualage,$(MAKECMDGOALS)),)     # Visual Age C++
     41     CONFIG_FILE := os2-icc.mk
     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     CC          := wcc386
     50     watcom: setup
     51     .PHONY: watcom
     52   endif
     53 
     54   ifneq ($(findstring borlandc,$(MAKECMDGOALS)),)      # Borland C++ 32-bit
     55     CONFIG_FILE := os2-bcc.mk
     56     CC          := bcc32
     57     borlandc: setup
     58     .PHONY: borlandc
     59   endif
     60 
     61   ifneq ($(findstring devel,$(MAKECMDGOALS)),)         # development target
     62     CONFIG_FILE := os2-dev.mk
     63     CC          := gcc
     64     devel: setup
     65     .PHONY: devel
     66   endif
     67 
     68   setup: dos_setup
     69 
     70 endif   # test PLATFORM os2
     71 
     72 
     73 # EOF
     74