summaryrefslogtreecommitdiffstats
path: root/php5
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-12-08 10:05:39 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-12-08 10:05:39 +0000
commit384a5e26fe9fd767e0f40465859472e1a6238147 (patch)
tree4a9e1b4611cbca729d7745673ad5c830d4aeb365 /php5
parent1db6794167edf425bb9fbb1800da9f8f970ab8c5 (diff)
added support for PHP5
Diffstat (limited to 'php5')
-rw-r--r--php5/Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/php5/Makefile.am b/php5/Makefile.am
new file mode 100644
index 00000000..96e8d32d
--- /dev/null
+++ b/php5/Makefile.am
@@ -0,0 +1,20 @@
+SWIG_OUTPUTS = lasso_wrap.c php_lasso.h lasso.php
+
+php_extension_LTLIBRARIES = lasso.la
+lasso_la_CFLAGS = $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(PHP5_INCLUDES)
+lasso_la_LDFLAGS = -export-dynamic -prefer-pic -module -avoid-version
+lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) $(PHP5_LDFLAGS)
+lasso_la_SOURCES = lasso_wrap.c
+
+php_extensiondir = ${prefix}@PHP5_UNPREFIXED_EXTENSION_DIR@
+
+SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
+lasso_wrap.c php_lasso.h lasso.php: $(SWIG_I_FILES)
+ $(SWIG) -v -php5 -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i
+
+test-php: lasso.la lasso.php
+ $(PHP5) -d extension_dir=.libs $(srcdir)/lasso.php
+
+MAINTAINERCLEANFILES = $(SWIG_OUTPUTS)
+EXTRA_DIST = $(SWIG_OUTPUTS)
+