summaryrefslogblamecommitdiff
path: root/support/make/cygwin.mk
blob: 2fc301ea09b5c729492aaf5fdd48b7035a0a0451 (plain) (tree)



























                                                                              

                                                                            

                                                                              
############################################################-*-Makefile-*-####
# CYGWIN - Cygwin Support
##############################################################################
# $Id$

##############################################################################
# Exports
#
# CYGWIN_TEST		 : a variable that is non-empty under cygwin
# CYGWIN_PATH		 : a function that converts file paths
# CYGWIN_FILE		 : a function that converts file names
#
##############################################################################

##############################################################################
# Defaults

UNAME			?= uname
CYGPATH			?= cygpath

##############################################################################
# Values

CYGWIN_TEST		 = $(filter CYGWIN%,$(shell $(UNAME)))

##############################################################################
# Functions

CYGWIN_PATH		 = $(if $(CYGWIN_TEST),`$(CYGPATH) -w -p $(1)`,$(1))
CYGWIN_FILE		 = $(if $(CYGWIN_TEST),`$(CYGPATH) -w    $(1)`,$(1))

##############################################################################