Skip to content

Commit

Permalink
fix to previous checkin, Makefiles need $$
Browse files Browse the repository at this point in the history
  • Loading branch information
tesch1 committed Nov 28, 2014
1 parent 7d4ee99 commit 4e37ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Makefile.in
Expand Up @@ -484,15 +484,15 @@ MATLAB_SCRIPT = $(SRCDIR)$(RUNME)

matlab: $(SRCDIR_SRCS)
$(SWIG) -matlab $(SWIGOPT) -o $(ISRCS) $(INTERFACEPATH)
$(MATLAB_MEX) -g CFLAGS="$(CFLAGS)" $(ISRCS) $(SRCDIR_SRCS) $(SRCDIR_CSRCS) $(INCLUDES) $(LIBS) -output $(TARGET)_wrap
$(MATLAB_MEX) -g CFLAGS='$$CFLAGS $(CFLAGS)' $(ISRCS) $(SRCDIR_SRCS) $(SRCDIR_CSRCS) $(INCLUDES) $(LIBS) -output $(TARGET)_wrap

# -----------------------------------------------------------------
# Build a C++ dynamically loadable module
# -----------------------------------------------------------------

matlab_cpp: $(SRCDIR_SRCS)
$(SWIG) -c++ -matlab $(SWIGOPT) -o $(ICXXSRCS) $(INTERFACEPATH)
$(MATLAB_MEX) -g $(CPPFLAGS) CXXFLAGS="$(CXXFLAGS)" $(ICXXSRCS) $(SRCDIR_SRCS) $(SRCDIR_CXXSRCS) $(INCLUDES) $(LIBS) -output $(TARGET)_wrap
$(MATLAB_MEX) -g $(CPPFLAGS) CXXFLAGS='$$CXXFLAGS $(CXXFLAGS)' $(ICXXSRCS) $(SRCDIR_SRCS) $(SRCDIR_CXXSRCS) $(INCLUDES) $(LIBS) -output $(TARGET)_wrap

# -----------------------------------------------------------------
# Running an Matlab example
Expand Down

0 comments on commit 4e37ee6

Please sign in to comment.