Create output file with C++ extension for C++ C examples
This file contains C++ code when using "swig -c++", so create it with .cxx extension.
This commit is contained in:
parent
23d89c2cb4
commit
34431d72e6
1 changed files with 3 additions and 3 deletions
|
|
@ -1744,8 +1744,8 @@ c: $(SRCDIR_SRCS)
|
|||
$(C_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
c_cpp: $(SRCDIR_SRCS)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) -o $(ISRCS) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) -I$(SRCDIR) $(CXXFLAGS) $(ISRCS) $(SRCDIR_CXXSRCS) $(INCLUDES)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) -o $(ICXXSRCS) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) -I$(SRCDIR) $(CXXFLAGS) $(ICXXSRCS) $(SRCDIR_CXXSRCS) $(INCLUDES)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(PROXYSRC) $(INCLUDES)
|
||||
$(CXX_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
|
|
@ -1771,7 +1771,7 @@ c_version:
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
c_clean:
|
||||
rm -f *_wrap.c *_proxy.[ch]
|
||||
rm -f *_wrap.c *_wrap.cxx *_proxy.[ch]
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@SO@
|
||||
rm -f $(RUNME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue