Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Cygwin support
  • Loading branch information
bioinfornatics committed Sep 28, 2012
1 parent 50d522c commit facc5c2
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions command.make
Expand Up @@ -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
Expand Down

0 comments on commit facc5c2

Please sign in to comment.