Fix the PHP Examples to build and run like the other languages do.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0915d45c2c
commit
98b14d6f1d
16 changed files with 303 additions and 498 deletions
|
|
@ -662,7 +662,7 @@ PHP4_INCLUDE = @PHP4INC@
|
|||
PHP4_SO = @PHP4_SO@
|
||||
|
||||
php4: $(SRCS)
|
||||
$(SWIG) -php4 -cppext cxx $(SWIGOPT) $(INTERFACE)
|
||||
$(SWIG) -php4 $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
||||
|
||||
|
|
@ -682,14 +682,14 @@ php4_cpp: $(SRCS)
|
|||
PHP4=@PHP4@
|
||||
|
||||
php4_run:
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(PHP4) -q -d extension_dir=. $(SCRIPT)
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(PHP4) -q -d extension_dir=. runme.php4
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the PHP4 examples
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
php4_clean:
|
||||
rm -f *_wrap* *~ .~* *.php
|
||||
rm -f *_wrap* *~ .~* example.php php_example.h
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@SO@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue