]> git.sesse.net Git - xml-template/blobdiff - php7-swig/Makefile
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php7-swig / Makefile
similarity index 53%
rename from php5-swig/Makefile
rename to php7-swig/Makefile
index cc90f0adbb62dfdac5c3a2991793e2c56a85e280..5bf3c017595ef2388ceb62440e3a4137eb68f5ec 100644 (file)
@@ -6,10 +6,12 @@ LIBS=../c++11/xml-template.o
 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