summaryrefslogtreecommitdiffstats
path: root/php/Makefile.am
blob: 1c37eb74648e5dc0bba941f38c10ecda2ace869f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SWIG_OUTPUTS = lasso_wrap.c php_lasso.h lasso.php

php_extension_LTLIBRARIES = lasso.la
lasso_la_CFLAGS = $(LASSO_CFLAGS) -I$(top_srcdir) $(PHP_INCLUDES)
lasso_la_LDFLAGS = -export-dynamic -prefer-pic -module -avoid-version
lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) $(PHP_LDFLAGS)
lasso_la_SOURCES = lasso_wrap.c

php_extensiondir = ${prefix}@PHP_UNPREFIXED_EXTENSION_DIR@

lasso_wrap.c php_lasso.h lasso.php: $(top_srcdir)/swig/Lasso.i
	$(SWIG) -v -php4 -module lasso -o lasso_wrap.c -dlname lasso $<

test-php: lasso.la lasso.php
	$(PHP) -d extension_dir=.libs $(srcdir)/lasso.php

MAINTAINERCLEANFILES = $(SWIG_OUTPUTS)
EXTRA_DIST = $(SWIG_OUTPUTS)
SUBDIRS = examples