Skip to content

Commit

Permalink
Merge pull request #1882 from mgreter/cleanup/makefile-windows
Browse files Browse the repository at this point in the history
Cleanup makefile for windows
  • Loading branch information
mgreter committed Jan 20, 2016
2 parents 22d5142 + a958efc commit bc1e6db
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Makefile
Expand Up @@ -26,14 +26,14 @@ CAT ?= $(if $(filter $(OS),Windows_NT),type,cat)
ifneq (,$(findstring /cygdrive/,$(PATH)))
UNAME := Cygwin
else
ifneq (,$(findstring WINDOWS,$(PATH)))
ifneq (,$(findstring Windows_NT,$(OS)))
UNAME := Windows
else
ifneq (,$(findstring mingw32,$(MAKE)))
UNAME := MinGW
UNAME := Windows
else
ifneq (,$(findstring MINGW32,$(shell uname -s)))
UNAME = MinGW
UNAME = Windows
else
UNAME := $(shell uname -s)
endif
Expand Down Expand Up @@ -63,7 +63,7 @@ ifneq ($(LIBSASS_VERSION),)
endif

# enable mandatory flag
ifeq (MinGW,$(UNAME))
ifeq (Windows,$(UNAME))
ifneq ($(BUILD),shared)
STATIC_ALL ?= 1
endif
Expand Down Expand Up @@ -123,7 +123,7 @@ ifeq ($(UNAME),Darwin)
LDFLAGS += -stdlib=libc++
endif

ifneq (MinGW,$(UNAME))
ifneq (Windows,$(UNAME))
ifneq (FreeBSD,$(UNAME))
LDFLAGS += -ldl
LDLIBS += -ldl
Expand Down Expand Up @@ -154,7 +154,7 @@ RUBY_BIN = ruby
LIB_STATIC = $(SASS_LIBSASS_PATH)/lib/libsass.a
LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.so

ifeq (MinGW,$(UNAME))
ifeq (Windows,$(UNAME))
ifeq (shared,$(BUILD))
CFLAGS += -D ADD_EXPORTS
CXXFLAGS += -D ADD_EXPORTS
Expand All @@ -168,9 +168,6 @@ else
endif
endif

ifeq (MinGW,$(UNAME))
SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc.exe
endif
ifeq (Windows,$(UNAME))
SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc.exe
endif
Expand All @@ -180,7 +177,7 @@ include Makefile.conf
RESOURCES =
STATICLIB = lib/libsass.a
SHAREDLIB = lib/libsass.so
ifeq (MinGW,$(UNAME))
ifeq (Windows,$(UNAME))
RESOURCES += res/resource.rc
SHAREDLIB = lib/libsass.dll
ifeq (shared,$(BUILD))
Expand Down

0 comments on commit bc1e6db

Please sign in to comment.