langtools/make/Makefile
changeset 5854 5dc61238219e
parent 5848 c5a4ce47e780
child 7681 1f0819a3341f
child 7843 1103fac3fb5a
equal deleted inserted replaced
5853:4697bfeb5286 5854:5dc61238219e
    38 # Need FullPath because we can't rely on gnumake abspath, until we use v3.81
    38 # Need FullPath because we can't rely on gnumake abspath, until we use v3.81
    39 #
    39 #
    40 
    40 
    41 SYSTEM_UNAME := $(shell uname)
    41 SYSTEM_UNAME := $(shell uname)
    42 
    42 
       
    43 # Where is unwanted output to be delivered?
       
    44 # On Windows, MKS uses the special file "NUL", cygwin uses the customary unix file.
    43 ifeq ($(SYSTEM_UNAME), Windows_NT)
    45 ifeq ($(SYSTEM_UNAME), Windows_NT)
    44 DEV_NULL = NUL
    46 DEV_NULL = NUL
    45 else
    47 else
       
    48 DEV_NULL = /dev/null 
       
    49 endif
       
    50 
    46 ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
    51 ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
    47 DEV_NULL = NUL
       
    48 USING_CYGWIN = true
    52 USING_CYGWIN = true
    49 else
       
    50 DEV_NULL = /dev/null
       
    51 endif 
       
    52 endif
    53 endif
    53 
    54 
    54 ifdef USING_CYGWIN
    55 ifdef USING_CYGWIN
    55 define FullPath
    56 define FullPath
    56 $(shell cygpath -a -s -m $1 2> $(DEV_NULL))
    57 $(shell cygpath -a -s -m $1 2> $(DEV_NULL))