Skip to content

Commit

Permalink
simplify makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Apr 4, 2020
1 parent f576e76 commit 199f708
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ endif

HAS_CUDA := $(shell [ -d $(CUDA_LIB) ] && echo "1" )
ifeq ($(HAS_CUDA), 1)
CUCCOPT +=-I$(CUDA_LIB)/include -DUSE_OS_TIMER #-m32 -msse2 -Wfloat-equal -Wpointer-arith -DATI_OS_LINUX -g3 -ffor-scope
CCOPT += -I$(CUDA_LIB)/include -DUSE_OS_TIMER
CUCCOPT +=-DUSE_OS_TIMER #-m32 -msse2 -Wfloat-equal -Wpointer-arith -DATI_OS_LINUX -g3 -ffor-scope
CCOPT +=-DUSE_OS_TIMER
LIBOPENCLDIR=$(CUDA_LIB)/lib64
ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
LIBOPENCLDIR=$(CUDA_LIB)/lib/x64
Expand Down Expand Up @@ -86,7 +86,7 @@ ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
else ifeq ($(findstring MINGW64,$(PLATFORM)), MINGW64)
MW_MINGW64_LOC?=/c/msys64/usr
MEX :=cmd //c mex.bat -f mexopts_msys2_gcc.xml
INCLUDEDIRS+=-L$(LIBOPENCLDIR) -I"./mingw64/include"
INCLUDEDIRS+=-I"./mingw64/include"
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
LINKOPT=-L$(LIBOPENCLDIR) $(LIBOPENCL) $(EXTRALIB)
MEXCCOPT+=-DMX_COMPAT_32
Expand Down Expand Up @@ -115,7 +115,6 @@ mex: OUTPUTFLAG:=-output
mex: BINARY=mcxcl
mex oct: CUCCOPT+=$(DLLFLAG) -DMCX_CONTAINER
mex oct: CCOPT+=$(DLLFLAG) -DMCX_CONTAINER
mex oct: CPPOPT+=$(DLLFLAG) -DMCX_CONTAINER
mex: LINKOPT+=mcxlabcl.cpp -outdir $(OUTPUT_DIR) $(INCLUDEDIRS)

oct: BINARY=mcxcl.mex
Expand Down

0 comments on commit 199f708

Please sign in to comment.