XML_Template_SWIG.so: xml-template_wrap.o $(LIBS)
$(CXX) $(LDFLAGS) -o $@ $< $(LIBS)
-xml-template_wrap.cpp XML_Template_SWIG.php php_XML_Template_SWIG.h : xml-template.swig
- swig -c++ -php $<
+xml-template_wrap.cxx XML_Template_SWIG.php php_XML_Template_SWIG.h : xml-template.swig
+ swig -c++ -php7 $<
clean:
$(RM) XML_Template_SWIG.so xml-template_wrap.o
- $(RM) xml-template_wrap.cpp XML_Template_SWIG.php php_XML_Template_SWIG.h
+ $(RM) xml-template_wrap.cxx xml-template_wrap.cpp XML_Template_SWIG.php php_XML_Template_SWIG.h
+xml-template_wrap.cpp: xml-template_wrap.cxx
+ cp xml-template_wrap.cxx xml-template_wrap.cpp