[php] Fix makefile generated by -make (SF#1633679). Update

documentation to mark "-make" as deprecated (none of the other
SWIG backends seem to offer such a feature, it can't realistically
generate a fully portable makefile, and the commands to build an
extension are easy enough to write for the user's preferred build
tool).  Also recommend against the use of "-phpfull" (it's only
really useful when static linking, and a dynamically loadable
module is virtually always the better approach).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2007-11-10 00:59:02 +00:00
commit ece41d9c9f
3 changed files with 52 additions and 46 deletions

View file

@ -319,8 +319,7 @@ public:
Printf(f_make, "CXX_SOURCES=%s\n", withcxx);
Printf(f_make, "C_SOURCES=%s\n", withc);
Printf(f_make, "OBJS=%s_wrap.o $(C_SOURCES:.c=.o) $(CXX_SOURCES:.cxx=.o)\n", module);
Printf(f_make, "MODULE=%s.`php -r 'switch(PHP_SHLIB_SUFFIX){case\"PHP_SHLIB_SUFFIX\":case\"dylib\":echo\"so\";break;default:echo PHP_SHLIB_SUFFIX;}'`\n",
module);
Printf(f_make, "MODULE=%s.so\n", module);
Printf(f_make, "CFLAGS=-fpic\n");
Printf(f_make, "LDFLAGS=-shared\n");
Printf(f_make, "PHP_INC=`php-config --includes`\n");