X-Git-Url: https://git.sesse.net/?p=xml-template;a=blobdiff_plain;f=php7-swig%2FMakefile;fp=php5-swig%2FMakefile;h=5bf3c017595ef2388ceb62440e3a4137eb68f5ec;hp=cc90f0adbb62dfdac5c3a2991793e2c56a85e280;hb=HEAD;hpb=7d1da52761b9ec9747c4400609658a379a34392c diff --git a/php5-swig/Makefile b/php7-swig/Makefile similarity index 53% rename from php5-swig/Makefile rename to php7-swig/Makefile index cc90f0a..5bf3c01 100644 --- a/php5-swig/Makefile +++ b/php7-swig/Makefile @@ -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