Remove annoying echo of compiler invocation by R CMD SHLIB
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f00a41093c
commit
442422fee0
1 changed files with 3 additions and 2 deletions
|
|
@ -1142,20 +1142,21 @@ R_CFLAGS=-fPIC
|
||||||
|
|
||||||
# need to compile .cxx files outside of R build system to make sure that
|
# need to compile .cxx files outside of R build system to make sure that
|
||||||
# we get -fPIC
|
# we get -fPIC
|
||||||
|
# CMD SHLIB stdout is piped to /dev/null to prevent echo of compiler command
|
||||||
|
|
||||||
r: $(SRCS)
|
r: $(SRCS)
|
||||||
$(SWIG) -r $(SWIGOPT) $(INTERFACEPATH)
|
$(SWIG) -r $(SWIGOPT) $(INTERFACEPATH)
|
||||||
ifneq ($(SRCS),)
|
ifneq ($(SRCS),)
|
||||||
$(CXX) -g -c $(CFLAGS) $(R_CFLAGS) $(SRCS) $(INCLUDES)
|
$(CXX) -g -c $(CFLAGS) $(R_CFLAGS) $(SRCS) $(INCLUDES)
|
||||||
endif
|
endif
|
||||||
+( PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(ISRCS) $(OBJS) )
|
+( PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(ISRCS) $(OBJS) > /dev/null )
|
||||||
|
|
||||||
r_cpp: $(CXXSRCS)
|
r_cpp: $(CXXSRCS)
|
||||||
$(SWIG) -c++ -r $(SWIGOPT) -o $(RCXXSRCS) $(INTERFACEPATH)
|
$(SWIG) -c++ -r $(SWIGOPT) -o $(RCXXSRCS) $(INTERFACEPATH)
|
||||||
ifneq ($(CXXSRCS),)
|
ifneq ($(CXXSRCS),)
|
||||||
$(CXX) -g -c $(CFLAGS) $(R_CFLAGS) $(CXXSRCS) $(INCLUDES)
|
$(CXX) -g -c $(CFLAGS) $(R_CFLAGS) $(CXXSRCS) $(INCLUDES)
|
||||||
endif
|
endif
|
||||||
+( PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(RCXXSRCS) $(OBJS) )
|
+( PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(RCXXSRCS) $(OBJS) > /dev/null )
|
||||||
|
|
||||||
r_clean:
|
r_clean:
|
||||||
rm -f *_wrap* *~ .~*
|
rm -f *_wrap* *~ .~*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue