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-2018 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 
     44     .PHONY: visualage
     45     visualage: setup
     46 	    @cd .
     47   endif
     48 
     49   ifneq ($(findstring watcom,$(MAKECMDGOALS)),)        # Watcom C/C++
     50     CONFIG_FILE := os2-wat.mk
     51     CC          := wcc386
     52 
     53     .PHONY: watcom
     54     watcom: setup
     55 	    @cd .
     56   endif
     57 
     58   ifneq ($(findstring borlandc,$(MAKECMDGOALS)),)      # Borland C++ 32-bit
     59     CONFIG_FILE := os2-bcc.mk
     60     CC          := bcc32
     61 
     62     .PHONY: borlandc
     63     borlandc: setup
     64 	    @cd .
     65   endif
     66 
     67   ifneq ($(findstring devel,$(MAKECMDGOALS)),)         # development target
     68     CONFIG_FILE := os2-dev.mk
     69     CC          := gcc
     70 
     71     .PHONY: devel
     72     devel: setup
     73 	    @cd .
     74   endif
     75 
     76   setup: std_setup
     77 
     78 endif   # test PLATFORM os2
     79 
     80 
     81 # EOF
     82