Skip to content

Commit

Permalink
test on msys2 gcc compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 31, 2020
1 parent 92b19e3 commit c01b6ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ DLLFLAG=-fPIC

PLATFORM = $(shell uname -s)
ifeq ($(findstring MINGW64,$(PLATFORM)), MINGW64)
MKMEX :=cmd /c mex.bat
MKMEX :=cmd //c mex.bat -v
INCLUDEDIRS+=-I"C:\msys64\mingw64\include"
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
MKMEXOPT =COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LINKFLAGS='$$LINKFLAGS -static $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' $(FASTMATH)
MKMEXOPT =-f mexopts_cygwin64_gcc.bat COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LINKFLAGS='$$LINKFLAGS -static $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' $(FASTMATH) -outdir ../mmclab
EXTRALIB +="-static"
#DLLFLAG =
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 c01b6ae

Please sign in to comment.