blob: 2fc301ea09b5c729492aaf5fdd48b7035a0a0451 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
############################################################-*-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))
##############################################################################
|