]> git.sesse.net Git - xml-template/blob - php7-swig/Makefile
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php7-swig / Makefile
1 CPPFLAGS=$(shell php-config --includes)
2 CXXFLAGS=-std=gnu++0x $(shell xml2-config --cflags) -fPIC -g
3 LDFLAGS=-shared
4 LIBS=../c++11/xml-template.o
5
6 XML_Template_SWIG.so: xml-template_wrap.o $(LIBS)
7         $(CXX) $(LDFLAGS) -o $@ $< $(LIBS)
8
9 xml-template_wrap.cxx XML_Template_SWIG.php php_XML_Template_SWIG.h : xml-template.swig
10         swig -c++ -php7 $<
11
12 clean:
13         $(RM) XML_Template_SWIG.so xml-template_wrap.o
14         $(RM) xml-template_wrap.cxx xml-template_wrap.cpp XML_Template_SWIG.php php_XML_Template_SWIG.h 
15
16 xml-template_wrap.cpp: xml-template_wrap.cxx
17         cp xml-template_wrap.cxx xml-template_wrap.cpp