From facc5c2c1893f540b7a062deafd1770ef1cebdf5 Mon Sep 17 00:00:00 2001 From: bioinfornatics Date: Fri, 28 Sep 2012 21:57:56 +0200 Subject: [PATCH] Add Cygwin support --- command.make | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/command.make b/command.make index e987d31..331ddff 100644 --- a/command.make +++ b/command.make @@ -7,19 +7,25 @@ ifdef SystemRoot SHELL = cmd.exe Filter = %/linux/%.d %/darwin/%.d %/freebsd/%.d %/solaris/%.d getSource =$(shell dir $(ROOT_SOURCE_DIR) /s /b) +else ifneq (,$(findstring /mingw/,$PATH)) + OS = "MinGW" + STATIC_LIB_EXT = .lib + DYNAMIC_LIB_EXT = .dll + PATH_SEP =\ + message = @(echo $1) + SHELL = cmd.exe + Filter = %/linux/%.d %/darwin/%.d %/freebsd/%.d %/solaris/%.d + getSource =$(shell dir $(ROOT_SOURCE_DIR) /s /b) else SHELL = sh PATH_SEP =/ getSource =$(shell find $(ROOT_SOURCE_DIR) -name "*.d") - ifneq (,$(findstring /mingw/,$PATH)) - OS = "MinGW" - STATIC_LIB_EXT = .lib - DYNAMIC_LIB_EXT = .dll - PATH_SEP =\ - message = @(echo $1) - SHELL = cmd.exe - Filter = %/linux/%.d %/darwin/%.d %/freebsd/%.d %/solaris/%.d - getSource =$(shell dir $(ROOT_SOURCE_DIR) /s /b) + ifneq (,$(findstring /cygdrive/,$PATH)) + OS = "Cygwin" + STATIC_LIB_EXT = .a + DYNAMIC_LIB_EXT = .so + message = @(echo \033[31m $1 \033[0;0m1) + Filter = %/win32/%.d %/darwin/%.d %/freebsd/%.d %/solaris/%.d else ifeq ($(shell uname), Linux) OS = "Linux" STATIC_LIB_EXT = .a