Skip to content

Commit

Permalink
make creating octave mex file work again
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Apr 5, 2020
1 parent c6c5d55 commit 1abe23d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ AROUTPUT += -o
MAKE := make

LIBOPENCLDIR ?= /usr/local/cuda/lib64
LIBOPENCL=-lOpenCL
LIBOPENCL ?=-lOpenCL
EXTRALIB += -lm -lstdc++ -L$(LIBOPENCLDIR)

OPENMP := -fopenmp
Expand All @@ -48,7 +48,7 @@ endif
MEXLINKOPT +=$(OPENMPLIB)
MKMEX :=mex
MKMEXOPT =CC='$(CC)' CXX='$(CXX)' CXXLIBS='$$CXXLIBS $(LIBOPENCL)' CXXFLAGS='$(CCFLAGS) $(USERCCFLAGS)' LDFLAGS='-L$$TMW_ROOT$$MATLABROOT/sys/os/$$ARCH $$LDFLAGS $(MEXLINKOPT)' $(FASTMATH) -cxx -outdir $(BINDIR)
MKOCT :=mkoctfile
MKOCT :=mkoctfile -v

DLLFLAG=-fPIC

Expand Down Expand Up @@ -143,7 +143,7 @@ mex mexomp: ARFLAGS+=mmclab.cpp -I$(INCLUDEDIR)

oct: BINARY=mmc.mex
oct octomp: ARFLAGS+=--mex mmclab.cpp -I$(INCLUDEDIR)
oct octomp: AR=CC=$(CC) CXX=$(CXX) LDFLAGS='$(LFLAGS)' CPPFLAGS='$(CCFLAGS) $(USERCCFLAGS) -std=c++11' $(USEROCTOPT) $(MKOCT)
oct octomp: AR=CC=$(CC) CXX=$(CXX) LFLAGS='$(LFLAGS) $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' CPPFLAGS='$(CCFLAGS) $(USERCCFLAGS) -std=c++11' $(USEROCTOPT) $(MKOCT)
oct octomp: USERARFLAGS=-o $(BINDIR)/mmc

TARGETSUFFIX:=$(suffix $(BINARY))
Expand Down

0 comments on commit 1abe23d

Please sign in to comment.