Skip to content

Commit

Permalink
switch windows building environment to msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianqian Fang committed Mar 30, 2020
1 parent 48e397f commit 92b19e3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ MKOCT :=mkoctfile
DLLFLAG=-fPIC

PLATFORM = $(shell uname -s)
ifeq ($(findstring MINGW32,$(PLATFORM)), MINGW32)
MKMEX :=cmd //c mex.bat
MKMEXOPT =COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LINKFLAGS='$$LINKFLAGS $(OPENMPLIB) $(MEXLINKOPT)' $(FASTMATH)
DLLFLAG =
ifeq ($(findstring MINGW64,$(PLATFORM)), MINGW64)
MKMEX :=cmd /c mex.bat
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
MKMEXOPT =COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LINKFLAGS='$$LINKFLAGS -static $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' $(FASTMATH)
EXTRALIB +="-static"
#DLLFLAG =
endif
ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
MKMEX :=cmd /c mex.bat
MKMEXOPT =-f mexopts_cygwin64_gcc.bat COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LINKFLAGS='$$LINKFLAGS $(OPENMPLIB) $(MEXLINKOPT)' $(FASTMATH) -outdir ../mmclab
DLLFLAG =
#DLLFLAG =
else ifeq ($(findstring Darwin,$(PLATFORM)), Darwin)
INCLUDEDIRS=-I/System/Library/Frameworks/OpenCL.framework/Headers
LIBOPENCL=-framework OpenCL
Expand Down

0 comments on commit 92b19e3

Please sign in to comment.